HP Views Designer Assistant  1.0.0
TFG - Alberto Gutierrez Perez - Universidad de Valladolid
inkscreen.h
1 #ifndef INKSCREEN_H
2 #define INKSCREEN_H
3 
4 #include <View/view.h>
5 #include <Model/inktextoption.h>
6 #include <QPushButton>
7 
8 namespace Ui {
9 class InkScreen;
10 }
11 
15 class InkScreen : public View
16 {
17  Q_OBJECT
18 
19 public:
20 
25  explicit InkScreen(QWidget *parent = 0);
26  ~InkScreen();
27 
32  void showError(QString error);
33 
38  void showSuccess(QString success);
39 
44  void showInfo(QString info);
45 
50  int getNumberOfElements();
51 
56  int getNumberOfCols();
57 
62  int getNumberOfRows();
63 
68  int getWidth();
69 
74  int getHeight();
75 
83  void addInkButtons(int numberOfElements, int rows, int cols, QVector<QColor> *colors = new QVector<QColor>);
84 
88  void clearElements();
89 
94  InkTextOption getTextOption();
95 
101  QColor getInkColor(int position);
102 
107  void setEditModel(Interfaz *interfaz);
108 
109 private slots:
110 
115  void on_positionCombo_activated(int index);
116 
120  void on_homeBtn_clicked();
121 
125  void on_settingsBtn_clicked();
126 
130  void on_helpBtn_clicked();
131 
135  void on_plusBtn_clicked();
136 
140  void on_lessBtn_clicked();
141 
145  void on_rowInput_textEdited();
146 
150  void on_colInput_textEdited();
151 
155  void on_numberElementInput_textEdited();
156 
160  void selectBtnColor();
161 
165  void on_porcentageRadio_clicked();
166 
170  void on_numberRadio_clicked();
171 
175  void on_noneRadio_clicked();
176 
180  void on_continueBtn_clicked();
181 
185  void on_heightInput_textEdited();
186 
190  void on_widthInput_textEdited();
191 
192 private:
193 
197  void initElements();
198 
202  void setValidators();
203 
207  void isFullFill();
208 
212  void setToolTips();
213 
217  void showSizeElements();
218 
222  void hideSizeElements();
223 
228  void checkNumberElements(int elements);
229 
233  void hideMessages();
234 
238  void clearInkButtons();
239 
240 private:
241 
245  Ui::InkScreen *ui;
246 };
247 
248 #endif // INKSCREEN_H
Definition: beforestart.h:6
Ui::InkScreen * ui
ui
Definition: inkscreen.h:245
The InkScreen class.
Definition: inkscreen.h:15
The Interfaz class. Represents generic screen.
Definition: interfaz.h:10
The View class.
Definition: view.h:22