<file>Graphics/route_stop.png</file>
<file>Graphics/trophy_gold_refresh.png</file>
<file>Graphics/sf_2.png</file>
- <file>Graphics/measuringDialog.png</file>
+ <file>Graphics/measuringDialog.png</file>
+ <file>Graphics/settingsDialog.png</file>
</qresource>
</RCC>
helpAccelerationDialog = NULL;
helpRoutingDialog = NULL;
creditsDialog = NULL;
+ helpSettingsDialog = NULL;
}
HelpDialog::~HelpDialog()
}
creditsDialog->show();
}
+
+void HelpDialog::on_pushButtonHelpSettings_clicked()
+{
+ if(!helpSettingsDialog)
+ {
+ helpSettingsDialog = new HelpSettingsDialog;
+ }
+ helpSettingsDialog->show();
+}
#include <helpaccelerationdialog.h>
#include <helproutingdialog.h>
#include "creditsdialog.h"
+#include <helpsettingsdialog.h>
namespace Ui {
class HelpDialog;
HelpAccelerationDialog *helpAccelerationDialog;
HelpRoutingDialog *helpRoutingDialog;
CreditsDialog *creditsDialog;
+ HelpSettingsDialog *helpSettingsDialog;
protected:
void changeEvent(QEvent *e);
private slots:
+ void on_pushButtonHelpSettings_clicked();
void on_pushButtonCredits_clicked();
void on_pushButtonHelpRoute_clicked();
void on_pushButtonHelpAccelerate_clicked();
</size>
</property>
</widget>
- <widget class="QPushButton" name="pushButtonHelpWWW">
- <property name="geometry">
- <rect>
- <x>140</x>
- <y>300</y>
- <width>61</width>
- <height>61</height>
- </rect>
- </property>
- <property name="autoFillBackground">
- <bool>true</bool>
- </property>
- <property name="text">
- <string/>
- </property>
- <property name="icon">
- <iconset resource="graphics.qrc">
- <normaloff>:/new/prefix1/Graphics/applications_internet.png</normaloff>:/new/prefix1/Graphics/applications_internet.png</iconset>
- </property>
- <property name="iconSize">
- <size>
- <width>55</width>
- <height>55</height>
- </size>
- </property>
- </widget>
<widget class="QLabel" name="labelHelpRoute">
<property name="geometry">
<rect>
<rect>
<x>230</x>
<y>310</y>
- <width>171</width>
+ <width>261</width>
<height>41</height>
</rect>
</property>
</font>
</property>
<property name="text">
- <string>WWW-page</string>
+ <string>Speed freak's home page</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonCredits">
<property name="geometry">
<rect>
- <x>432</x>
- <y>306</y>
+ <x>620</x>
+ <y>290</y>
<width>111</width>
<height>51</height>
</rect>
<string>Credits</string>
</property>
</widget>
+ <widget class="QLabel" name="labelWwwPage">
+ <property name="geometry">
+ <rect>
+ <x>140</x>
+ <y>300</y>
+ <width>55</width>
+ <height>55</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="pixmap">
+ <pixmap resource="graphics.qrc">:/new/prefix1/Graphics/applications_internet.png</pixmap>
+ </property>
+ <property name="scaledContents">
+ <bool>true</bool>
+ </property>
+ </widget>
</widget>
<resources>
<include location="graphics.qrc"/>
--- /dev/null
+#include "helpsettingsdialog.h"
+#include "ui_helpsettingsdialog.h"
+
+HelpSettingsDialog::HelpSettingsDialog(QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::HelpSettingsDialog)
+{
+ ui->setupUi(this);
+ pageCounter = 0;
+
+ ui->labelInfo2->hide();
+ ui->labelLast->hide();
+ ui->pushButtonLast->hide();
+}
+
+HelpSettingsDialog::~HelpSettingsDialog()
+{
+ delete ui;
+}
+
+void HelpSettingsDialog::changeEvent(QEvent *e)
+{
+ QDialog::changeEvent(e);
+ switch (e->type()) {
+ case QEvent::LanguageChange:
+ ui->retranslateUi(this);
+ break;
+ default:
+ break;
+ }
+}
+
+void HelpSettingsDialog::on_pushButtonNext_clicked()
+{
+ pageCounter ++;
+
+ if(pageCounter == 1)
+ {
+ ui->labelNext->hide();
+ ui->pushButtonNext->hide();
+ ui->labelInfo1->hide();
+
+ ui->labelInfo2->show();
+ ui->labelLast->show();
+ ui->pushButtonLast->show();
+ }
+}
+
+void HelpSettingsDialog::on_pushButtonLast_clicked()
+{
+ pageCounter --;
+
+ if(pageCounter == 0)
+ {
+ ui->labelInfo2->hide();
+ ui->labelLast->hide();
+ ui->pushButtonLast->hide();
+
+ ui->labelNext->show();
+ ui->pushButtonNext->show();
+ ui->labelInfo1->show();
+ }
+}
--- /dev/null
+#ifndef HELPSETTINGSDIALOG_H
+#define HELPSETTINGSDIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+ class HelpSettingsDialog;
+}
+
+class HelpSettingsDialog : public QDialog {
+ Q_OBJECT
+public:
+ HelpSettingsDialog(QWidget *parent = 0);
+ ~HelpSettingsDialog();
+
+protected:
+ void changeEvent(QEvent *e);
+
+private:
+ Ui::HelpSettingsDialog *ui;
+ int pageCounter;
+
+private slots:
+ void on_pushButtonLast_clicked();
+ void on_pushButtonNext_clicked();
+};
+
+#endif // HELPSETTINGSDIALOG_H
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>HelpSettingsDialog</class>
+ <widget class="QDialog" name="HelpSettingsDialog">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>800</width>
+ <height>380</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Help for settings</string>
+ </property>
+ <widget class="QPushButton" name="pushButtonLast">
+ <property name="geometry">
+ <rect>
+ <x>540</x>
+ <y>320</y>
+ <width>81</width>
+ <height>61</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string><</string>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pushButtonNext">
+ <property name="geometry">
+ <rect>
+ <x>670</x>
+ <y>320</y>
+ <width>81</width>
+ <height>61</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>></string>
+ </property>
+ </widget>
+ <widget class="QLabel" name="labelNext">
+ <property name="geometry">
+ <rect>
+ <x>690</x>
+ <y>290</y>
+ <width>62</width>
+ <height>17</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Next</string>
+ </property>
+ </widget>
+ <widget class="QLabel" name="labelLast">
+ <property name="geometry">
+ <rect>
+ <x>560</x>
+ <y>290</y>
+ <width>62</width>
+ <height>17</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Last</string>
+ </property>
+ </widget>
+ <widget class="QLabel" name="labelInfo1">
+ <property name="geometry">
+ <rect>
+ <x>20</x>
+ <y>10</y>
+ <width>431</width>
+ <height>321</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Speed freak communicates with server.
+If you want send your results to server
+or view other users results you need to
+register to server.
+
+1. For registering: Set user name,
+password and valid e-mail address to
+the fields. Press Register-button and
+your registering will be confirmed. </string>
+ </property>
+ </widget>
+ <widget class="QLabel" name="labelSettingsPic">
+ <property name="geometry">
+ <rect>
+ <x>500</x>
+ <y>50</y>
+ <width>291</width>
+ <height>211</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="pixmap">
+ <pixmap resource="graphics.qrc">:/new/prefix1/Graphics/settingsDialog.png</pixmap>
+ </property>
+ <property name="scaledContents">
+ <bool>true</bool>
+ </property>
+ <property name="textInteractionFlags">
+ <set>Qt::LinksAccessibleByMouse</set>
+ </property>
+ </widget>
+ <widget class="QLabel" name="labelInfo2">
+ <property name="geometry">
+ <rect>
+ <x>20</x>
+ <y>10</y>
+ <width>421</width>
+ <height>351</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>2. After succesful registering you need
+to put username and password to the
+fields and press Set user button. After
+that you are logged in and can send
+own results to the server.
+
+NOTE: If you are registered your user-
+name before you just need to set your
+username and password in to the Set user
+fields and press Set user -button.</string>
+ </property>
+ </widget>
+ </widget>
+ <resources>
+ <include location="graphics.qrc"/>
+ </resources>
+ <connections/>
+</ui>
helpdialog.cpp \
helpresultsdialog.cpp \
helpaccelerationdialog.cpp \
- helproutingdialog.cpp
+ helproutingdialog.cpp \
+ helpsettingsdialog.cpp
HEADERS += mainwindow.h \
creditsdialog.h \
routedialog.h \
helpdialog.h \
helpresultsdialog.h \
helpaccelerationdialog.h \
- helproutingdialog.h
+ helproutingdialog.h \
+ helpsettingsdialog.h
FORMS += mainwindow.ui \
creditsdialog.ui \
routedialog.ui \
helpdialog.ui \
helpresultsdialog.ui \
helpaccelerationdialog.ui \
- helproutingdialog.ui
+ helproutingdialog.ui \
+ helpsettingsdialog.ui
RESOURCES += graphics.qrc
contains(QT_CONFIG, hildon):CONFIG += hildon
CONFIG += link_pkgconfig
<result value="14" unit="seconds" date="14/2/2010" />
+Sending route
+=============
+
+URL:
+
+Below is example of XML:
+
+<?xml version="1.0" encoding="UTF-8"?>
+<Route Start-time="19.04.2010 21:44:49" Stop-time="19.04.2010 22:05:44" Points="4">
+ <Point Latitude="65.0024" Longitude="25.4804" Altitude="32" Speed="29.052"/>
+ <Point Latitude="65.0023" Longitude="25.5508" Altitude="45" Speed="29.052"/>
+ <Point Latitude="65.0022" Longitude="25.5509" Altitude="41.5" Speed="29.052"/>
+ <Point Latitude="65.0022" Longitude="25.551" Altitude="37.5" Speed="29.052"/>
+</Route>
+
+
Logout
======