HP Views Designer Assistant: D:/Documentos/ViewDesignerAssistant/Controller/controller.h Source File

| 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
71 View *generalView;
72
76 View *optionsView;
77
81 Interfaz *interfaz;
82
83
84 };
85
86 #endif // CONTROLLER_H
Controller::Controller
Controller()
Controller constructor.
Definition: controller.cpp:14
Controller::showPreview
void showPreview(QString path)
showPreview show graphic preview of QML file.
Definition: controller.cpp:69
Controller::generalView
View * generalView
generalView primary view.
Definition: controller.h:71
Controller::on_settingsBtn_clicked
void on_settingsBtn_clicked()
on_settingsBtn_clicked.
Definition: controller.cpp:110
Controller::confirmExit
bool confirmExit()
confirmExit ask the user for exit confirmation.
Definition: controller.cpp:51
Controller::on_homeBtn_clicked
void on_homeBtn_clicked(bool ask=true)
on_homeBtn_clicked.
Definition: controller.cpp:19
Controller
The Controller class.
Definition: controller.h:13
Controller::switchToOptionsView
void switchToOptionsView()
switchToOptionsView change the current view to the secondary view.
Definition: controller.cpp:96
Interfaz
The Interfaz class. Represents generic screen.
Definition: interfaz.h:10
Controller::on_helpBtn_clicked
void on_helpBtn_clicked(QString path, QPoint position)
on_helpBtn_clicked.
Definition: controller.cpp:132
Controller::optionsView
View * optionsView
optionsView secondary view.
Definition: controller.h:76
View
The View class.
Definition: view.h:22
Controller::getLongSavePath
QString getLongSavePath()
getLongSavePath ask the user the location to save the file.
Definition: controller.cpp:79
Controller::interfaz
Interfaz * interfaz
interfaz interface.
Definition: controller.h:81