HP Views Designer Assistant: D:/Documentos/ViewDesignerAssistant/View/view.h Source File

| HP Views Designer Assistant 1.0.0 TFG - Alberto Gutierrez Perez - Universidad de Valladolid |

view.h
1 #ifndef VIEW_H
2 #define VIEW_H
3
4 #include <QMainWindow>
5 #include <QLineEdit>
6 #include <Model/interfaz.h>
7
8 #define MATRIX_MENU_OPTION 1
9 #define LIST_MENU_OPTION 2
10 #define LINE_MENU_OPTION 3
11
12
13 class Controller;
14
15 namespace Ui {
16 class View;
17 }
18
22 class View: public QMainWindow
23 {
24 public:
25
30 View(QWidget *parent);
31
36 virtual void showError(QString error) = 0;
37
42 virtual void showSuccess(QString success) = 0;
43
48 virtual void showInfo(QString info) = 0;
49
55 void show(QPoint position, QSize size);
56
57 protected:
58
62 virtual void initElements() = 0;
63
67 virtual void setValidators() = 0;
68
72 virtual void setToolTips() = 0;
73
77 virtual void isFullFill() = 0;
78
85 void setIntValidators(QLineEdit *input,int min, int max);
86
91 QString selectImage();
92
98 int checkNumberElements(int numberOfElements);
99
104 QString getRootHelpPath();
105
106 private slots:
107
112 void moveEvent(QMoveEvent *event);
113
114 private:
115
119 Ui::View *ui;
120
121 protected:
122
126 QPoint currentPosition;
127
131 Controller *controller;
132
133 };
134
135 #endif // VIEW_H
Ui
Definition: beforestart.h:6
View::ui
Ui::View * ui
ui
Definition: view.h:119
View::controller
Controller * controller
controller Views controller.
Definition: view.h:131
Controller
The Controller class.
Definition: controller.h:13
View
The View class.
Definition: view.h:22
View::currentPosition
QPoint currentPosition
currentPosition Current position of the view.
Definition: view.h:126