Krita Source Code Documentation
Loading...
Searching...
No Matches
KisColorSpaceSelectorPlugin.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Victor Wåhlström <victor.wahlstrom@initiali.se>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
9
10
12 : QObject(parent),
13 m_initialized(false)
14{
15}
16
17void KisColorSpaceSelectorPlugin::initialize(QDesignerFormEditorInterface*)
18{
19 if (m_initialized)
20 return;
21
22 m_initialized = true;
23}
24
29
31{
32 return new KisColorSpaceSelector(parent);
33}
34
36{
37 return "KisColorSpaceSelector";
38}
39
41{
42 return "Krita";
43}
44
46{
47 return QIcon();
48}
49
51{
52 return tr("Krita widget for selecting color spaces.");
53}
54
56{
57 return tr("Krita widget for selecting color spaces.");
58}
59
61{
62 return false;
63}
64
66{
67 return "<ui language=\"c++\">\n"
68 " <widget class=\"KisColorSpaceSelector\" name=\"colorSpaceSelector\">\n"
69 " <property name=\"geometry\">\n"
70 " <rect>\n"
71 " <x>0</x>\n"
72 " <y>0</y>\n"
73 " <width>100</width>\n"
74 " <height>25</height>\n"
75 " </rect>\n"
76 " </property>\n"
77 " <property name=\"toolTip\" >\n"
78 " <string></string>\n"
79 " </property>\n"
80 " <property name=\"whatsThis\" >\n"
81 " <string></string>\n"
82 " </property>\n"
83 " </widget>\n"
84 "</ui>\n";
85}
86
88{
89 return "<widgets/kis_color_space_selector.h>";
90}
QWidget * createWidget(QWidget *parent) override
KisColorSpaceSelectorPlugin(QObject *parent=nullptr)
void initialize(QDesignerFormEditorInterface *core) override