ui->categorComboBox->addItem("0 - 20 km/h",20);
ui->categorComboBox->addItem("0 - 40 km/h");
ui->categorComboBox->addItem("0 - 100 km/h");
+
+ //Button settings
+ ui->buttonCalib->setAutoFillBackground(true);
+ ui->buttonCalib->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)");
+ ui->buttonStart->setAutoFillBackground(true);
+ ui->buttonStart->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)");
}
accelerationstart::~accelerationstart()
<x>0</x>
<y>0</y>
<width>800</width>
- <height>480</height>
+ <height>380</height>
</rect>
</property>
<property name="windowTitle">
<widget class="QComboBox" name="categorComboBox">
<property name="geometry">
<rect>
- <x>50</x>
- <y>140</y>
+ <x>140</x>
+ <y>160</y>
<width>221</width>
<height>51</height>
</rect>
</property>
</widget>
- <widget class="QPushButton" name="buttonCalib">
+ <widget class="QLabel" name="label">
<property name="geometry">
<rect>
- <x>310</x>
- <y>130</y>
- <width>171</width>
- <height>71</height>
+ <x>0</x>
+ <y>230</y>
+ <width>150</width>
+ <height>150</height>
</rect>
</property>
<property name="text">
- <string>Calibrate</string>
+ <string/>
+ </property>
+ <property name="pixmap">
+ <pixmap resource="graphics.qrc">:/new/prefix1/Graphics/sf.png</pixmap>
</property>
</widget>
- <widget class="QPushButton" name="buttonStart">
+ <widget class="QWidget" name="">
<property name="geometry">
<rect>
- <x>520</x>
- <y>130</y>
- <width>181</width>
- <height>71</height>
+ <x>590</x>
+ <y>0</y>
+ <width>201</width>
+ <height>381</height>
</rect>
</property>
- <property name="text">
- <string>Start</string>
- </property>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QPushButton" name="buttonCalib">
+ <property name="text">
+ <string/>
+ </property>
+ <property name="icon">
+ <iconset resource="graphics.qrc">
+ <normaloff>:/new/prefix1/Graphics/Speedometer_calibrate.png</normaloff>:/new/prefix1/Graphics/Speedometer_calibrate.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>125</width>
+ <height>125</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="buttonStart">
+ <property name="text">
+ <string/>
+ </property>
+ <property name="icon">
+ <iconset resource="graphics.qrc">
+ <normaloff>:/new/prefix1/Graphics/Speedometer_start.png</normaloff>:/new/prefix1/Graphics/Speedometer_start.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>125</width>
+ <height>125</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ </layout>
</widget>
</widget>
- <resources/>
+ <resources>
+ <include location="graphics.qrc"/>
+ </resources>
<connections/>
</ui>
<x>0</x>
<y>0</y>
<width>800</width>
- <height>480</height>
+ <height>380</height>
</rect>
</property>
<property name="windowTitle">
<bool>true</bool>
</property>
</widget>
+ <widget class="QLabel" name="label">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>230</y>
+ <width>150</width>
+ <height>150</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="pixmap">
+ <pixmap resource="graphics.qrc">:/new/prefix1/Graphics/sf.png</pixmap>
+ </property>
+ </widget>
+ <zorder>label</zorder>
+ <zorder>horizontalLayoutWidget</zorder>
+ <zorder>horizontalLayoutWidget_2</zorder>
+ <zorder>buttonAbort</zorder>
+ <zorder>pictureLabel</zorder>
</widget>
<resources>
<include location="graphics.qrc"/>
<file>Graphics/meter.png</file>
<file>Graphics/satellite_vista.png</file>
<file>Graphics/route.png</file>
- <file>Graphics/route_play.png</file>
- <file>Graphics/route_stop.png</file>
- <file>Graphics/route_new.png</file>
- <file>Graphics/route_save.png</file>
<file>Graphics/settings.png</file>
<file>Graphics/trophy_gold.png</file>
<file>Graphics/applications_internet.png</file>
<file>Graphics/info.png</file>
<file>Graphics/speedfreak.png</file>
<file>Graphics/start.gif</file>
+ <file>Graphics/sf.png</file>
+ <file>Graphics/Speedometer_calibrate.png</file>
+ <file>Graphics/Speedometer_start.png</file>
+ <file>Graphics/route_new.png</file>
+ <file>Graphics/route_save.png</file>
+ <file>Graphics/route_start.png</file>
+ <file>Graphics/route_stop.png</file>
+ <file>Graphics/trophy_gold_refresh.png</file>
</qresource>
</RCC>
<x>0</x>
<y>0</y>
<width>800</width>
- <height>480</height>
+ <height>440</height>
</rect>
</property>
<property name="windowTitle">
//Button settings
buttonStatus = true;
pixmapRouteStop = new QPixmap("Graphics/route_stop.png");
- pixmapRoutePlay = new QPixmap("Graphics/route_play.png");
+ pixmapRouteStart = new QPixmap("Graphics/route_start.png");
iconRouteStop = new QIcon(*pixmapRouteStop);
- iconRoutePlay = new QIcon(*pixmapRoutePlay);
+ iconRouteStart = new QIcon(*pixmapRouteStart);
QSize iconSize(125, 125);
ui->buttonRouteStartStop->setIconSize(iconSize);
- ui->buttonRouteStartStop->setIcon(*iconRoutePlay);
+ ui->buttonRouteStartStop->setIcon(*iconRouteStart);
ui->buttonRouteStartStop->setAutoFillBackground(true);
ui->buttonRouteStartStop->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)");
delete gpsData;
delete routeDialog;
delete pixmapRouteStop;
- delete pixmapRoutePlay;
+ delete pixmapRouteStart;
delete iconRouteStop;
- delete iconRoutePlay;
+ delete iconRouteStart;
}
void RouteSaveDialog::changeEvent(QEvent *e)
else
{
buttonStatus = true;
- ui->buttonRouteStartStop->setIcon(*iconRoutePlay);
+ ui->buttonRouteStartStop->setIcon(*iconRouteStart);
//Satellite picture and label
ui->labelRouteSatelliteStatus->setText("Searching satellite");
RouteDialog *routeDialog;
QString gpsSpeed;
QPixmap *pixmapRouteStop;
- QPixmap *pixmapRoutePlay;
+ QPixmap *pixmapRouteStart;
QIcon *iconRouteStop;
- QIcon *iconRoutePlay;
+ QIcon *iconRouteStart;
bool buttonStatus;
private slots:
<x>0</x>
<y>0</y>
<width>800</width>
- <height>360</height>
+ <height>380</height>
</rect>
</property>
<property name="font">
<widget class="QPushButton" name="buttonRouteStartStop">
<property name="geometry">
<rect>
- <x>600</x>
+ <x>650</x>
<y>170</y>
<width>130</width>
<height>130</height>
</property>
<property name="icon">
<iconset resource="graphics.qrc">
- <normaloff>:/new/prefix1/Graphics/route_play.png</normaloff>:/new/prefix1/Graphics/route_play.png</iconset>
+ <normaloff>:/new/prefix1/Graphics/route_start.png</normaloff>:/new/prefix1/Graphics/route_start.png</iconset>
</property>
<property name="iconSize">
<size>
<set>Qt::AlignCenter</set>
</property>
</widget>
+ <widget class="QLabel" name="label">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>230</y>
+ <width>150</width>
+ <height>150</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="pixmap">
+ <pixmap resource="graphics.qrc">:/new/prefix1/Graphics/sf.png</pixmap>
+ </property>
+ </widget>
</widget>
<resources>
<include location="graphics.qrc"/>
<x>0</x>
<y>0</y>
<width>800</width>
- <height>360</height>
+ <height>380</height>
</rect>
</property>
<property name="windowTitle">
<widget class="QPushButton" name="pushButtonHelp">
<property name="geometry">
<rect>
- <x>520</x>
- <y>310</y>
+ <x>540</x>
+ <y>180</y>
<width>221</width>
<height>51</height>
</rect>
<widget class="QLabel" name="setUserLabel">
<property name="geometry">
<rect>
- <x>10</x>
- <y>190</y>
+ <x>50</x>
+ <y>210</y>
<width>371</width>
<height>31</height>
</rect>
<widget class="QPushButton" name="setUserPushButton">
<property name="geometry">
<rect>
- <x>520</x>
- <y>220</y>
+ <x>540</x>
+ <y>270</y>
<width>221</width>
<height>51</height>
</rect>
<widget class="QLabel" name="registrateLabel">
<property name="geometry">
<rect>
- <x>10</x>
+ <x>40</x>
<y>0</y>
<width>271</width>
<height>31</height>
<widget class="QPushButton" name="registratePushButton">
<property name="geometry">
<rect>
- <x>520</x>
- <y>60</y>
+ <x>540</x>
+ <y>80</y>
<width>221</width>
<height>51</height>
</rect>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
- <x>40</x>
- <y>220</y>
+ <x>100</x>
+ <y>240</y>
<width>401</width>
<height>101</height>
</rect>
<property name="font">
<font>
<family>Bitstream Charter</family>
- <pointsize>8</pointsize>
+ <pointsize>10</pointsize>
</font>
</property>
<property name="maxLength">
<property name="font">
<font>
<family>Bitstream Charter</family>
- <pointsize>8</pointsize>
+ <pointsize>10</pointsize>
</font>
</property>
<property name="maxLength">
<string/>
</property>
</widget>
- <widget class="QWidget" name="">
+ <widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
- <x>40</x>
+ <x>100</x>
<y>28</y>
<width>401</width>
<height>151</height>
<property name="font">
<font>
<family>Bitstream Charter</family>
- <pointsize>8</pointsize>
+ <pointsize>10</pointsize>
</font>
</property>
<property name="maxLength">
<property name="font">
<font>
<family>Bitstream Charter</family>
- <pointsize>8</pointsize>
+ <pointsize>10</pointsize>
</font>
</property>
<property name="maxLength">
<property name="font">
<font>
<family>Bitstream Charter</family>
- <pointsize>8</pointsize>
+ <pointsize>10</pointsize>
</font>
</property>
<property name="maxLength">
</item>
</layout>
</widget>
+ <widget class="QLabel" name="label">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>230</y>
+ <width>150</width>
+ <height>150</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="pixmap">
+ <pixmap resource="graphics.qrc">:/new/prefix1/Graphics/sf.png</pixmap>
+ </property>
+ </widget>
+ <zorder>label</zorder>
+ <zorder>pushButtonHelp</zorder>
+ <zorder>setUserLabel</zorder>
+ <zorder>setUserPushButton</zorder>
+ <zorder>registrateLabel</zorder>
+ <zorder>registratePushButton</zorder>
+ <zorder>layoutWidget</zorder>
+ <zorder>labelInfoToUser</zorder>
+ <zorder>layoutWidget</zorder>
</widget>
<tabstops>
<tabstop>regUserNameLineEdit</tabstop>
<tabstop>setUserPushButton</tabstop>
<tabstop>pushButtonHelp</tabstop>
</tabstops>
- <resources/>
+ <resources>
+ <include location="graphics.qrc"/>
+ </resources>
<connections/>
</ui>
//Set the amount of requested top results here, untill there is user input
setLimitNr(10);
+
+ //Button settings
+ ui->buttonTopRefresh->setAutoFillBackground(true);
+ ui->buttonTopRefresh->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)");
}
TopResultDialog::~TopResultDialog()
<x>0</x>
<y>0</y>
<width>800</width>
- <height>480</height>
+ <height>380</height>
</rect>
</property>
<property name="windowTitle">
<widget class="QPushButton" name="buttonTopRefresh">
<property name="geometry">
<rect>
- <x>10</x>
- <y>70</y>
- <width>221</width>
- <height>71</height>
+ <x>650</x>
+ <y>20</y>
+ <width>130</width>
+ <height>130</height>
</rect>
</property>
<property name="font">
</font>
</property>
<property name="text">
- <string>Refresh list</string>
- </property>
- </widget>
- <widget class="QListView" name="listViewTopList">
- <property name="geometry">
- <rect>
- <x>280</x>
- <y>0</y>
- <width>491</width>
- <height>251</height>
- </rect>
+ <string/>
</property>
- <property name="font">
- <font>
- <family>Bitstream Charter</family>
- <pointsize>10</pointsize>
- </font>
+ <property name="icon">
+ <iconset resource="graphics.qrc">
+ <normaloff>:/new/prefix1/Graphics/trophy_gold_refresh.png</normaloff>:/new/prefix1/Graphics/trophy_gold_refresh.png</iconset>
</property>
- <property name="flow">
- <enum>QListView::LeftToRight</enum>
+ <property name="iconSize">
+ <size>
+ <width>125</width>
+ <height>125</height>
+ </size>
</property>
</widget>
<widget class="QLabel" name="labelTopList">
<property name="geometry">
<rect>
- <x>300</x>
- <y>0</y>
- <width>451</width>
+ <x>150</x>
+ <y>70</y>
+ <width>471</width>
<height>251</height>
</rect>
</property>
<string/>
</property>
<property name="alignment">
- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
<widget class="QLabel" name="labelCategory">
<property name="geometry">
<rect>
<x>10</x>
- <y>200</y>
+ <y>0</y>
<width>221</width>
<height>51</height>
</rect>
<widget class="QComboBox" name="comboBoxTopCategory">
<property name="geometry">
<rect>
- <x>10</x>
- <y>260</y>
- <width>601</width>
+ <x>140</x>
+ <y>10</y>
+ <width>491</width>
<height>41</height>
</rect>
</property>
<widget class="QLabel" name="labelInfoToUser">
<property name="geometry">
<rect>
- <x>10</x>
+ <x>120</x>
<y>310</y>
- <width>521</width>
+ <width>671</width>
<height>51</height>
</rect>
</property>
<string/>
</property>
</widget>
+ <widget class="QLabel" name="label">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>230</y>
+ <width>150</width>
+ <height>150</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="pixmap">
+ <pixmap resource="graphics.qrc">:/new/prefix1/Graphics/sf.png</pixmap>
+ </property>
+ </widget>
+ <zorder>label</zorder>
+ <zorder>buttonTopRefresh</zorder>
+ <zorder>labelTopList</zorder>
+ <zorder>labelCategory</zorder>
+ <zorder>comboBoxTopCategory</zorder>
+ <zorder>labelInfoToUser</zorder>
</widget>
- <resources/>
+ <resources>
+ <include location="graphics.qrc"/>
+ </resources>
<connections/>
</ui>