X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Froutedialog.h;h=a82dbd190a718c34ce5ffe2dca2fb0be7f041471;hp=ce4a6a5a4b7ec8833c438f812eff0a41a2df859c;hb=e540ab0821aef2b3c3a3e3d87f96b46eb6877090;hpb=d58f01b3442d74543b993d2f7ed3d8947a1542b6 diff --git a/Client/routedialog.h b/Client/routedialog.h index ce4a6a5..a82dbd1 100644 --- a/Client/routedialog.h +++ b/Client/routedialog.h @@ -1,7 +1,18 @@ +/* + * RouteDialog class + * + * @author Olavi Pulkkinen + * @author Toni Jussila + * @copyright (c) 2010 Speed Freak team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + */ + #ifndef ROUTEDIALOG_H #define ROUTEDIALOG_H #include +#include +class RouteSaveDialog; namespace Ui { class RouteDialog; @@ -9,10 +20,22 @@ 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); @@ -21,9 +44,13 @@ protected: 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