Added Info button for all dialog.
[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
16 namespace Ui {
17     class RouteDialog;
18 }
19
20 class RouteDialog : public QDialog {
21     Q_OBJECT
22
23 public:
24     RouteDialog(QWidget *parent = 0);
25     ~RouteDialog();
26     bool readRouteFromFile( QString &routeFile);
27     int getLeft();
28     int getTop();
29     int getRight();
30     int getBottom();
31     void setLabelInfoToUser(QString infoText);
32     void setSendServerButtonEnabled();
33     HelpRoutingDialog *helpRoutingDialog;
34
35 signals:
36     void sendroute();
37
38 protected:
39     void changeEvent(QEvent *e);
40     void paintEvent(QPaintEvent *);
41
42 private:
43     Ui::RouteDialog *ui;
44     int left, top, right, bottom;       // Limits in screen coordinates in route dialog
45     void checkLogin();
46
47 private slots:
48     void on_pushButtonInfo_clicked();
49     void on_sendPushButton_clicked();
50     void on_newPushButton_clicked();
51     void killHelpDialog();
52 };
53
54 #endif // ROUTEDIALOG_H