Youtube video and text (draft).
[speedfreak] / Client / accelerationstart.cpp
index 3da0070..11dbf85 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Acceleration start dialog
+ *
+ * @author      Jukka Kurttila <jukka.kurttila@fudeco.com>
+ * @copyright   (c) 2010 Speed Freak team
+ * @license     http://opensource.org/licenses/gpl-license.php GNU Public License
+ */
 #include "accelerationstart.h"
 #include "ui_accelerationstartdialog.h"
 #include <QMessageBox>
@@ -16,6 +23,12 @@ accelerationstart::accelerationstart(QWidget *parent) :
     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()
@@ -66,10 +79,23 @@ void accelerationstart::on_buttonStart_clicked()
 void accelerationstart::on_categorComboBox_currentIndexChanged( int index )
 {
     stopMeasureSpeed = 0;
-    if( index == 1 )
+    if( index == 1 ) {
         stopMeasureSpeed = 20;
-    else if( index == 2 )
+        measureCategory = "acceleration-0-20";
+    }
+    else if( index == 2 ) {
         stopMeasureSpeed = 40;
-    else if( index == 3 )
+        measureCategory = "acceleration-0-40";
+    }
+    else if( index == 3 ) {
         stopMeasureSpeed = 100;
+        measureCategory = "acceleration-0-100";
+    }
 }
+
+
+QString accelerationstart::getMeasureCategory()
+{
+    return measureCategory;
+}
+