Feature: Show average speed in realtime.
[speedfreak] / Client / routedialog.h
1 /*
2  * RouteDialog class
3  *
4  * @author      Olavi Pulkkinen <olavi.pulkkinen@fudeco.com>
5  * @author      Toni Jussila    <toni.jussila@fudeco.com>
6  * @copyright   (c) 2010 Speed Freak team
7  * @license     http://opensource.org/licenses/gpl-license.php GNU Public License
8  */
9
10 #ifndef ROUTEDIALOG_H
11 #define ROUTEDIALOG_H
12
13 #include <QDialog>
14 #include <helproutingdialog.h>
15 class RouteSaveDialog;
16
17 namespace Ui {
18     class RouteDialog;
19 }
20
21 class RouteDialog : public QDialog {
22     Q_OBJECT
23
24 public:
25     //RouteDialog(QWidget *parent = 0);
26     RouteDialog(RouteSaveDialog *parent = 0);
27     ~RouteDialog();
28     bool readRouteFromFile( QString &routeFile);
29     int getLeft();
30     int getTop();
31     int getRight();
32     int getBottom();
33     void setLabelInfoToUser(QString infoText);
34     void setSendServerButtonEnabled();
35     HelpRoutingDialog *helpRoutingDialog;
36
37 signals:
38     void sendroute();
39
40 protected:
41     void changeEvent(QEvent *e);
42     void paintEvent(QPaintEvent *);
43
44 private:
45     Ui::RouteDialog *ui;
46     int left, top, right, bottom;       // Limits in screen coordinates in route dialog
47     void checkLogin();
48
49 private slots:
50     void on_pushButtonInfo_clicked();
51     void on_sendPushButton_clicked();
52     void on_newPushButton_clicked();
53     void killHelpDialog();
54 };
55
56 #endif // ROUTEDIALOG_H