chalk

kis_dlg_adjustment_layer.h
1/*
2 * Copyright (c) 2006 Boudewijn Rempt <boud@valdyas.org>
3 * Copyright (c) 2007 Benjamin Schleimer <bensch128@yahoo.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19#ifndef KISDLGAdjustMENTLAYER_H
20#define KISDLGAdjustMENTLAYER_H
21
22#include <kdialogbase.h>
23
24class KisFilter;
25class TQIconViewItem;
26class TQLabel;
27class TQHBoxLayout;
29class KisFiltersListView;
31class KisImage;
32class TQGroupBox;
33
37class KisDlgAdjustmentLayer : public KDialogBase
38{
39
40 TQ_OBJECT
41
42
43public:
44
56 KisDlgAdjustmentLayer(KisImage * img,
57 const TQString & layerName,
58 const TQString & caption,
59 TQWidget *parent = 0,
60 const char *name = 0);
61
62 KisFilterConfiguration * filterConfiguration() const;
63 TQString layerName() const;
64
65protected slots:
66
67 void slotNameChanged( const TQString & );
68 void slotConfigChanged();
69 void refreshPreview();
70 void selectionHasChanged ( TQIconViewItem * item );
71
72private:
73 KisImage * m_image;
74 KisPaintDeviceSP m_dev;
75 KisFiltersListView * m_filtersList;
76 KisPreviewWidget * m_preview;
77 TQGroupBox * m_configWidgetHolder;
78 TQWidget * m_currentConfigWidget;
79 KisFilter* m_currentFilter;
80 KLineEdit * m_layerName;
81 TQLabel* m_labelNoConfigWidget;
82 bool m_customName;
83 bool m_freezeName;
84};
85
86#endif
KisDlgAdjustmentLayer(KisImage *img, const TQString &layerName, const TQString &caption, TQWidget *parent=0, const char *name=0)
Create a new adjustmentlayer dialog.
A KisFilterConfiguration is the serializable representation of the filter parameters.
Basic interface of a Chalk filter.
Definition kis_filter.h:46
A widget that can be used by plugins to show a preview of the effect of the plugin to the user.