HP Views Designer Assistant  1.0.0
TFG - Alberto Gutierrez Perez - Universidad de Valladolid
informationscreenoptions.h
1 #ifndef INFORMATIONSCREENOPTIONS_H
2 #define INFORMATIONSCREENOPTIONS_H
3 
4 #include <View/view.h>
5 
6 namespace Ui {
8 }
9 
14 {
15  Q_OBJECT
16 
17 public:
18 
24  explicit InformationScreenOptions( bool hasIcons, QWidget *parent = 0);
26 
31  void showError(QString error);
32 
37  void showSuccess(QString success);
38 
43  void showInfo(QString info);
44 
49  void setController(Controller *controller);
50 
55  QString getCardTitle();
56 
61  QString getPropertyName();
62 
67  QString getPropertyValue();
68 
73  void addProperty(QString name);
74 
79  void showProperty(QStringList property);
80 
85  int getCurrentIndexProperty();
86 
93  void updatePropertyList(bool isChange, int index, QString property);
94 
99  void setProgress(int progress);
100 
105  QString getCardImage();
106 
110  void disableAddBtn();
111 
115  void isPropertyFill();
116 
120  void clearPropertyInput();
121 
125  void clear();
126 
131  void setCardTitle(QString title);
132 
137  void setCardImage(QString path);
138 
139 private slots:
140 
144  void on_helpBtn_clicked();
145 
149  void on_homeBtn_clicked();
150 
154  void on_settingsBtn_clicked();
155 
159  void on_titleInput_textEdited();
160 
164  void on_propertyInput_textChanged( );
165 
169  void on_valueInput_textChanged( );
170 
174  void on_addPropertyBtn_clicked();
175 
179  void on_removePropertyBtn_clicked();
180 
184  void on_editPropertyBtn_clicked();
185 
189  void on_propertiesList_itemClicked();
190 
194  void on_continueBtn_clicked();
195 
199  void on_browseBtn_clicked();
200 
204  void on_hpIconBtn_clicked();
205 
206 private:
207 
211  void initElements();
212 
216  void setValidators();
217 
221  void isFullFill();
222 
226  void hideIconElements();
227 
231  void showPropertyOptions();
232 
236  void setToolTips();
237 
242  void setIconImage(QString path);
243 
244 private:
245 
249  Ui::InformationScreenOptions *ui;
250 
251 };
252 
253 #endif // INFORMATIONSCREENOPTIONS_H
Definition: beforestart.h:6
Ui::InformationScreenOptions * ui
ui
Definition: informationscreenoptions.h:249
The Controller class.
Definition: controller.h:13
The View class.
Definition: view.h:22
The InformationScreenOptions class.
Definition: informationscreenoptions.h:13