WWW, settings and info buttons changed to custom buttons.
[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 class CalibrateDialog;
17
18 namespace Ui {
19     class RouteDialog;
20 }
21
22 class RouteDialog : public QDialog {
23     Q_OBJECT
24
25 public:
26     RouteDialog(RouteSaveDialog *parent = 0);
27     ~RouteDialog();
28     bool readRouteFromFile( QString &routeFile, CalibrateDialog *calibrateDialog);
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     CalibrateDialog *progresbar;
47     int left, top, right, bottom;       // Limits in screen coordinates in route dialog
48     void checkLogin();
49
50 private slots:
51     void on_pushButtonInfo_clicked();
52     void on_sendPushButton_clicked();
53     void on_newPushButton_clicked();
54     void killHelpDialog();
55 };
56
57 #endif // ROUTEDIALOG_H