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