RobotTrajectoryDesignerGuiPluginWidgetController.h
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @package RobotTrajectoryDesigner::gui-plugins::RobotTrajectoryDesignerGuiPluginWidgetController
17 * @author Max Beddies
18 * @date 2018
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#ifndef _ARMARX_RobotTrajectoryDesigner_RobotTrajectoryDesignerGuiPlugin_WidgetController_H
24#define _ARMARX_RobotTrajectoryDesigner_RobotTrajectoryDesignerGuiPlugin_WidgetController_H
25
27
30
31#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/ui_RobotTrajectoryDesignerGuiPluginWidget.h>
32
33#include "View/Perspectives.h"
34#include "View/SettingTab.h"
36#include "View/ToolBar.h"
37#include "View/TransitionTab.h"
38#include "View/WaypointTab.h"
39
40//#include "Controller/CollisionDialogController.h"
41//#include "Controller/LanguageController.h"
43//#include "Controller/PopUpController.h"
45//#include "Controller/ScenarioDialogController.h"
58
59namespace armarx
60{
61 /**
62 \page ArmarXGui-GuiPlugins-RobotTrajectoryDesigner RobotTrajectoryDesigner
63 \brief The RobotTrajectoryDesigner gui plugin allows the generation of trajectories
64 for a given robot.
65
66 API Documentation \ref RobotTrajectoryDesignerGuiPluginWidgetController
67
68 \see RobotTrajectoryDesignerGuiPluginGuiPlugin
69 */
70
71 /**
72 * \class RobotTrajectoryDesignerGuiPluginWidgetController
73 * \brief Main controller of the GUI plugin, handling all other subcontrollers.
74 * Detailed description
75 */
78 {
79 Q_OBJECT
80
81 public:
82 /**
83 * Controller Constructor
84 */
86
87 /**
88 * Controller destructor
89 */
91
92 /**
93 * @see ArmarXWidgetController::RSettings()
94 */
95 virtual void loadSettings(QSettings* settings) override;
96
97 /**
98 * @see ArmarXWidgetController::saveSettings()
99 */
100 virtual void saveSettings(QSettings* settings) override;
101
102 /**
103 * Returns the Widget name displayed in the ArmarXGui to create an
104 * instance of this class.
105 */
106 virtual QString
107 getWidgetName() const override
108 {
109 return "RobotTrajectoryDesigner";
110 }
111
112 /**
113 * \see armarx::Component::onInitComponent()
114 */
115 virtual void onInitComponent() override;
116
117 /**
118 * \see armarx::Component::onConnectComponent()
119 */
120 virtual void onConnectComponent() override;
121
122 virtual void onDisconnectComponent() override;
123
124 public slots:
125 void initWidget();
126 void connectWidget();
127
128 signals:
129 /* QT signal declarations */
130
131 private:
132 Ui::RobotTrajectoryDesignerGuiPluginWidget widget;
133
134 //CollisionDialogControllerPtr collisionDialogControllerPtr;
135 //LanguageControllerPtr languageControllerPtr;
136 MementoControllerPtr mementoControllerPtr;
137 //PopUpControllerPtr popUpControllerPtr;
138 //ScenarioDialogControllerPtr scenarioDialogControllerPtr;
139 SettingControllerPtr settingControllerPtr;
140 ShortcutControllerPtr shortcutControllerPtr;
141 TCPInformationControllerPtr tcpInformationControllerPtr;
142 TCPSelectionControllerPtr tcpSelectionControllerPtr;
143 ToolBarControllerPtr toolBarControllerPtr;
144 TrajectoryControllerPtr trajectoryControllerPtr;
145 TransitionControllerPtr transitionControllerPtr;
146 ViewControllerPtr viewControllerPtr;
147 WaypointControllerPtr waypointControllerPtr;
148 ExportDialogControllerPtr exportDialogControllerPtr;
149 ImportDialogControllerPtr importDialogControllerPtr;
150 RobotVisualizationControllerPtr robotVisualizationControllerPtr;
151 EnvironmentControllerPtr environmentControllerPtr;
152
153 VirtualRobot::RobotPtr requestRobot(std::string robotFile);
154 };
155} // namespace armarx
156
157#endif
#define ARMARXCOMPONENT_IMPORT_EXPORT
virtual QString getWidgetName() const override
Returns the Widget name displayed in the ArmarXGui to create an instance of this class.
std::shared_ptr< class Robot > RobotPtr
Definition Bus.h:19
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< ToolBarController > ToolBarControllerPtr
std::shared_ptr< ViewController > ViewControllerPtr
std::shared_ptr< ImportDialogController > ImportDialogControllerPtr
std::shared_ptr< WaypointController > WaypointControllerPtr
std::shared_ptr< MementoController > MementoControllerPtr
std::shared_ptr< EnvironmentController > EnvironmentControllerPtr
std::shared_ptr< RobotVisualizationController > RobotVisualizationControllerPtr
std::shared_ptr< ExportDialogController > ExportDialogControllerPtr
std::shared_ptr< TrajectoryController > TrajectoryControllerPtr
std::shared_ptr< TCPSelectionController > TCPSelectionControllerPtr
std::shared_ptr< ShortcutController > ShortcutControllerPtr
std::shared_ptr< TransitionController > TransitionControllerPtr
std::shared_ptr< TCPInformationController > TCPInformationControllerPtr
std::shared_ptr< SettingController > SettingControllerPtr