Fixed minor bugs
[speedfreak] / Client / routedialog.h
index 333b097..a82dbd1 100644 (file)
@@ -1,7 +1,18 @@
+/*
+ * 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
 
 #include <QDialog>
+#include <helproutingdialog.h>
+class RouteSaveDialog;
 
 namespace Ui {
     class RouteDialog;
@@ -9,18 +20,37 @@ namespace Ui {
 
 class RouteDialog : public QDialog {
     Q_OBJECT
+
 public:
-    RouteDialog(QWidget *parent = 0);
+    RouteDialog(RouteSaveDialog *parent = 0);
     ~RouteDialog();
+    bool readRouteFromFile( QString &routeFile);
+    int getLeft();
+    int getTop();
+    int getRight();
+    int getBottom();
+    void setLabelInfoToUser(QString infoText);
+    void setSendServerButtonEnabled();
+    HelpRoutingDialog *helpRoutingDialog;
+
+signals:
+    void sendroute(QString,int);
+    void progressbar(int);
 
 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();
+    QString fileName;
 
 private slots:
-    void on_closePushButton_clicked();
+    void on_pushButtonInfo_clicked();
+    void on_sendPushButton_clicked();
+    void killHelpDialog();
 };
 
 #endif // ROUTEDIALOG_H