- played around with transparency
[buliscores] / src / mainwidget.h
1 #ifndef MAINWIDGET_H
2 #define MAINWIDGET_H
3
4 #include <QWidget>
5 #include <QVBoxLayout>
6 #include <QLabel>
7
8 #include "matchdaybackend.h"
9 #include "scoretable.h"
10 #include "settingsdialog.h"
11
12
13 class MainWidget : public QWidget
14 {
15     Q_OBJECT
16 public:
17     explicit MainWidget(QWidget *parent = 0);
18
19     void mousePressEvent(QMouseEvent* event);
20
21 public slots:
22     void showSettingsDialog();
23
24 protected slots:
25     void onBackendUpdateStarted();
26     void onBackendUpdateFinished(void);
27
28 private:
29     MatchDayBackend* m_backend;
30     MatchDayModel*   m_datamodel;
31     ScoreTable*      m_scoretbl;
32     SettingsDialog*  m_settingsdlg;
33     QSettings        m_settings;
34
35     QVBoxLayout m_layout;
36     QLabel      m_statuslbl;
37
38 private slots:
39     void update(void);
40
41 };
42
43 #endif // MAINWIDGET_H