Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_wdg_seexpr_presets_save.h
Go to the documentation of this file.
1/*
2 * This file is part of Krita
3 *
4 * SPDX-FileCopyrightText: 2020 L. E. Segovia <amy@amyspark.me>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KIS_WDG_SEEXPR_PRESETS_SAVE_H
10#define KIS_WDG_SEEXPR_PRESETS_SAVE_H
11
12#include <QDialog>
15
16#include "ui_wdgseexprsavepreset.h"
17
23class KisWdgSeExprSavePreset : public QDialog, public Ui::WdgSeExprSavePreset
24{
25 Q_OBJECT
26
27public:
28 KisWdgSeExprSavePreset(QWidget *parent)
29 : QDialog(parent)
30 {
31 setupUi(this);
32 }
33};
34
36{
37 Q_OBJECT
38
39public:
40 KisWdgSeExprPresetsSave(QWidget *parent);
42
43 void showDialog();
44
46 void useNewPresetDialog(bool show);
47
48Q_SIGNALS:
49 // Triggers after resource is saved
51
52public Q_SLOTS:
55 void loadImageFromFile();
56 void savePreset();
59
60private:
64};
65
66#endif
KisFilterConfigurationSP m_currentConfiguration
void setCurrentPreset(KisSeExprScriptSP resource)
void resourceSelected(KoResourceSP resource)
void setCurrentRenderConfiguration(KisFilterConfigurationSP config)
void useNewPresetDialog(bool show)
determines if we should show the save as dialog (true) or save in the background (false)