6 PluginCollection::PluginCollection(QObject* parent) : |
6 PluginCollection::PluginCollection(QObject* parent) : |
7 QObject{parent} |
7 QObject{parent} |
8 { |
8 { |
9 this->interfaces.append(new Vec3EditorPlugin{this}); |
9 this->interfaces.append(new Vec3EditorPlugin{this}); |
10 this->interfaces.append(new MatrixEditorPlugin{this}); |
10 this->interfaces.append(new MatrixEditorPlugin{this}); |
11 this->interfaces.append(new ColorButtonPlugin{this}); |
11 this->interfaces.append(new ColorEditPlugin{this}); |
12 } |
12 } |
13 |
13 |
14 QList<QDesignerCustomWidgetInterface*> PluginCollection::customWidgets() const |
14 QList<QDesignerCustomWidgetInterface*> PluginCollection::customWidgets() const |
15 { |
15 { |
16 return this->interfaces; |
16 return this->interfaces; |
95 { |
95 { |
96 return new MatrixEditor{parent}; |
96 return new MatrixEditor{parent}; |
97 } |
97 } |
98 |
98 |
99 |
99 |
100 QString ColorButtonPlugin::name() const |
100 QString ColorEditPlugin::name() const |
101 { |
101 { |
102 return "ColorEdit"; |
102 return "ColorEdit"; |
103 } |
103 } |
104 |
104 |
105 QString ColorButtonPlugin::group() const |
105 QString ColorEditPlugin::group() const |
106 { |
106 { |
107 return CMAKE_PROJECT_NAME; |
107 return CMAKE_PROJECT_NAME; |
108 } |
108 } |
109 |
109 |
110 QString ColorButtonPlugin::toolTip() const |
110 QString ColorEditPlugin::toolTip() const |
111 { |
111 { |
112 return ""; |
112 return ""; |
113 } |
113 } |
114 |
114 |
115 QString ColorButtonPlugin::whatsThis() const |
115 QString ColorEditPlugin::whatsThis() const |
116 { |
116 { |
117 return ""; |
117 return ""; |
118 } |
118 } |
119 |
119 |
120 QString ColorButtonPlugin::includeFile() const |
120 QString ColorEditPlugin::includeFile() const |
121 { |
121 { |
122 return "widgets/coloredit.h"; |
122 return "widgets/coloredit.h"; |
123 } |
123 } |
124 |
124 |
125 QIcon ColorButtonPlugin::icon() const |
125 QIcon ColorEditPlugin::icon() const |
126 { |
126 { |
127 return {}; |
127 return {}; |
128 } |
128 } |
129 |
129 |
130 bool ColorButtonPlugin::isContainer() const |
130 bool ColorEditPlugin::isContainer() const |
131 { |
131 { |
132 return false; |
132 return false; |
133 } |
133 } |
134 |
134 |
135 QWidget* ColorButtonPlugin::createWidget(QWidget* parent) |
135 QWidget* ColorEditPlugin::createWidget(QWidget* parent) |
136 { |
136 { |
137 return new ColorEdit{parent}; |
137 return new ColorEdit{parent}; |
138 } |
138 } |