chalk

kis_dlg_adj_layer_props.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 KIS_DLG_ADJ_LAYER_PROPS_H
20#define KIS_DLG_ADJ_LAYER_PROPS_H
21
22#include <kdialogbase.h>
23
24class KisFilter;
25class TQIconViewItem;
26class TQLabel;
27class TQHBoxLayout;
29class KisFiltersListView;
31class KisImage;
32class TQGroupBox;
33
37class KisDlgAdjLayerProps : public KDialogBase
38{
39
40 TQ_OBJECT
41
42
43public:
44
56 KisDlgAdjLayerProps(KisAdjustmentLayerSP layer,
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
71private:
72 KisImage * m_image;
73 KisPreviewWidget * m_preview;
74 KisFilterConfigWidget * m_currentConfigWidget;
75 KisFilter* m_currentFilter;
76 KisFilterConfiguration * m_currentConfiguration;
77 KisAdjustmentLayer * m_layer;
78 KLineEdit * m_layerName;
79};
80
81#endif // KIS_DLG_ADJ_LAYER_PROPS_H
Class that contains a KisFilter and optionally a KisSelection.
Create a new adjustment layer.
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.