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"
35 #include "View/TCPInformationTab.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 
59 namespace 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
SettingController.h
ToolBar.h
armarx::WaypointControllerPtr
std::shared_ptr< WaypointController > WaypointControllerPtr
Definition: WaypointController.h:312
armarx::SettingControllerPtr
std::shared_ptr< SettingController > SettingControllerPtr
Definition: SettingController.h:291
TCPInformationController.h
WaypointTab.h
Perspectives.h
ViewController.h
RobotVisualizationController.h
ImportDialogController.h
armarx::ToolBarControllerPtr
std::shared_ptr< ToolBarController > ToolBarControllerPtr
Definition: ToolBarController.h:202
WaypointController.h
ToolBarController.h
armarx::EnvironmentControllerPtr
std::shared_ptr< EnvironmentController > EnvironmentControllerPtr
Definition: EnvironmentController.h:69
armarx::RobotTrajectoryDesignerGuiPluginWidgetController::getWidgetName
virtual QString getWidgetName() const override
Returns the Widget name displayed in the ArmarXGui to create an instance of this class.
Definition: RobotTrajectoryDesignerGuiPluginWidgetController.h:107
ExportDialogController.h
EnvironmentController.h
armarx::TCPInformationControllerPtr
std::shared_ptr< TCPInformationController > TCPInformationControllerPtr
Definition: TCPInformationController.h:132
ArmarXGuiPlugin.h
TransitionTab.h
armarx::ShortcutControllerPtr
std::shared_ptr< ShortcutController > ShortcutControllerPtr
Definition: ShortcutController.h:200
armarx::ExportDialogControllerPtr
std::shared_ptr< ExportDialogController > ExportDialogControllerPtr
Definition: ExportDialogController.h:114
MementoController.h
armarx::TransitionControllerPtr
std::shared_ptr< TransitionController > TransitionControllerPtr
Definition: TransitionController.h:232
TransitionController.h
ArmarXComponentWidgetController.h
ARMARXCOMPONENT_IMPORT_EXPORT
#define ARMARXCOMPONENT_IMPORT_EXPORT
Definition: ImportExportComponent.h:38
armarx::MementoControllerPtr
std::shared_ptr< MementoController > MementoControllerPtr
Definition: MementoController.h:128
TCPInformationTab.h
armarx::TrajectoryControllerPtr
std::shared_ptr< TrajectoryController > TrajectoryControllerPtr
Definition: TrajectoryController.h:66
armarx::ViewControllerPtr
std::shared_ptr< ViewController > ViewControllerPtr
Definition: ViewController.h:132
TrajectoryController.h
SettingTab.h
armarx::RobotTrajectoryDesignerGuiPluginWidgetController
Main controller of the GUI plugin, handling all other subcontrollers. Detailed description.
Definition: RobotTrajectoryDesignerGuiPluginWidgetController.h:76
armarx::ImportDialogControllerPtr
std::shared_ptr< ImportDialogController > ImportDialogControllerPtr
Definition: ImportDialogController.h:70
armarx::RobotVisualizationControllerPtr
std::shared_ptr< RobotVisualizationController > RobotVisualizationControllerPtr
Definition: RobotVisualizationController.h:237
armarx::TCPSelectionControllerPtr
std::shared_ptr< TCPSelectionController > TCPSelectionControllerPtr
Definition: TCPSelectionController.h:131
TCPSelectionController.h
armarx::ArmarXComponentWidgetController
Definition: ArmarXComponentWidgetController.h:38
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
VirtualRobot::RobotPtr
std::shared_ptr< class Robot > RobotPtr
Definition: Bus.h:19
ShortcutController.h
ImportExportComponent.h