HP Views Designer Assistant  1.0.0
TFG - Alberto Gutierrez Perez - Universidad de Valladolid
controller.h
1 #ifndef CONTROLLER_H
2 #define CONTROLLER_H
3 
4 #include <View/view.h>
5 #include <Model/interfaz.h>
6 #include <QString>
7 
8 #define HEADER_FILE "file:
9 
10 
13 class Controller : public QObject
14 {
15  Q_OBJECT
16 
17 public:
21  Controller();
22 
27  void on_homeBtn_clicked(bool ask = true);
28 
32  void on_settingsBtn_clicked();
33 
39  void on_helpBtn_clicked(QString path, QPoint position);
40 
41 protected:
42 
47  bool confirmExit();
48 
53  void showPreview(QString path);
54 
59  QString getLongSavePath();
60 
64  void switchToOptionsView();
65 
66 protected:
67 
72 
77 
82 
83 
84 };
85 
86 #endif // CONTROLLER_H
Controller()
Controller constructor.
Definition: controller.cpp:14
void showPreview(QString path)
showPreview show graphic preview of QML file.
Definition: controller.cpp:69
View * generalView
generalView primary view.
Definition: controller.h:71
void on_settingsBtn_clicked()
on_settingsBtn_clicked.
Definition: controller.cpp:110
bool confirmExit()
confirmExit ask the user for exit confirmation.
Definition: controller.cpp:51
void on_homeBtn_clicked(bool ask=true)
on_homeBtn_clicked.
Definition: controller.cpp:19
The Controller class.
Definition: controller.h:13
void switchToOptionsView()
switchToOptionsView change the current view to the secondary view.
Definition: controller.cpp:96
The Interfaz class. Represents generic screen.
Definition: interfaz.h:10
void on_helpBtn_clicked(QString path, QPoint position)
on_helpBtn_clicked.
Definition: controller.cpp:132
View * optionsView
optionsView secondary view.
Definition: controller.h:76
The View class.
Definition: view.h:22
QString getLongSavePath()
getLongSavePath ask the user the location to save the file.
Definition: controller.cpp:79
Interfaz * interfaz
interfaz interface.
Definition: controller.h:81