Merge branch 'bugfix/categorylist'
[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 public:
22     RouteDialog(QWidget *parent = 0);
23     ~RouteDialog();
24     bool readRouteFromFile( QString &routeFile);
25     int getLeft();
26     int getTop();
27     int getRight();
28     int getBottom();
29     void setLabelInfoToUser(QString infoText);
30
31 signals:
32     void sendroute();
33
34 protected:
35     void changeEvent(QEvent *e);
36     void paintEvent(QPaintEvent *);
37
38 private:
39     Ui::RouteDialog *ui;
40     int left, top, right, bottom;       // Limits in screen coordinates in route dialog
41
42 private slots:
43     void on_sendPushButton_clicked();
44     void on_newPushButton_clicked();
45 };
46
47 #endif // ROUTEDIALOG_H