From: Olavi Pulkkinen Date: Mon, 29 Mar 2010 10:15:37 +0000 (+0300) Subject: Added new routedialog X-Git-Tag: v0.2-RC1~34^2~19 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=9393cb324847eb03de0f95abcbe5da74e9d36370;p=speedfreak Added new routedialog --- diff --git a/Client/routedialog.cpp b/Client/routedialog.cpp new file mode 100644 index 0000000..3ac0fb6 --- /dev/null +++ b/Client/routedialog.cpp @@ -0,0 +1,26 @@ +#include "routedialog.h" +#include "ui_routedialog.h" + +RouteDialog::RouteDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::RouteDialog) +{ + ui->setupUi(this); +} + +RouteDialog::~RouteDialog() +{ + delete ui; +} + +void RouteDialog::changeEvent(QEvent *e) +{ + QDialog::changeEvent(e); + switch (e->type()) { + case QEvent::LanguageChange: + ui->retranslateUi(this); + break; + default: + break; + } +} diff --git a/Client/routedialog.h b/Client/routedialog.h new file mode 100644 index 0000000..3386311 --- /dev/null +++ b/Client/routedialog.h @@ -0,0 +1,23 @@ +#ifndef ROUTEDIALOG_H +#define ROUTEDIALOG_H + +#include + +namespace Ui { + class RouteDialog; +} + +class RouteDialog : public QDialog { + Q_OBJECT +public: + RouteDialog(QWidget *parent = 0); + ~RouteDialog(); + +protected: + void changeEvent(QEvent *e); + +private: + Ui::RouteDialog *ui; +}; + +#endif // ROUTEDIALOG_H diff --git a/Client/routedialog.ui b/Client/routedialog.ui new file mode 100644 index 0000000..3e5921f --- /dev/null +++ b/Client/routedialog.ui @@ -0,0 +1,71 @@ + + + + + RouteDialog + + + + 0 + 0 + 400 + 300 + + + + Dialog + + + + + 30 + 240 + 341 + 32 + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + buttonBox + accepted() + RouteDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + RouteDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/Client/speedfreak.pro b/Client/speedfreak.pro index 2cc5a1b..e1a0ddd 100644 --- a/Client/speedfreak.pro +++ b/Client/speedfreak.pro @@ -5,8 +5,11 @@ TARGET = speedfreak TEMPLATE = app SOURCES += main.cpp \ mainwindow.cpp \ - creditsdialog.cpp + creditsdialog.cpp \ + routedialog.cpp HEADERS += mainwindow.h \ - creditsdialog.h + creditsdialog.h \ + routedialog.h FORMS += mainwindow.ui \ - creditsdialog.ui + creditsdialog.ui \ + routedialog.ui