1 #ifndef STATIONLISTVIEW_H
2 #define STATIONLISTVIEW_H
6 #include <QGeoPositionInfoSource>
13 class QStringListModel;
14 class QSortFilterProxyModel;
15 class KeyPressForwarder;
18 class StationListModel;
19 class StationListProxyModel;
23 class StationListView : public QMainWindow
28 explicit StationListView(StationListModel *model, QWidget *parent = 0);
32 void stationSelected(const QString &);
33 void aboutTriggered(void);
36 void updatePosition(const QGeoPositionInfo &update);
39 void showSettings(void);
40 void showStation(const QModelIndex &index);
41 void handleFilterChanges(const QString &filter);
44 Ui::StationListView *ui;
45 QActionGroup *viewSelectionGroup;
46 StationListModel *stationListModel;
47 StationListProxyModel *filterModel;
48 KeyPressForwarder *keyPressForwarder;
51 #endif // STATIONLISTVIEW_H