Created new ui for the program. Almost everything that worked previously
[ptas] / zouba / src / gui / searchdisplay.h
diff --git a/zouba/src/gui/searchdisplay.h b/zouba/src/gui/searchdisplay.h
new file mode 100644 (file)
index 0000000..5c41c2a
--- /dev/null
@@ -0,0 +1,64 @@
+#ifndef SEARCHDISPLAY_H
+#define SEARCHDISPLAY_H
+
+#include <QMainWindow>
+#include <QLineEdit>
+
+#include "routeresultwidget.h"
+#include "locationsdisplaywindow.h"
+#include "favoriteselectiondialog.h"
+
+#include "src/logic/routefinder.h"
+
+
+namespace Ui {
+    class SearchDisplay;
+}
+
+class SearchDisplay : public QMainWindow
+{
+    Q_OBJECT
+
+public:
+    explicit SearchDisplay(QWidget *parent = 0);
+    ~SearchDisplay();
+
+public slots:
+    void locations_changed();
+
+private slots:
+    void on_dest_favorites_clicked();
+    void on_from_favorites_clicked();
+    void on_dest_combo_currentIndexChanged(QString );
+    void on_from_combo_currentIndexChanged(QString );
+    void on_searchButton_clicked();
+
+    void route_finder_finished();
+
+private:
+    void setEditText(QLineEdit*, QString&);
+    void updateLocationLists();
+
+    Ui::SearchDisplay *ui;
+    RouteFinder *route_finder;
+
+#ifdef Q_WS_MAEMO_5
+private slots:
+    void from_selection_selected(Location*);
+    void dest_selection_selected(Location*);
+    void customize_requested();
+private:
+    Location *from_selected;
+    Location *dest_selected;
+    LocationsDisplayWindow *edit_window;
+#else
+
+private slots:
+    void tabclosed(int index);
+private:
+    QTabWidget *tabs;
+#endif
+};
+
+
+#endif // SEARCHDISPLAY_H