ImportDialogController.h
Go to the documentation of this file.
1#ifndef IMPORTDIALOGCONTROLLER_H
2#define IMPORTDIALOGCONTROLLER_H
6
7namespace 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 */
63
64 private:
65 EnvironmentPtr environment;
66
67 void helpExceptionMessageBox(std::string errorMessage);
68 };
69
70 using ImportDialogControllerPtr = std::shared_ptr<ImportDialogController>;
71} // namespace armarx
72
73#endif // IMPORTDIALOGCONTROLLER_H
Abstract controller providing a set of methods which must be implemented by every controller.
void environmentChanged(EnvironmentPtr environment)
Set the enviroment.
ImportDialogController()
Creates a new ImportDialogController and assigns a designer importer to handle.
void open()
Opens an import dialog.
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< ImportDialogController > ImportDialogControllerPtr
std::shared_ptr< Environment > EnvironmentPtr
Definition Environment.h:29
std::shared_ptr< DesignerTrajectory > DesignerTrajectoryPtr