|
15 | 15 | #include <actions/DecimalPointAction.h> |
16 | 16 | #include <actions/DecimalRangeAction.h> |
17 | 17 | #include <actions/DecimalRectangleAction.h> |
18 | | -#include <actions/FilePickerAction.h> |
19 | 18 | #include <actions/IntegralAction.h> |
20 | 19 | #include <actions/IntegralPointAction.h> |
21 | 20 | #include <actions/IntegralRangeAction.h> |
22 | 21 | #include <actions/IntegralRectangleAction.h> |
23 | 22 | #include <actions/FilePickerAction.h> |
24 | 23 | #include <actions/DirectoryPickerAction.h> |
| 24 | +#include <actions/DatasetPickerAction.h> |
| 25 | +#include <actions/HorizontalGroupAction.h> |
| 26 | +#include <actions/VerticalGroupAction.h> |
| 27 | +#include <actions/GroupsAction.h> |
25 | 28 |
|
26 | 29 | Q_PLUGIN_METADATA(IID "studio.manivault.ExampleActionsPlugin")using namespace mv; |
27 | 30 |
|
@@ -53,6 +56,14 @@ void ExampleActionsPlugin::init() |
53 | 56 | { "Vertical", 2 }, |
54 | 57 | }, { "Horizontal" }); |
55 | 58 |
|
| 59 | + _actionsWidget.addAction("Textual", "String", [this](QWidget* parent) -> WidgetAction* { |
| 60 | + return new StringAction(this, "Example string action", "Initial string value"); |
| 61 | + }, { |
| 62 | + { "Label", 1 }, |
| 63 | + { "LineEdit", 2 }, |
| 64 | + { "TextEdit", 4 } |
| 65 | + }, { "LineEdit" }); |
| 66 | + |
56 | 67 | _actionsWidget.addAction("Textual", "Strings", [this](QWidget* parent) -> WidgetAction* { |
57 | 68 | return new StringsAction(this, "Example strings action", { "String 1", "String 2", "String 3" }); |
58 | 69 | }, { |
@@ -147,6 +158,22 @@ void ExampleActionsPlugin::init() |
147 | 158 | _actionsWidget.addAction("Disk", "Directory picker", [this](QWidget* parent) -> WidgetAction* { |
148 | 159 | return new DirectoryPickerAction(this, "Example directory picker action"); |
149 | 160 | }); |
| 161 | + |
| 162 | + _actionsWidget.addAction("Dataset", "Dataset picker", [this](QWidget* parent) -> WidgetAction* { |
| 163 | + return new DatasetPickerAction(this, "Example dataset picker action"); |
| 164 | + }); |
| 165 | + |
| 166 | + _actionsWidget.addAction("Grouping", "Horizontal", [this](QWidget* parent) -> WidgetAction* { |
| 167 | + return new HorizontalGroupAction(this, "Example horizontal grouping action"); |
| 168 | + }); |
| 169 | + |
| 170 | + _actionsWidget.addAction("Grouping", "Vertical", [this](QWidget* parent) -> WidgetAction* { |
| 171 | + return new VerticalGroupAction(this, "Example vertical grouping action"); |
| 172 | + }); |
| 173 | + |
| 174 | + _actionsWidget.addAction("Grouping", "Groups", [this](QWidget* parent) -> WidgetAction* { |
| 175 | + return new GroupsAction(this, "Example groups action"); |
| 176 | + }); |
150 | 177 | } |
151 | 178 |
|
152 | 179 | ExampleActionsPluginFactory::ExampleActionsPluginFactory() |
|
0 commit comments