HP Views Designer Assistant  1.0.0
TFG - Alberto Gutierrez Perez - Universidad de Valladolid
menuscreen.h
1 #ifndef MENUSCREEN_H
2 #define MENUSCREEN_H
3 
4 #include <QColor>
5 #include <QPushButton>
6 #include <View/view.h>
7 
8 
10 
11 namespace Ui {
12 class MenuScreen;
13 }
14 
18 class MenuScreen : public View
19 {
20  Q_OBJECT
21 
22 public:
23 
28  explicit MenuScreen(QWidget *parent = 0);
29 
35  MenuScreen(Controller *controller, QWidget *parent = 0);
36  ~MenuScreen();
37 
42  bool isAutomaticPosition();
43 
48  bool isTitleOption();
49 
54  void showError(QString error);
55 
60  void showSuccess(QString success);
61 
66  void showInfo(QString info);
67 
72  QString getBackgroundColor();
73 
78  QString getBackgroundImage();
79 
84  int getNumberOfRows();
85 
90  int getNumberOfCols();
91 
96  int getNumberOfIcons();
97 
102  int getWidthView();
103 
108  int getHeightView();
109 
114  void setEditModel(Interfaz *interfaz);
115 
119  void finish();
120 
121 private slots:
122 
126  void on_helpBtn_clicked();
127 
131  void on_titlePositiveOption_clicked();
132 
136  void on_titleNegativeOption_clicked();
137 
141  void on_continueBtn_clicked();
142 
146  void on_automaticPositionRadio_clicked();
147 
151  void on_customizePositionRadio_clicked();
152 
156  void on_rowInput_textEdited();
157 
161  void on_colInput_textEdited();
162 
166  void on_plusBtn_clicked();
167 
171  void on_lessBtn_clicked();
172 
176  void on_heightInput_textEdited();
177 
181  void on_widthInput_textEdited();
182 
187  void on_colorBackgroundBtn_clicked(bool checked);
188 
193  void on_imageBackgroundBtn_clicked(bool checked);
194 
198  void on_homeBtn_clicked();
199 
203  void on_settingsBtn_clicked();
204 
209  void on_numberIconsBox_textEdited(const QString &arg1);
210 
215  void on_positionCombo_activated(int index);
216 
217 private:
218 
222  void setValidators();
223 
227  void hideSizeElements();
228 
232  void initElements();
233 
237  void showSizeElements();
238 
242  void isFullFill();
243 
248  void checkNumberIcons(int numberOfIcons);
249 
253  void setDefaultIcons();
254 
261  void setDefaultIcon(QPushButton *button, QString iconPathOn, QString iconPathOff);
262 
266  void setToolTips();
267 
268 private:
269 
273  Ui::MenuScreen *ui;
274 
275 };
276 
277 #endif // MENUSCREEN_H
Definition: beforestart.h:6
The Controller class.
Definition: controller.h:13
The Interfaz class. Represents generic screen.
Definition: interfaz.h:10
The MenuScreenController class.
Definition: menuscreencontroller.h:11
Ui::MenuScreen * ui
ui
Definition: menuscreen.h:273
The View class.
Definition: view.h:22
The MenuScreen class.
Definition: menuscreen.h:18