widgets/designerplugins.cpp

changeset 269
593545977c5e
parent 264
76a025db4948
child 281
afed72b544f0
equal deleted inserted replaced
268:fb319526ba6c 269:593545977c5e
1 #include "widgets/designerplugins.h" 1 #include "widgets/designerplugins.h"
2 #include "widgets/vec3editor.h" 2 #include "widgets/vec3editor.h"
3 #include "widgets/matrixeditor.h" 3 #include "widgets/matrixeditor.h"
4 #include "widgets/colorbutton.h" 4 #include "widgets/colorbutton.h"
5 5
6 LDForgeWidgetCollection::LDForgeWidgetCollection(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 ColorButtonPlugin{this});
12 } 12 }
13 13
14 QList<QDesignerCustomWidgetInterface*> LDForgeWidgetCollection::customWidgets() const 14 QList<QDesignerCustomWidgetInterface*> PluginCollection::customWidgets() const
15 { 15 {
16 return this->interfaces; 16 return this->interfaces;
17 } 17 }
18 18
19 QString Vec3EditorPlugin::name() const 19 QString Vec3EditorPlugin::name() const
21 return "VectorInput"; 21 return "VectorInput";
22 } 22 }
23 23
24 QString Vec3EditorPlugin::group() const 24 QString Vec3EditorPlugin::group() const
25 { 25 {
26 return "LDForge"; 26 return APPNAME;
27 } 27 }
28 28
29 QString Vec3EditorPlugin::toolTip() const 29 QString Vec3EditorPlugin::toolTip() const
30 { 30 {
31 return ""; 31 return "";
61 return "MatrixEditor"; 61 return "MatrixEditor";
62 } 62 }
63 63
64 QString MatrixEditorPlugin::group() const 64 QString MatrixEditorPlugin::group() const
65 { 65 {
66 return "LDForge"; 66 return APPNAME;
67 } 67 }
68 68
69 QString MatrixEditorPlugin::toolTip() const 69 QString MatrixEditorPlugin::toolTip() const
70 { 70 {
71 return ""; 71 return "";
102 return "ColorButton"; 102 return "ColorButton";
103 } 103 }
104 104
105 QString ColorButtonPlugin::group() const 105 QString ColorButtonPlugin::group() const
106 { 106 {
107 return "LDForge"; 107 return APPNAME;
108 } 108 }
109 109
110 QString ColorButtonPlugin::toolTip() const 110 QString ColorButtonPlugin::toolTip() const
111 { 111 {
112 return ""; 112 return "";

mercurial