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

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

informationscreen.h
1 #ifndef INFORMATIONSCREEN_H
2 #define INFORMATIONSCREEN_H
3
4 #include <QPushButton>
5 #include <QLineEdit>
6 #include <View/view.h>
7
8 class InformationScreenController;
9
10 namespace Ui {
11 class InformationScreen;
12 }
13
17 class InformationScreen : public View
18 {
19 Q_OBJECT
20
21 public:
26 explicit InformationScreen(QWidget *parent = 0);
27
33 InformationScreen(Controller *controller, QWidget *parent = 0);
34 ~InformationScreen();
35
40 int getNumberOfRows();
41
46 bool getHasIcons();
47
52 int getNumberOfCols();
53
58 int getNumberOfIcons();
59
64 int getWidthView();
65
70 int getHeightView();
71
76 QColor getBackgroundColor();
77
82 QString getBackgroundImage();
83
88 void showError(QString error);
89
94 void showInfo(QString info);
95
100 void showSuccess(QString success);
101
106 void setEditModel(Interfaz *interfaz);
107
114 void changePositionCombo(int pos, int row, int col);
115
120 int getCardRows();
121
126 int getCardCols();
127
128 private slots:
129
133 void on_helpBtn_clicked();
134
138 void on_homeBtn_clicked();
139
143 void on_settingsBtn_clicked();
144
148 void on_continueBtn_clicked();
149
154 void on_imageBackgroundBtn_clicked(bool checked);
155
160 void on_colorBackgroundBtn_clicked(bool checked);
161
165 void on_plusBtn_clicked();
166
170 void on_lessBtn_clicked();
171
175 void on_rowInput_textEdited();
176
180 void on_colInput_textEdited();
181
185 void on_iconPositiveOption_clicked();
186
190 void on_iconNegativeOption_clicked();
191
196 void on_positionCombo_2_currentIndexChanged(int index);
197
202 void on_rowInput_2_textEdited(const QString &arg1);
203
208 void on_colInput_2_textEdited(const QString &arg1);
209
214 void on_heightInput_textEdited(const QString &arg1);
215
220 void on_widthInput_textEdited(const QString &arg1);
221
226 void on_numberIconsBox_textEdited(const QString &arg1);
227
232 void on_positionCombo_activated(int index);
233
234 private:
235
239 void hideSizeElements();
240
244 void showSizeElements();
245
249 void isFullFill();
250
254 void initElements();
255
259 void setDefaultIcons();
260
267 void setDefaultIcon(QPushButton *button, QString iconPathOn, QString iconPathOff);
268
272 void setValidators();
273
278 void checkNumberOfElements(int elements);
279
283 void setToolTips();
284
288 void showCardSizeElements();
289
293 void hideCardSizeElements();
294
295 private:
296
300 Ui::InformationScreen *ui;
301 };
302
303 #endif // INFORMATIONSCREEN_H
Ui
Definition: beforestart.h:6
InformationScreen
The InformationScreen class.
Definition: informationscreen.h:17
InformationScreen::ui
Ui::InformationScreen * ui
ui
Definition: informationscreen.h:300
Controller
The Controller class.
Definition: controller.h:13
Interfaz
The Interfaz class. Represents generic screen.
Definition: interfaz.h:10
View
The View class.
Definition: view.h:22
InformationScreenController
The InformationScreenController class.
Definition: informationscreencontroller.h:10