Youtube video and text (draft).
[speedfreak] / Client / routedialog.h
1 /*
2  * RouteDialog class
3  *
4  * @author     Olavi Pulkkinen <olavi.pulkkinen@fudeco.com>
5  * @copyright  (c) 2010 Speed Freak team
6  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
7  */
8
9 #ifndef ROUTEDIALOG_H
10 #define ROUTEDIALOG_H
11
12 #include <QDialog>
13
14 namespace Ui {
15     class RouteDialog;
16 }
17
18 class RouteDialog : public QDialog {
19     Q_OBJECT
20 public:
21     RouteDialog(QWidget *parent = 0);
22     ~RouteDialog();
23     bool readRouteFromFile( QString &routeFile);
24     int getLeft();
25     int getTop();
26     int getRight();
27     int getBottom();
28     void setLabelInfoToUser(QString infoText);
29
30 signals:
31     void sendroute();
32
33 protected:
34     void changeEvent(QEvent *e);
35     void paintEvent(QPaintEvent *);
36
37 private:
38     Ui::RouteDialog *ui;
39     int left, top, right, bottom;       // Limits in screen coordinates in route dialog
40
41 private slots:
42     void on_sendPushButton_clicked();
43     void on_newPushButton_clicked();
44 };
45
46 #endif // ROUTEDIALOG_H