Auto status change to "Under Review"
@@ -0,0 +1,12 | |||
|
1 | #ifndef SCIQLOP_VISUALIZATIONACTIONMANAGER_H | |
|
2 | #define SCIQLOP_VISUALIZATIONACTIONMANAGER_H | |
|
3 | ||
|
4 | ||
|
5 | class VisualizationActionManager { | |
|
6 | public: | |
|
7 | VisualizationActionManager(); | |
|
8 | ||
|
9 | void installSelectionZoneActions(); | |
|
10 | }; | |
|
11 | ||
|
12 | #endif // SCIQLOP_VISUALIZATIONACTIONMANAGER_H |
@@ -0,0 +1,14 | |||
|
1 | #include "Visualization/VisualizationActionManager.h" | |
|
2 | ||
|
3 | #include <Actions/ActionsGuiController.h> | |
|
4 | #include <SqpApplication.h> | |
|
5 | ||
|
6 | VisualizationActionManager::VisualizationActionManager() {} | |
|
7 | ||
|
8 | void VisualizationActionManager::installSelectionZoneActions() | |
|
9 | { | |
|
10 | auto &actionController = sqpApp->actionsGuiController(); | |
|
11 | actionController.addSectionZoneAction("Remove Selected Zone(s)", [](auto &zone) {}); | |
|
12 | actionController.addSectionZoneAction("Align Left", [](auto &zone) {}); | |
|
13 | actionController.addSectionZoneAction("Align Right", [](auto &zone) {}); | |
|
14 | } |
@@ -87,7 +87,8 gui_sources = [ | |||
|
87 | 87 | 'src/Visualization/VisualizationSelectionZoneItem.cpp', |
|
88 | 88 | 'src/Visualization/VisualizationSelectionZoneManager.cpp', |
|
89 | 89 | 'src/Visualization/SelectionZoneAction.cpp', |
|
90 | 'src/Visualization/ActionsGuiController.cpp' | |
|
90 | 'src/Visualization/ActionsGuiController.cpp', | |
|
91 | 'src/Visualization/VisualizationActionManager.cpp' | |
|
91 | 92 | ] |
|
92 | 93 | |
|
93 | 94 | gui_inc = include_directories(['include']) |
@@ -1,5 +1,6 | |||
|
1 | 1 | #include "Visualization/VisualizationWidget.h" |
|
2 | 2 | #include "Visualization/IVisualizationWidgetVisitor.h" |
|
3 | #include "Visualization/VisualizationActionManager.h" | |
|
3 | 4 | #include "Visualization/VisualizationGraphWidget.h" |
|
4 | 5 | #include "Visualization/VisualizationSelectionZoneManager.h" |
|
5 | 6 | #include "Visualization/VisualizationTabWidget.h" |
@@ -23,6 +24,7 Q_LOGGING_CATEGORY(LOG_VisualizationWidget, "VisualizationWidget") | |||
|
23 | 24 | |
|
24 | 25 | struct VisualizationWidget::VisualizationWidgetPrivate { |
|
25 | 26 | std::unique_ptr<VisualizationSelectionZoneManager> m_ZoneSelectionManager = nullptr; |
|
27 | VisualizationActionManager m_ActionManager; | |
|
26 | 28 | |
|
27 | 29 | VisualizationWidgetPrivate() |
|
28 | 30 | : m_ZoneSelectionManager(std::make_unique<VisualizationSelectionZoneManager>()) |
@@ -86,6 +88,8 VisualizationWidget::VisualizationWidget(QWidget *parent) | |||
|
86 | 88 | |
|
87 | 89 | sqpApp->dragDropGuiController().addDragDropTabBar(ui->tabWidget->tabBar()); |
|
88 | 90 | |
|
91 | impl->m_ActionManager.installSelectionZoneActions(); | |
|
92 | ||
|
89 | 93 | // Adds default tab |
|
90 | 94 | addTabView(); |
|
91 | 95 | } |
General Comments 4
Status change > Approved
Status change > Approved
You need to be logged in to leave comments.
Login now