34 , isEditing(layer && previousConfig)
42 configBefore = previousConfig->cloneWithResourcesSnapshot();
47 dlgWidget.btnBox->button(QDialogButtonBox::Ok)->setDefault(
true);
48 KGuiItem::assign(
dlgWidget.btnBox->button(QDialogButtonBox::Ok), KStandardGuiItem::ok());
49 KGuiItem::assign(
dlgWidget.btnBox->button(QDialogButtonBox::Cancel), KStandardGuiItem::cancel());
52 connect(
dlgWidget.txtLayerName, SIGNAL(textChanged(QString)),
58 dlgWidget.filterGalleryToggle->setChecked(
true);
59 connect(
dlgWidget.filterGalleryToggle, SIGNAL(toggled(
bool)),
dlgWidget.wdgGenerator, SLOT(showFilterGallery(
bool)));
61 connect(
dlgWidget.btnBox, SIGNAL(accepted()),
this, SLOT(accept()));
62 connect(
dlgWidget.btnBox, SIGNAL(rejected()),
this, SLOT(reject()));
71 restoreGeometry(
KisConfig(
true).readEntry(
"generatordialog/geometry", QByteArray()));
KisDlgGeneratorLayer(const QString &defaultLayerName, KisViewManager *arg_view, QWidget *parent, KisGeneratorLayerSP glayer, const KisFilterConfigurationSP previousConfig, const KisStrokeId stroke)