Custom button class added.
[speedfreak] / Client / routedialog.h
index 333b097..85d4aad 100644 (file)
@@ -1,3 +1,12 @@
+/*
+ * RouteDialog class
+ *
+ * @author      Olavi Pulkkinen <olavi.pulkkinen@fudeco.com>
+ * @author      Toni Jussila   <toni.jussila@fudeco.com>
+ * @copyright   (c) 2010 Speed Freak team
+ * @license     http://opensource.org/licenses/gpl-license.php GNU Public License
+ */
+
 #ifndef ROUTEDIALOG_H
 #define ROUTEDIALOG_H
 
@@ -9,18 +18,33 @@ namespace Ui {
 
 class RouteDialog : public QDialog {
     Q_OBJECT
+
 public:
     RouteDialog(QWidget *parent = 0);
     ~RouteDialog();
+    bool readRouteFromFile( QString &routeFile);
+    int getLeft();
+    int getTop();
+    int getRight();
+    int getBottom();
+    void setLabelInfoToUser(QString infoText);
+    void setSendServerButtonEnabled();
+
+signals:
+    void sendroute();
 
 protected:
     void changeEvent(QEvent *e);
+    void paintEvent(QPaintEvent *);
 
 private:
     Ui::RouteDialog *ui;
+    int left, top, right, bottom;       // Limits in screen coordinates in route dialog
+    void checkLogin();
 
 private slots:
-    void on_closePushButton_clicked();
+    void on_sendPushButton_clicked();
+    void on_newPushButton_clicked();
 };
 
 #endif // ROUTEDIALOG_H