krita
kis_dlg_adjustment_layer.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 KISDLGAdjustMENTLAYER_H 00019 #define KISDLGAdjustMENTLAYER_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 KisDlgAdjustmentLayer : public KDialogBase 00037 { 00038 00039 Q_OBJECT 00040 00041 public: 00042 00054 KisDlgAdjustmentLayer(KisImage * img, 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 void selectionHasChanged ( QIconViewItem * item ); 00069 00070 private: 00071 KisImage * m_image; 00072 KisPaintDeviceSP m_dev; 00073 KisFiltersListView * m_filtersList; 00074 KisPreviewWidget * m_preview; 00075 QGroupBox * m_configWidgetHolder; 00076 QWidget * m_currentConfigWidget; 00077 KisFilter* m_currentFilter; 00078 KLineEdit * m_layerName; 00079 QLabel* m_labelNoConfigWidget; 00080 bool m_customName; 00081 bool m_freezeName; 00082 }; 00083 00084 #endif