krita
kis_dlg_adj_layer_props.h
00001 /* 00002 * Copyright (c) 2006 Boudewijn Rempt <boud@valdyas.org> 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 */ 00018 #ifndef KIS_DLG_ADJ_LAYER_PROPS_H 00019 #define KIS_DLG_ADJ_LAYER_PROPS_H 00020 00021 #include <kdialogbase.h> 00022 00023 class KisFilter; 00024 class QIconViewItem; 00025 class QLabel; 00026 class QHBoxLayout; 00027 class KisPreviewWidget; 00028 class KisFiltersListView; 00029 class KisFilterConfiguration; 00030 class KisImage; 00031 class QGroupBox; 00032 00036 class KisDlgAdjLayerProps : public KDialogBase 00037 { 00038 00039 Q_OBJECT 00040 00041 public: 00042 00054 KisDlgAdjLayerProps(KisAdjustmentLayerSP layer, 00055 const QString & layerName, 00056 const QString & caption, 00057 QWidget *parent = 0, 00058 const char *name = 0); 00059 00060 KisFilterConfiguration * filterConfiguration() const; 00061 QString layerName() const; 00062 00063 protected slots: 00064 00065 void slotNameChanged( const QString & ); 00066 void slotConfigChanged(); 00067 void refreshPreview(); 00068 00069 private: 00070 KisImage * m_image; 00071 KisPreviewWidget * m_preview; 00072 KisFilterConfigWidget * m_currentConfigWidget; 00073 KisFilter* m_currentFilter; 00074 KisFilterConfiguration * m_currentConfiguration; 00075 KisAdjustmentLayer * m_layer; 00076 KLineEdit * m_layerName; 00077 }; 00078 00079 #endif // KIS_DLG_ADJ_LAYER_PROPS_H