equal
deleted
inserted
replaced
1 #ifndef MAINWINDOW_H |
1 #ifndef MAINWINDOW_H |
2 #define MAINWINDOW_H |
2 #define MAINWINDOW_H |
3 |
3 |
4 #include <QMainWindow> |
4 #include <QMainWindow> |
5 #include "contactsengine.h" |
5 #include "contactsengine.h" |
|
6 #include "detailsgv.h" |
6 |
7 |
7 namespace Ui { |
8 namespace Ui { |
8 class MainWindow; |
9 class MainWindow; |
9 } |
10 } |
10 |
11 |
11 class MainWindow : public QMainWindow |
12 class MainWindow : public QMainWindow |
12 { |
13 { |
13 Q_OBJECT |
14 Q_OBJECT |
14 |
15 |
15 public: |
16 public: |
|
17 // this enum is used as in index for the QStackedWidget. |
|
18 enum {EListPage = 0, // lists of contacts |
|
19 EDetailsGV}; // presents list of details for a contact based on Graphics View |
|
20 |
16 explicit MainWindow(QWidget *parent = 0); |
21 explicit MainWindow(QWidget *parent = 0); |
17 ~MainWindow(); |
22 ~MainWindow(); |
18 void createMenus(); |
23 void createMenus(); |
19 |
24 |
20 public slots: |
25 public slots: |
21 void errorOccurred(QString errMsg); |
26 void errorOccurred(QString errMsg); |
22 void displayVersion(); |
27 void displayVersion(); |
23 |
28 void displayDetails(); |
|
29 void displayList(); |
24 |
30 |
25 private: |
31 private: |
|
32 DetailsGV *details; |
|
33 QAction *detailsAction; |
26 QAction *verAction; |
34 QAction *verAction; |
27 QAction *exitAction; |
35 QAction *exitAction; |
|
36 |
28 Ui::MainWindow *ui; |
37 Ui::MainWindow *ui; |
29 ContactsEngine *ce; |
38 ContactsEngine *ce; |
30 }; |
39 }; |
31 |
40 |
32 #endif // MAINWINDOW_H |
41 #endif // MAINWINDOW_H |