Created new ui for the program. Almost everything that worked previously
[ptas] / zouba / src / gui / searchdisplay.h
1 #ifndef SEARCHDISPLAY_H
2 #define SEARCHDISPLAY_H
3
4 #include <QMainWindow>
5 #include <QLineEdit>
6
7 #include "routeresultwidget.h"
8 #include "locationsdisplaywindow.h"
9 #include "favoriteselectiondialog.h"
10
11 #include "src/logic/routefinder.h"
12
13
14 namespace Ui {
15     class SearchDisplay;
16 }
17
18 class SearchDisplay : public QMainWindow
19 {
20     Q_OBJECT
21
22 public:
23     explicit SearchDisplay(QWidget *parent = 0);
24     ~SearchDisplay();
25
26 public slots:
27     void locations_changed();
28
29 private slots:
30     void on_dest_favorites_clicked();
31     void on_from_favorites_clicked();
32     void on_dest_combo_currentIndexChanged(QString );
33     void on_from_combo_currentIndexChanged(QString );
34     void on_searchButton_clicked();
35
36     void route_finder_finished();
37
38 private:
39     void setEditText(QLineEdit*, QString&);
40     void updateLocationLists();
41
42     Ui::SearchDisplay *ui;
43     RouteFinder *route_finder;
44
45 #ifdef Q_WS_MAEMO_5
46 private slots:
47     void from_selection_selected(Location*);
48     void dest_selection_selected(Location*);
49     void customize_requested();
50 private:
51     Location *from_selected;
52     Location *dest_selected;
53     LocationsDisplayWindow *edit_window;
54 #else
55
56 private slots:
57     void tabclosed(int index);
58 private:
59     QTabWidget *tabs;
60 #endif
61 };
62
63
64 #endif // SEARCHDISPLAY_H