]> ToastFreeware Gitweb - toast/confclerk.git/blob - src/gui/mainwindow.h
Conference map
[toast/confclerk.git] / src / gui / mainwindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3
4 #include <QtGui/QMainWindow>
5
6 #include <ui_mainwindow.h>
7
8 class SqlEngine;
9
10 class MainWindow : public QMainWindow, private Ui::MainWindow
11 {
12     Q_OBJECT
13 public:
14     // aEventId is used to inform widget to automatically open
15     // Event dialog for given Event ID
16     MainWindow(int aEventId = 0, QWidget *aParent = NULL);
17     ~MainWindow();
18 private slots:
19     void importSchedule();
20     void aboutApp();
21     void updateDayView(const QDate &aDate);
22     void updateTracksView(const QDate &aDate);
23     void updateFavouritesView(const QDate &aDate);
24     void updateSearchView(const QDate &aDate);
25     void updateNowView();
26     void itemClicked(const QModelIndex &aIndex);
27     void displayMap(const QModelIndex &aIndex);
28     void displayWarning(const QModelIndex &aIndex);
29     void searchClicked();
30     void conferenceMapClicked();
31     void tabHasChanged(int aIndex);
32     void eventHasChanged(int aEventId);
33 private:
34     SqlEngine *mSqlEngine;
35 };
36
37 #endif // MAINWINDOW_H
38