f8cd3713acc2a54992c3193cfc7343859606acdc
[quandoparte] / application / stationlistview.h
1 #ifndef STATIONLISTVIEW_H
2 #define STATIONLISTVIEW_H
3
4 #include <QMainWindow>
5 #include <QModelIndex>
6
7 namespace Ui {
8     class StationListView;
9 }
10
11 class QActionGroup;
12 class QStringListModel;
13
14 class StationView;
15
16 class StationListView : public QMainWindow
17 {
18     Q_OBJECT
19
20 public:
21     explicit StationListView(QWidget *parent = 0);
22     ~StationListView();
23
24 signals:
25     void stationSelected(const QString &);
26
27 private slots:
28     void showSettings(void);
29     void showStation(const QModelIndex &index);
30
31 private:
32     Ui::StationListView *ui;
33     QActionGroup *viewSelectionGroup;
34     QStringListModel *stationListModel;
35     StationView *stationView;
36 };
37
38 #endif // STATIONLISTVIEW_H