ImportDialogController.h
Go to the documentation of this file.
1 #ifndef IMPORTDIALOGCONTROLLER_H
2 #define IMPORTDIALOGCONTROLLER_H
3 #include "AbstractController.h"
4 #include "../Model/DesignerTrajectory.h"
5 #include "../ImportExport/MMMImporter.h"
6 
7 namespace armarx
8 {
9  /**
10  * @class ImportDialogController
11  * @brief Subcontroller which handles all user interaction with the import
12  * dialog in the GUI, communicates with other controllers
13  * via signals and slots
14  */
16  {
17  Q_OBJECT
18 
19  public:
20  /**
21  * @brief @see AbstractController
22  */
23  void onInitComponent() override;
24 
25  /**
26  * @brief @see AbstractController
27  */
28  void onConnectComponent() override;
29 
30  /**
31  * @brief @see AbstractController
32  */
33  void onDisconnectComponent() override;
34 
35  /**
36  * @brief @see AbstractController
37  */
38  void onExitComponent() override;
39 
40  /**
41  * @brief Creates a new ImportDialogController and assigns a designer
42  * importer to handle
43  */
45 
46  public slots:
47  /**
48  * @brief Opens an import dialog
49  */
50  void open();
51 
52  /**
53  * @brief Set the enviroment
54  * @param The new enviroment
55  */
56  void environmentChanged(EnvironmentPtr environment);
57 
58  signals:
59  /**
60  * @brief Notifies other controllers about the import of a trajectory
61  */
62  void import(DesignerTrajectoryPtr trajectory);
63  private:
64  EnvironmentPtr environment;
65 
66  void helpExceptionMessageBox(std::string errorMessage);
67  };
68 
69  using ImportDialogControllerPtr = std::shared_ptr<ImportDialogController>;
70 }
71 
72 #endif // IMPORTDIALOGCONTROLLER_H
armarx::ImportDialogController
Subcontroller which handles all user interaction with the import dialog in the GUI,...
Definition: ImportDialogController.h:15
armarx::ImportDialogController::onExitComponent
void onExitComponent() override
Definition: ImportDialogController.cpp:24
armarx::ImportDialogController::onConnectComponent
void onConnectComponent() override
Definition: ImportDialogController.cpp:13
armarx::EnvironmentPtr
std::shared_ptr< Environment > EnvironmentPtr
Definition: Environment.h:29
armarx::ImportDialogController::onInitComponent
void onInitComponent() override
Definition: ImportDialogController.cpp:8
armarx::ImportDialogController::open
void open()
Opens an import dialog.
Definition: ImportDialogController.cpp:35
AbstractController.h
armarx::ImportDialogController::ImportDialogController
ImportDialogController()
Creates a new ImportDialogController and assigns a designer importer to handle.
Definition: ImportDialogController.cpp:29
armarx::ImportDialogController::environmentChanged
void environmentChanged(EnvironmentPtr environment)
Set the enviroment.
Definition: ImportDialogController.cpp:86
armarx::ImportDialogControllerPtr
std::shared_ptr< ImportDialogController > ImportDialogControllerPtr
Definition: ImportDialogController.h:69
armarx::DesignerTrajectoryPtr
std::shared_ptr< DesignerTrajectory > DesignerTrajectoryPtr
Definition: DesignerTrajectory.h:165
armarx::ImportDialogController::onDisconnectComponent
void onDisconnectComponent() override
Definition: ImportDialogController.cpp:18
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::AbstractController
Abstract controller providing a set of methods which must be implemented by every controller.
Definition: AbstractController.h:35