Just testing...one header added to UI_design document.
[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(RouteSaveDialog *parent = 0);
26     ~RouteDialog();
27     bool readRouteFromFile( QString &routeFile);
28     int getLeft();
29     int getTop();
30     int getRight();
31     int getBottom();
32     void setLabelInfoToUser(QString infoText);
33     void setSendServerButtonEnabled();
34     HelpRoutingDialog *helpRoutingDialog;
35
36 signals:
37     void sendroute();
38
39 protected:
40     void changeEvent(QEvent *e);
41     void paintEvent(QPaintEvent *);
42
43 private:
44     Ui::RouteDialog *ui;
45     int left, top, right, bottom;       // Limits in screen coordinates in route dialog
46     void checkLogin();
47
48 private slots:
49     void on_pushButtonInfo_clicked();
50     void on_sendPushButton_clicked();
51     void on_newPushButton_clicked();
52     void killHelpDialog();
53 };
54
55 #endif // ROUTEDIALOG_H