qt5
Last change
on this file since 001c8cf was
001c8cf,
checked in by pavelpa <pavelpa@…>, 13 years ago
|
'search' tab functionality moved to 'tabcontainer'
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifndef TABCONTAINER_H |
---|
2 | #define TABCONTAINER_H |
---|
3 | |
---|
4 | #include <QWidget> |
---|
5 | #include "ui_tabcontainer.h" |
---|
6 | |
---|
7 | class TabContainer : public QWidget, Ui::TabContainer |
---|
8 | { |
---|
9 | Q_OBJECT |
---|
10 | public: |
---|
11 | |
---|
12 | // type of the container |
---|
13 | // specifies the type of the data that treeView holds |
---|
14 | enum Type |
---|
15 | { |
---|
16 | EContainerTypeNone = 0, |
---|
17 | EContainerTypeDay, |
---|
18 | EContainerTypeFavs, |
---|
19 | EContainerTypeTracks, |
---|
20 | EContainerTypeRooms, |
---|
21 | EContainerTypeSearch, |
---|
22 | EContainerTypeNow |
---|
23 | }; |
---|
24 | |
---|
25 | TabContainer(QWidget *aParent = NULL); |
---|
26 | ~TabContainer() {} |
---|
27 | void setType(TabContainer::Type aType); |
---|
28 | |
---|
29 | signals: |
---|
30 | void eventHasChanged(int aEventId); |
---|
31 | |
---|
32 | public slots: |
---|
33 | void updateTreeViewModel(int aEventId); |
---|
34 | void setDates(const QDate &aStart, const QDate &aEnd); |
---|
35 | |
---|
36 | private slots: |
---|
37 | void updateTreeView(const QDate &aDate); |
---|
38 | void timerUpdateTreeView(); |
---|
39 | void itemClicked(const QModelIndex &aIndex); |
---|
40 | void displayMap(const QModelIndex &aIndex); |
---|
41 | void displayWarning(const QModelIndex &aIndex); |
---|
42 | void searchClicked(); |
---|
43 | void searchAgainClicked(); |
---|
44 | |
---|
45 | private: |
---|
46 | TabContainer::Type mType; |
---|
47 | }; |
---|
48 | |
---|
49 | #endif /* TABCONTAINER_H */ |
---|
50 | |
---|
Note: See
TracBrowser
for help on using the repository browser.