chalk

kis_dlg_new_layer.h
1/*
2 * Copyright (c) 2000 Michael Koch <koch@kde.org>
3 * Copyright (c) 2000 Patrick Julien <freak@codepimps.org>
4 * Copyright (c) 2006 Casper Boemann <cbr@boemann.dk>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20#ifndef KIS_DLG_NEW_LAYER_H_
21#define KIS_DLG_NEW_LAYER_H_
22
23#include <kdialogbase.h>
24
25#include "kis_composite_op.h"
26#include <kis_global.h>
27
28class TQWidget;
29class KisPaintDevice;
30class WdgLayerProperties;
31
32class NewLayerDialog : public KDialogBase {
33 typedef KDialogBase super;
34 TQ_OBJECT
35
36
37public:
38 NewLayerDialog(const KisID colorSpace,
39 const TQString & profilename,
40 const TQString & deviceName,
41 TQWidget *parent = 0,
42 const char *name = 0);
43
44 TQString layerName() const;
45 KisCompositeOp compositeOp() const;
46 TQ_INT32 opacity() const;
47 KisID colorSpaceID() const;
48 TQString profileName() const;
49
50 void setColorSpaceEnabled(bool enabled);
51
52private slots:
53 void fillCmbProfiles(const KisID & s);
54 void fillCmbComposite(const KisID & s);
55
56private:
57 WdgLayerProperties * m_page;
58};
59
60#endif // KIS_DLG_NEW_LAYER_H_
61
A paint device contains the actual pixel data and offers methods to read and write pixels.