File indexing completed on 2025-01-26 04:08:03
0001 /* 0002 * SPDX-FileCopyrightText: 2006 Boudewijn Rempt <boud@valdyas.org> 0003 * SPDX-FileCopyrightText: 2008 Cyrille Berger <cberger@cberger.net> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 #ifndef KISDLGAdjustMENTLAYER_H 0008 #define KISDLGAdjustMENTLAYER_H 0009 0010 #include <KoDialog.h> 0011 #include <QLabel> 0012 0013 class KisFilterConfiguration; 0014 class KisNodeFilterInterface; 0015 class KisViewManager; 0016 #include "kis_types.h" 0017 #include "ui_wdgfilternodecreation.h" 0018 0019 /** 0020 * Create a new adjustment layer. 0021 */ 0022 class KisDlgAdjustmentLayer : public KoDialog 0023 { 0024 0025 Q_OBJECT 0026 0027 public: 0028 0029 /** 0030 * Create a new adjustment layer dialog 0031 * 0032 * @param node the name of the adjustment node 0033 * @param nfi filter interface 0034 * @param paintDevice the paint device that is used as source for the preview 0035 * @param layerName the name of the layer 0036 * @param caption the caption for the dialog -- create or properties 0037 * @param view the view manager 0038 * @param parent the widget parent of this dialog 0039 */ 0040 KisDlgAdjustmentLayer(KisNodeSP node, 0041 KisNodeFilterInterface* nfi, 0042 KisPaintDeviceSP paintDevice, 0043 const QString & layerName, 0044 const QString & caption, 0045 KisViewManager *view, 0046 QWidget *parent = 0); 0047 ~KisDlgAdjustmentLayer() override; 0048 KisFilterConfigurationSP filterConfiguration() const; 0049 QString layerName() const; 0050 0051 public Q_SLOTS: 0052 void adjustSize(); 0053 0054 protected Q_SLOTS: 0055 void slotNameChanged(const QString &); 0056 void slotConfigChanged(); 0057 void slotFilterWidgetSizeChanged(); 0058 0059 private: 0060 KisNodeSP m_node; 0061 KisNodeFilterInterface *m_nodeFilterInterface; 0062 Ui::WdgFilterNodeCreation wdgFilterNodeCreation; 0063 KisFilterConfigurationSP m_currentFilter; 0064 bool m_customName; 0065 QString m_layerName; 0066 0067 }; 0068 0069 #endif