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
35 explicit StationListView(StationListModel *model, QWidget *parent = 0);
38 void setSortingMode(SortingMode mode);
39 SortingMode sortingMode(void);
42 void stationSelected(const QString &);
43 void aboutTriggered(void);
44 void settingsChangeRequested(void);
45 void sortingModeChanged(SortingMode mode);
48 void updatePosition(const QGeoPositionInfo &update);
51 void showStation(const QModelIndex &index);
52 void handleFilterChanges(const QString &filter);
53 void handleSortingChange(QAction *action);
55 void handlefilterClearClick();
58 Ui::StationListView *ui;
59 QActionGroup *viewSelectionGroup;
60 StationListModel *stationListModel;
61 StationListProxyModel *filterModel;
62 KeyPressForwarder *keyPressForwarder;
63 QGeoPositionInfoSource *positionInfoSource;
64 SortingMode m_sortingMode;
67 #endif // STATIONLISTVIEW_H