Krita Source Code Documentation
Loading...
Searching...
No Matches
KisTemplateCreateDia.h
Go to the documentation of this file.
1/*
2 This file is part of the KDE project
3 SPDX-FileCopyrightText: 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
4 SPDX-FileCopyrightText: 2000 Werner Trobin <trobin@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#ifndef KIS_TEMPLATE_CREATE_DIA_H
10#define KIS_TEMPLATE_CREATE_DIA_H
11
12#include <KoDialog.h>
13#include "kritaui_export.h"
14
15class QString;
16class QPixmap;
17class KisDocument;
19
20/****************************************************************************
21 *
22 * Class: koTemplateCreateDia
23 *
24 ****************************************************************************/
25
26class KRITAUI_EXPORT KisTemplateCreateDia : public KoDialog
27{
28 Q_OBJECT
29
30private:
31 KisTemplateCreateDia(const QString &templatesResourcePath,
32 const QString &filePath, const QPixmap &thumbnail, QWidget *parent=0 );
33 ~KisTemplateCreateDia() override;
34
35public:
36 static void createTemplate(const QString &templatesResourcePath, const char *suffix,
37 KisDocument *document, QWidget *parent = 0);
38
39private Q_SLOTS:
40 void slotOk();
41
42 void slotDefault();
43 void slotCustom();
44 void slotSelect();
45 void slotNameChanged(const QString &name);
46
47 void slotAddGroup();
48 void slotRemove();
49 void slotSelectionChanged();
50private:
51 void updatePixmap();
52 void fillGroupTree();
53
54private:
56};
57
58#endif
KisTemplateCreateDiaPrivate *const d
A dialog base class with standard buttons and predefined layouts.
Definition KoDialog.h:116