HP Views Designer Assistant  1.0.0
TFG - Alberto Gutierrez Perez - Universidad de Valladolid
settings.h
1 #ifndef SETTINGS_H
2 #define SETTINGS_H
3 
4 #include <View/view.h>
5 
6 namespace Ui {
7 class Settings;
8 }
9 
13 class Settings : public View
14 {
15  Q_OBJECT
16 
17 public:
18 
23  explicit Settings(QWidget *parent = 0);
24  ~Settings();
25 
30  void showError(QString error);
31 
36  void showSuccess(QString success);
37 
42  void showInfo(QString info);
43 
48  QString getDefaultDir();
49 
54  void setDefaultDir(QString path);
55 
60  void setAlwaysAsk(bool value);
61 
66  bool getAlwaysAsk();
67 
71  void retranslate();
72 
76  void setSpanishLanguage();
77 
81  void setEnglishLanguage();
82 
83 
84 private slots:
85 
89  void on_aboutBtn_clicked();
90 
94  void on_homeBtn_clicked();
95 
100  void on_alwaysAskRadio_clicked(bool checked);
101 
105  void on_browserBtn_clicked();
106 
110  void on_helpBtn_clicked();
111 
115  void on_browserDirInput_textEdited();
116 
120  void on_resetValueBtn_clicked();
121 
125  void on_spanishRadio_clicked();
126 
130  void on_englishRadio_clicked();
131 
132 private:
133 
137  Ui::Settings *ui;
138 
142  void setValidators();
143 
147  void initElements();
148 
152  void isFullFill();
153 
158  void alwaysAskOptions(bool checked);
159 
163  void setToolTips();
164 };
165 
166 #endif // SETTINGS_H
Definition: beforestart.h:6
Ui::Settings * ui
ui
Definition: settings.h:137
The Settings class.
Definition: settings.h:13
The View class.
Definition: view.h:22