Added custom button for users dialog and changed place of www-button. Www-button...
[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(QString,int);
38     void progressbar(int);
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     QString fileName;
49
50 private slots:
51     void on_pushButtonInfo_clicked();
52     void on_sendPushButton_clicked();
53     void killHelpDialog();
54 };
55
56 #endif // ROUTEDIALOG_H