Added comments
[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
29 protected:
30     void changeEvent(QEvent *e);
31     void paintEvent(QPaintEvent *);
32
33 private:
34     Ui::RouteDialog *ui;
35     int left, top, right, bottom;       // Limits in screen coordinates in route dialog
36
37 private slots:
38     void on_sendPushButton_clicked();
39     void on_newPushButton_clicked();
40 };
41
42 #endif // ROUTEDIALOG_H