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
34 explicit StationListView(StationListModel *model, QWidget *parent = 0);
37 void setSortingMode(SortingMode mode);
38 SortingMode sortingMode(void);
41 void stationSelected(const QString &);
42 void aboutTriggered(void);
45 void updatePosition(const QGeoPositionInfo &update);
48 void showSettings(void);
49 void showStation(const QModelIndex &index);
50 void handleFilterChanges(const QString &filter);
51 void handleSortingChange(const QAction *action);
54 Ui::StationListView *ui;
55 QActionGroup *viewSelectionGroup;
56 StationListModel *stationListModel;
57 StationListProxyModel *filterModel;
58 KeyPressForwarder *keyPressForwarder;
59 SortingMode m_sortingMode;
62 #endif // STATIONLISTVIEW_H