HP Views Designer Assistant  1.0.0
TFG - Alberto Gutierrez Perez - Universidad de Valladolid
mainwindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #define NUMBER_OF_BUTTONS 4
5 #define TOP_MARGIN 150
6 #define SIDE_MARGIN 150
7 #define MIN_SIZE_OPTION_BUTTON 150
8 
9 #include <QMainWindow>
10 #include <QMouseEvent>
11 #include <QDragEnterEvent>
12 
13 
15 
16 namespace Ui {
17 class MainWindow;
18 }
19 
23 class MainWindow : public QMainWindow
24 {
25  Q_OBJECT
26 
27 public:
28 
33  explicit MainWindow(QWidget *parent = 0);
34  ~MainWindow();
35 
41  void showError(int numErrors, QString errors);
42 
47  QPoint getCurrentPosition() const;
48 
49 private slots:
50 
54  void on_menuBtn_clicked();
55 
59  void on_infoBtn_clicked();
60 
64  void on_inkBtn_clicked();
65 
69  void on_editBtn_clicked();
70 
74  void on_settingsBtn_clicked();
75 
79  void on_helpBtn_clicked();
80 
85  void moveEvent(QMoveEvent *event);
86 
90  void on_editBtnUp_clicked();
91 
95  void on_editBtnDown_clicked();
96 
100  void on_infoBtnUp_clicked();
101 
105  void on_infoBtnDown_clicked();
106 
110  void on_menuBtnUp_clicked();
111 
115  void on_menuBtnDown_clicked();
116 
120  void on_inkBtnUp_clicked();
121 
125  void on_inkBtnDown_clicked();
126 
130  void on_startBtn_clicked();
131 
136  void closeEvent(QCloseEvent *e);
137 
138 private:
139 
143  Ui::MainWindow *ui;
144 
149 
154 };
155 
156 #endif // MAINWINDOW_H
MainWindowController * controller
controller Main window controller.
Definition: mainwindow.h:148
Definition: beforestart.h:6
Ui::MainWindow * ui
ui
Definition: mainwindow.h:143
QPoint currentPosition
currentPosition Main window position.
Definition: mainwindow.h:153
The MainWindowController class.
Definition: mainwindowcontroller.h:11
The MainWindow class.
Definition: mainwindow.h:23