Commits

Pierre Surply committed bee160b

+ Settings

Comments (0)

Files changed (7)

src/calibration.cpp

   calibration.cpp
 
   Pierre Surply
-  Time-stamp: <2012-04-16 21:01:37 surply_p>
+  Time-stamp: <2012-04-18 16:24:11 surply_p>
  */
 
 #include "sensor.h"
 {
   m_run = false;
   m_sensor = sensor;
+  m_distance_parc = 1000;
 }
 
 Calibr::~Calibr()
     }
   else
     {
-      m_sensor->set_tpm((float)m_sensor->get_distance_tot()/1000.0);
+      m_sensor->set_tpm((float)m_sensor->get_distance_tot()/(float) m_distance_parc);
       m_sensor->reset();
     }
 }
 {
   return m_run;
 }
+
+void Calibr::incr_distance_parc(const int step)
+{
+  m_distance_parc += step;
+  if (m_distance_parc < DISTANCE_MIN)
+    m_distance_parc = DISTANCE_MIN;
+  else if (m_distance_parc > DISTANCE_MAX)
+  m_distance_parc = DISTANCE_MAX;
+}
+
+int Calibr::get_distance_parc() const
+{
+  return m_distance_parc;
+}

src/calibration.h

   calibration.h
 
   Pierre Surply
-  Time-stamp: <2012-04-12 22:11:41 surply_p>
+  Time-stamp: <2012-04-18 16:24:49 surply_p>
  */
 
 #ifndef CAL_H
 #define CAL_H
 
+#define DISTANCE_MIN 500
+#define DISTANCE_MAX 1500
+
 class Sensor;
 
 class Calibr
   ~Calibr();
   void set(const bool run);
   bool is_running() const;
+  void incr_distance_parc(const int step);
+  int get_distance_parc() const;
 
  private:
   bool m_run;
   Sensor* m_sensor;
+  int m_distance_parc; //m
 };
 
 #endif

src/roadmaster.cpp

   RoadMaster.cpp
 
   Pierre Surply
-  Time-stamp: <2012-04-16 21:51:58 surply_p>
+  Time-stamp: <2012-04-19 17:21:32 surply_p>
  */
 
 #include "roadmaster.h"
 
 #include <qpushbutton.h>
 #include <qlcdnumber.h>
+#include <qgroupbox.h>
+#include <qspinbox.h>
 
 RoadMaster::RoadMaster(QWidget* parent, const char* name, WFlags fl):RoadMasterBase(parent, name, fl)
 {
   m_calibr = new Calibr(m_sensor);
   m_timer_vitesse = new QTimer(this);
   m_timer = new QTimer(this);
-  //m_chrono = new QTime(0,0);
+  m_tps_part = QTime();
 
   m_timer->start(1000, TRUE);
   m_timer_vitesse->start(5000, TRUE);
 
+  m_pause_chrono = false;
+  m_distance_begin_part= 0;
+  m_distance_epr= 0;
+  m_distance_part= 0;
+  m_vitesse_part= 0;
+
   this->update();
   this->update_timer();
   this->update_vitesse();
 
+  // Buttons
   connect(SetEta, SIGNAL(clicked()), this, SLOT(run_calibr()));
   connect(IncrDist, SIGNAL(clicked()), this, SLOT(incr_distance()));
   connect(DecrDist, SIGNAL(clicked()), this, SLOT(decr_distance()));
   connect(ResetMoyen, SIGNAL(clicked()), this, SLOT(reset_vitesse()));
+  connect(ResetChrono, SIGNAL(clicked()), this, SLOT(reset_chrono()));
+  connect(PauseChrono, SIGNAL(clicked()), this, SLOT(pause_chrono()));
+  connect(IncrDistEta, SIGNAL(clicked()), this, SLOT(incr_distance_eta()));
+  connect(DecrDistEta, SIGNAL(clicked()), this, SLOT(decr_distance_eta()));
+
+  // Settings
+  connect(SetDistEpr, SIGNAL(valueChanged(int)), this, SLOT(set_distance_epr(int)));
+  connect(SetDistPart, SIGNAL(valueChanged(int)), this, SLOT(set_distance_part(int)));
+  connect(SetVitessPart, SIGNAL(valueChanged(int)), this, SLOT(set_vitesse_part(int)));
+  connect(SetTpsPartHour, SIGNAL(valueChanged(int)), this, SLOT(set_tps_part_hour(int)));
+  connect(SetTpsPartMin, SIGNAL(valueChanged(int)), this, SLOT(set_tps_part_min(int)));
+  connect(SetTpsPartSec, SIGNAL(valueChanged(int)), this, SLOT(set_tps_part_sec(int)));
+  connect(CalcDistPart, SIGNAL(pressed()), this, SLOT(calc_distance_part()));
+  connect(CalcVitessPart, SIGNAL(pressed()), this, SLOT(calc_vitesse_part()));
+  connect(CalcTpsPart, SIGNAL(pressed()), this, SLOT(calc_tps_part()));
 
-  // timer
+  // Timers
   connect(m_timer, SIGNAL(timeout()), this, SLOT(update_timer()));
   connect(m_timer_vitesse, SIGNAL(timeout()), this, SLOT(update_vitesse()));
 }
       sprintf(buf, "%d.%02d", tmp/1000, (tmp % 1000) / 10);
       DistanceTot->display(buf);
 
+      tmp = (m_distance_epr * 1000) - tmp;
+      if (tmp < 0)
+	tmp = 0;
+      sprintf(buf, "%d.%02d", tmp/1000, (tmp % 1000) / 10);
+      DistRestTot->display(buf);
+
+      tmp = m_distance_begin_part + (m_distance_part* 1000) - m_sensor->get_distance_tot();
+      if (tmp < 0)
+	tmp = 0;
+      sprintf(buf, "%d.%02d", tmp/1000, (tmp % 1000) / 10);
+      DistRestPart->display(buf);
+
       // Distance Part
       tmp = m_sensor->get_distance_part();
       sprintf(buf, "%d.%02d", tmp/1000, (tmp % 1000) / 10);
 
 void RoadMaster::update_timer()
 {
-  Chrono->display(m_chrono.toString());
-  m_chrono = m_chrono.addSecs(1);
+  if (!m_pause_chrono)
+    {
+      Chrono->display(m_chrono.toString());
+      Minuterie->display((QTime().addSecs(m_chrono.secsTo(m_tps_part))).toString());
+      m_chrono = m_chrono.addSecs(1);
+    }
   m_timer->start(1000, TRUE);
 }
 
 void RoadMaster::incr_distance()
 {
   m_sensor->add_distance(10);
+  this->update();
 }
 
 void RoadMaster::decr_distance()
 {
   m_sensor->add_distance(-10);
+  this->update();
 }
 
 void RoadMaster::reset_vitesse()
   m_sensor->reset_vitesse_moy();
   this->update_vitesse();
 }
+
+void RoadMaster::reset_chrono()
+{
+  m_chrono = QTime(0,0,0);
+  Chrono->display(m_chrono.toString());
+  Minuterie->display(m_tps_part.toString());
+}
+
+void RoadMaster::pause_chrono()
+{
+  m_pause_chrono = !m_pause_chrono;
+}
+
+void RoadMaster::incr_distance_eta()
+{
+  this->set_distance_eta(10);
+}
+
+void RoadMaster::decr_distance_eta()
+{
+  this->set_distance_eta(-10);
+}
+
+void RoadMaster::set_distance_eta(const int step)
+{
+  char buf[256];
+  int tmp;
+
+  m_calibr->incr_distance_parc(step);
+  
+  tmp = m_calibr->get_distance_parc();
+  sprintf(buf, "Etalonnage sur %d.%02d km/h", tmp/1000, (tmp % 1000) / 10);
+  Etalonnage->setTitle(buf);
+}
+
+void RoadMaster::set_distance_epr(int dist)
+{
+  m_distance_epr = dist;
+  SetDistEpr->setValue(m_distance_epr);
+}
+
+void RoadMaster::set_distance_part(int dist)
+{
+  m_distance_part = dist;
+  SetDistPart->setValue(m_distance_part);
+}
+
+void RoadMaster::set_vitesse_part(int vit)
+{
+  m_vitesse_part = vit;
+  SetVitessPart->setValue(m_vitesse_part);
+  ObjVitessMoy->display(m_vitesse_part);
+}
+
+void RoadMaster::set_tps_part_hour(int hour)
+{
+  m_tps_part = QTime(hour, 
+		     m_tps_part.minute(),
+		     m_tps_part.second());
+  SetTpsPartHour->setValue(hour);
+}
+
+void RoadMaster::set_tps_part_min(int min)
+{
+  m_tps_part = QTime(m_tps_part.hour(), 
+		     min,
+		     m_tps_part.second());
+  SetTpsPartMin->setValue(min);
+}
+
+void RoadMaster::set_tps_part_sec(int sec)
+{
+  m_tps_part = QTime(m_tps_part.hour(), 
+		     m_tps_part.minute(),
+		     sec);
+  SetTpsPartSec->setValue(sec);
+}
+
+void RoadMaster::calc_distance_part()
+{
+  this->set_distance_part((m_vitesse_part)*
+			  (m_tps_part.hour()*3600 +
+			   m_tps_part.minute()*60 +
+			   m_tps_part.second())/3600);
+}
+
+void RoadMaster::calc_vitesse_part()
+{
+  this->set_vitesse_part(m_distance_part /
+			 (float)((m_tps_part.hour()*3600 +
+				  m_tps_part.minute()*60 +
+				  m_tps_part.second())/3600.0));
+}
+
+void RoadMaster::calc_tps_part()
+{
+  int tps = (int)((float)((float)m_distance_part / (float)m_vitesse_part) * 3600.0);
+  int h = tps / 3600;
+  int m = (tps % 3600) / 60;
+  int s = tps % 60;
+  
+  this->set_tps_part_hour(h);
+  this->set_tps_part_min(m);
+  this->set_tps_part_sec(s);
+}
+
+void RoadMaster::begin_partiel()
+{
+  m_distance_begin_part = m_sensor->get_distance_tot();
+}
   RoadMaster.h
 
   Pierre Surply
-  Time-stamp: <2012-04-16 21:51:52 surply_p>
+  Time-stamp: <2012-04-18 22:38:55 surply_p>
 */
 #ifndef ROADMASTER_H
 #define ROADMASTER_H
   RoadMaster(QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
   ~RoadMaster();
   void update();
+  void begin_partiel();
   
  public slots:
-  void run_calibr();
+  // home
   void update_vitesse();
   void update_timer();
   void incr_distance();
   void decr_distance();
   void reset_vitesse();
+  void reset_chrono();
+  void pause_chrono();
+
+  // Calibration
+  void run_calibr();
+  void incr_distance_eta();
+  void decr_distance_eta();
+  
+  // Settings
+  void set_distance_epr(int dist);
+  void set_distance_part(int dist);
+  void set_vitesse_part(int vit);
+  void set_tps_part_hour(int hour);
+  void set_tps_part_min(int min);
+  void set_tps_part_sec(int sec);
+  void calc_distance_part();
+  void calc_vitesse_part();
+  void calc_tps_part();
 
  private:
+  void set_distance_eta(const int step);
+  
+  Sensor* m_sensor;
+  Calibr* m_calibr;
+
   QTimer* m_timer;
   QTimer* m_timer_vitesse;
+
+  // Chrono
   QTime m_chrono;
-  Sensor* m_sensor;
-  Calibr* m_calibr;
+  bool m_pause_chrono;
+
+  // Settings
+  int m_distance_epr; //km
+  int m_distance_part;
+  int m_vitesse_part;
+  QTime m_tps_part;
+
+  // Epreuve Partiel
+  int m_distance_begin_part;
 };
 
 #endif

src/roadmaster_base.ui

         <rect>
             <x>0</x>
             <y>0</y>
-            <width>240</width>
-            <height>322</height>
+            <width>397</width>
+            <height>428</height>
         </rect>
     </property>
     <property stdset="1">
     </property>
     <property stdset="1">
         <name>caption</name>
-        <string>RoadMaster</string>
+        <string>RoadMaster - Pierre Surply</string>
     </property>
     <widget>
         <class>QLabel</class>
                     <class>QPushButton</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>IncrDist</cstring>
+                        <cstring>DecrDist</cstring>
                     </property>
                     <property stdset="1">
                         <name>geometry</name>
                         <rect>
-                            <x>145</x>
+                            <x>190</x>
                             <y>50</y>
                             <width>45</width>
                             <height>45</height>
                     <property stdset="1">
                         <name>font</name>
                         <font>
+                            <family>Helvetica</family>
                             <pointsize>12</pointsize>
                             <bold>1</bold>
                         </font>
                     </property>
                     <property stdset="1">
                         <name>text</name>
-                        <string>+</string>
+                        <string>-</string>
                     </property>
                 </widget>
                 <widget>
-                    <class>QPushButton</class>
+                    <class>QLCDNumber</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>DecrDist</cstring>
+                        <cstring>DistanceTot</cstring>
                     </property>
                     <property stdset="1">
                         <name>geometry</name>
                         <rect>
-                            <x>190</x>
-                            <y>50</y>
-                            <width>45</width>
-                            <height>45</height>
+                            <x>5</x>
+                            <y>15</y>
+                            <width>135</width>
+                            <height>55</height>
                         </rect>
                     </property>
                     <property stdset="1">
                                     <blue>0</blue>
                                 </color>
                                 <color>
-                                    <red>85</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
+                                    <red>192</red>
+                                    <green>192</green>
+                                    <blue>192</blue>
                                 </color>
                                 <color>
-                                    <red>212</red>
+                                    <red>255</red>
                                     <green>255</green>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>148</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
+                                    <red>223</red>
+                                    <green>223</green>
+                                    <blue>223</blue>
                                 </color>
                                 <color>
-                                    <red>42</red>
-                                    <green>127</green>
-                                    <blue>127</blue>
+                                    <red>96</red>
+                                    <green>96</green>
+                                    <blue>96</blue>
                                 </color>
                                 <color>
-                                    <red>57</red>
-                                    <green>170</green>
-                                    <blue>170</blue>
+                                    <red>128</red>
+                                    <green>128</green>
+                                    <blue>128</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
+                                    <red>212</red>
+                                    <green>212</green>
+                                    <blue>212</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>128</blue>
                                 </color>
                                 <color>
-                                    <red>85</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
+                                    <red>192</red>
+                                    <green>192</green>
+                                    <blue>192</blue>
                                 </color>
                                 <color>
-                                    <red>212</red>
+                                    <red>255</red>
                                     <green>255</green>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>123</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
+                                    <red>220</red>
+                                    <green>220</green>
+                                    <blue>220</blue>
                                 </color>
                                 <color>
-                                    <red>42</red>
-                                    <green>127</green>
-                                    <blue>127</blue>
+                                    <red>96</red>
+                                    <green>96</green>
+                                    <blue>96</blue>
                                 </color>
                                 <color>
-                                    <red>57</red>
-                                    <green>170</green>
-                                    <blue>170</blue>
+                                    <red>128</red>
+                                    <green>128</green>
+                                    <blue>128</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
+                                    <red>212</red>
+                                    <green>212</green>
+                                    <blue>212</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>0</blue>
                                 </color>
                                 <color>
-                                    <red>85</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
+                                    <red>192</red>
+                                    <green>192</green>
+                                    <blue>192</blue>
                                 </color>
                                 <color>
-                                    <red>212</red>
+                                    <red>255</red>
                                     <green>255</green>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>123</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
+                                    <red>220</red>
+                                    <green>220</green>
+                                    <blue>220</blue>
                                 </color>
                                 <color>
-                                    <red>42</red>
-                                    <green>127</green>
-                                    <blue>127</blue>
+                                    <red>96</red>
+                                    <green>96</green>
+                                    <blue>96</blue>
                                 </color>
                                 <color>
-                                    <red>57</red>
-                                    <green>170</green>
-                                    <blue>170</blue>
+                                    <red>128</red>
+                                    <green>128</green>
+                                    <blue>128</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
+                                    <red>212</red>
+                                    <green>212</green>
+                                    <blue>212</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                         <name>font</name>
                         <font>
                             <family>Helvetica</family>
-                            <pointsize>12</pointsize>
+                            <pointsize>11</pointsize>
                             <bold>1</bold>
                         </font>
                     </property>
                     <property stdset="1">
-                        <name>text</name>
-                        <string>-</string>
+                        <name>smallDecimalPoint</name>
+                        <bool>true</bool>
+                    </property>
+                    <property stdset="1">
+                        <name>numDigits</name>
+                        <number>5</number>
+                    </property>
+                    <property stdset="1">
+                        <name>segmentStyle</name>
+                        <enum>Flat</enum>
                     </property>
                 </widget>
                 <widget>
                     <class>QLCDNumber</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>DistanceTot</cstring>
+                        <cstring>DistancePart</cstring>
                     </property>
                     <property stdset="1">
                         <name>geometry</name>
                         <rect>
-                            <x>5</x>
+                            <x>145</x>
                             <y>15</y>
-                            <width>135</width>
-                            <height>55</height>
+                            <width>85</width>
+                            <height>35</height>
                         </rect>
                     </property>
                     <property stdset="1">
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>212</red>
-                                    <green>212</green>
-                                    <blue>212</blue>
+                                    <red>220</red>
+                                    <green>220</green>
+                                    <blue>220</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>212</red>
-                                    <green>212</green>
-                                    <blue>212</blue>
+                                    <red>220</red>
+                                    <green>220</green>
+                                    <blue>220</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>212</red>
-                                    <green>212</green>
-                                    <blue>212</blue>
+                                    <red>220</red>
+                                    <green>220</green>
+                                    <blue>220</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                         </palette>
                     </property>
                     <property stdset="1">
-                        <name>font</name>
-                        <font>
-                            <family>Helvetica</family>
-                            <pointsize>11</pointsize>
-                            <bold>1</bold>
-                        </font>
-                    </property>
-                    <property stdset="1">
-                        <name>smallDecimalPoint</name>
-                        <bool>true</bool>
-                    </property>
-                    <property stdset="1">
                         <name>numDigits</name>
                         <number>5</number>
                     </property>
                     </property>
                 </widget>
                 <widget>
-                    <class>QLCDNumber</class>
+                    <class>QPushButton</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>DistancePart</cstring>
+                        <cstring>IncrDist</cstring>
                     </property>
                     <property stdset="1">
                         <name>geometry</name>
                         <rect>
                             <x>145</x>
-                            <y>15</y>
-                            <width>85</width>
-                            <height>35</height>
+                            <y>50</y>
+                            <width>45</width>
+                            <height>45</height>
                         </rect>
                     </property>
                     <property stdset="1">
                                     <blue>0</blue>
                                 </color>
                                 <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
+                                    <red>85</red>
+                                    <green>255</green>
+                                    <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>255</red>
+                                    <red>212</red>
                                     <green>255</green>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>223</red>
-                                    <green>223</green>
-                                    <blue>223</blue>
+                                    <red>148</red>
+                                    <green>255</green>
+                                    <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>96</red>
-                                    <green>96</green>
-                                    <blue>96</blue>
+                                    <red>42</red>
+                                    <green>127</green>
+                                    <blue>127</blue>
                                 </color>
                                 <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
+                                    <red>57</red>
+                                    <green>170</green>
+                                    <blue>170</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>220</red>
-                                    <green>220</green>
-                                    <blue>220</blue>
+                                    <red>192</red>
+                                    <green>192</green>
+                                    <blue>192</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>128</blue>
                                 </color>
                                 <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
+                                    <red>85</red>
+                                    <green>255</green>
+                                    <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>255</red>
+                                    <red>212</red>
                                     <green>255</green>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>220</red>
-                                    <green>220</green>
-                                    <blue>220</blue>
+                                    <red>123</red>
+                                    <green>255</green>
+                                    <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>96</red>
-                                    <green>96</green>
-                                    <blue>96</blue>
+                                    <red>42</red>
+                                    <green>127</green>
+                                    <blue>127</blue>
                                 </color>
                                 <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
+                                    <red>57</red>
+                                    <green>170</green>
+                                    <blue>170</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>220</red>
-                                    <green>220</green>
-                                    <blue>220</blue>
+                                    <red>192</red>
+                                    <green>192</green>
+                                    <blue>192</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>0</blue>
                                 </color>
                                 <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
+                                    <red>85</red>
+                                    <green>255</green>
+                                    <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>255</red>
+                                    <red>212</red>
                                     <green>255</green>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>220</red>
-                                    <green>220</green>
-                                    <blue>220</blue>
+                                    <red>123</red>
+                                    <green>255</green>
+                                    <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>96</red>
-                                    <green>96</green>
-                                    <blue>96</blue>
+                                    <red>42</red>
+                                    <green>127</green>
+                                    <blue>127</blue>
                                 </color>
                                 <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
+                                    <red>57</red>
+                                    <green>170</green>
+                                    <blue>170</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>220</red>
-                                    <green>220</green>
-                                    <blue>220</blue>
+                                    <red>192</red>
+                                    <green>192</green>
+                                    <blue>192</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                         </palette>
                     </property>
                     <property stdset="1">
-                        <name>numDigits</name>
-                        <number>5</number>
+                        <name>font</name>
+                        <font>
+                            <pointsize>12</pointsize>
+                            <bold>1</bold>
+                        </font>
                     </property>
                     <property stdset="1">
-                        <name>segmentStyle</name>
-                        <enum>Flat</enum>
+                        <name>text</name>
+                        <string>+</string>
                     </property>
                 </widget>
                 <widget>
                     <class>QLCDNumber</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>resteaparcourirspeciale</cstring>
+                        <cstring>DistRestTot</cstring>
                     </property>
                     <property stdset="1">
                         <name>enabled</name>
                     <property stdset="1">
                         <name>geometry</name>
                         <rect>
-                            <x>80</x>
+                            <x>5</x>
                             <y>70</y>
-                            <width>60</width>
+                            <width>75</width>
                             <height>25</height>
                         </rect>
                     </property>
                     </property>
                     <property stdset="1">
                         <name>numDigits</name>
-                        <number>5</number>
+                        <number>6</number>
                     </property>
                     <property stdset="1">
                         <name>segmentStyle</name>
                     <class>QLCDNumber</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>resteaparcourir</cstring>
+                        <cstring>DistRestPart</cstring>
                     </property>
                     <property stdset="1">
                         <name>enabled</name>
                     <property stdset="1">
                         <name>geometry</name>
                         <rect>
-                            <x>5</x>
+                            <x>80</x>
                             <y>70</y>
-                            <width>75</width>
+                            <width>60</width>
                             <height>25</height>
                         </rect>
                     </property>
                     </property>
                     <property stdset="1">
                         <name>numDigits</name>
-                        <number>6</number>
+                        <number>5</number>
                     </property>
                     <property stdset="1">
                         <name>segmentStyle</name>
                     <class>QLCDNumber</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>moyobjectifspeciale</cstring>
+                        <cstring>VitesseMoy</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>geometry</name>
+                        <rect>
+                            <x>145</x>
+                            <y>20</y>
+                            <width>85</width>
+                            <height>30</height>
+                        </rect>
+                    </property>
+                    <property stdset="1">
+                        <name>numDigits</name>
+                        <number>5</number>
+                    </property>
+                    <property stdset="1">
+                        <name>segmentStyle</name>
+                        <enum>Flat</enum>
+                    </property>
+                </widget>
+                <widget>
+                    <class>QLCDNumber</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>ObjVitessMoy</cstring>
                     </property>
                     <property stdset="1">
                         <name>enabled</name>
                         <enum>Flat</enum>
                     </property>
                 </widget>
-                <widget>
-                    <class>QLCDNumber</class>
-                    <property stdset="1">
-                        <name>name</name>
-                        <cstring>VitesseMoy</cstring>
-                    </property>
-                    <property stdset="1">
-                        <name>geometry</name>
-                        <rect>
-                            <x>145</x>
-                            <y>20</y>
-                            <width>85</width>
-                            <height>30</height>
-                        </rect>
-                    </property>
-                    <property stdset="1">
-                        <name>numDigits</name>
-                        <number>5</number>
-                    </property>
-                    <property stdset="1">
-                        <name>segmentStyle</name>
-                        <enum>Flat</enum>
-                    </property>
-                </widget>
             </widget>
             <widget>
                 <class>QGroupBox</class>
                     <string>Temps</string>
                 </property>
                 <widget>
-                    <class>QLCDNumber</class>
+                    <class>QPushButton</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>Chrono</cstring>
+                        <cstring>ResetChrono</cstring>
                     </property>
                     <property stdset="1">
                         <name>geometry</name>
                         <rect>
-                            <x>5</x>
-                            <y>15</y>
-                            <width>125</width>
-                            <height>45</height>
+                            <x>150</x>
+                            <y>35</y>
+                            <width>30</width>
+                            <height>30</height>
                         </rect>
                     </property>
                     <property stdset="1">
                                     <blue>0</blue>
                                 </color>
                                 <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
+                                    <red>255</red>
+                                    <green>0</green>
+                                    <blue>0</blue>
                                 </color>
                                 <color>
                                     <red>255</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
+                                    <green>127</green>
+                                    <blue>127</blue>
                                 </color>
                                 <color>
-                                    <red>223</red>
-                                    <green>223</green>
-                                    <blue>223</blue>
+                                    <red>255</red>
+                                    <green>63</green>
+                                    <blue>63</blue>
                                 </color>
                                 <color>
-                                    <red>96</red>
-                                    <green>96</green>
-                                    <blue>96</blue>
+                                    <red>127</red>
+                                    <green>0</green>
+                                    <blue>0</blue>
                                 </color>
                                 <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
+                                    <red>170</red>
+                                    <green>0</green>
+                                    <blue>0</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>220</red>
-                                    <green>220</green>
-                                    <blue>220</blue>
+                                    <red>192</red>
+                                    <green>192</green>
+                                    <blue>192</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>128</blue>
                                 </color>
                                 <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
+                                    <red>255</red>
+                                    <green>0</green>
+                                    <blue>0</blue>
                                 </color>
                                 <color>
                                     <red>255</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
+                                    <green>127</green>
+                                    <blue>127</blue>
                                 </color>
                                 <color>
-                                    <red>220</red>
-                                    <green>220</green>
-                                    <blue>220</blue>
+                                    <red>255</red>
+                                    <green>38</green>
+                                    <blue>38</blue>
                                 </color>
                                 <color>
-                                    <red>96</red>
-                                    <green>96</green>
-                                    <blue>96</blue>
+                                    <red>127</red>
+                                    <green>0</green>
+                                    <blue>0</blue>
                                 </color>
                                 <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
+                                    <red>170</red>
+                                    <green>0</green>
+                                    <blue>0</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>220</red>
-                                    <green>220</green>
-                                    <blue>220</blue>
+                                    <red>192</red>
+                                    <green>192</green>
+                                    <blue>192</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>0</blue>
                                 </color>
                                 <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
+                                    <red>255</red>
+                                    <green>0</green>
+                                    <blue>0</blue>
                                 </color>
                                 <color>
                                     <red>255</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
+                                    <green>127</green>
+                                    <blue>127</blue>
                                 </color>
                                 <color>
-                                    <red>220</red>
-                                    <green>220</green>
-                                    <blue>220</blue>
+                                    <red>255</red>
+                                    <green>38</green>
+                                    <blue>38</blue>
                                 </color>
                                 <color>
-                                    <red>96</red>
-                                    <green>96</green>
-                                    <blue>96</blue>
+                                    <red>127</red>
+                                    <green>0</green>
+                                    <blue>0</blue>
                                 </color>
                                 <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
+                                    <red>170</red>
+                                    <green>0</green>
+                                    <blue>0</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>220</red>
-                                    <green>220</green>
-                                    <blue>220</blue>
+                                    <red>192</red>
+                                    <green>192</green>
+                                    <blue>192</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                         </palette>
                     </property>
                     <property stdset="1">
-                        <name>numDigits</name>
-                        <number>8</number>
-                    </property>
-                    <property stdset="1">
-                        <name>segmentStyle</name>
-                        <enum>Flat</enum>
+                        <name>text</name>
+                        <string>rst</string>
                     </property>
                 </widget>
                 <widget>
-                    <class>QPushButton</class>
+                    <class>QLCDNumber</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>resetchrono</cstring>
+                        <cstring>Chrono</cstring>
                     </property>
                     <property stdset="1">
                         <name>geometry</name>
                         <rect>
-                            <x>150</x>
-                            <y>35</y>
-                            <width>30</width>
-                            <height>30</height>
+                            <x>5</x>
+                            <y>15</y>
+                            <width>125</width>
+                            <height>45</height>
                         </rect>
                     </property>
                     <property stdset="1">
                                     <blue>0</blue>
                                 </color>
                                 <color>
-                                    <red>255</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
+                                    <red>192</red>
+                                    <green>192</green>
+                                    <blue>192</blue>
                                 </color>
                                 <color>
                                     <red>255</red>
-                                    <green>127</green>
-                                    <blue>127</blue>
+                                    <green>255</green>
+                                    <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>255</red>
-                                    <green>63</green>
-                                    <blue>63</blue>
+                                    <red>223</red>
+                                    <green>223</green>
+                                    <blue>223</blue>
                                 </color>
                                 <color>
-                                    <red>127</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
+                                    <red>96</red>
+                                    <green>96</green>
+                                    <blue>96</blue>
                                 </color>
                                 <color>
-                                    <red>170</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
+                                    <red>128</red>
+                                    <green>128</green>
+                                    <blue>128</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
+                                    <red>220</red>
+                                    <green>220</green>
+                                    <blue>220</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>128</blue>
                                 </color>
                                 <color>
-                                    <red>255</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
+                                    <red>192</red>
+                                    <green>192</green>
+                                    <blue>192</blue>
                                 </color>
                                 <color>
                                     <red>255</red>
-                                    <green>127</green>
-                                    <blue>127</blue>
+                                    <green>255</green>
+                                    <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>255</red>
-                                    <green>38</green>
-                                    <blue>38</blue>
+                                    <red>220</red>
+                                    <green>220</green>
+                                    <blue>220</blue>
                                 </color>
                                 <color>
-                                    <red>127</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
+                                    <red>96</red>
+                                    <green>96</green>
+                                    <blue>96</blue>
                                 </color>
                                 <color>
-                                    <red>170</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
+                                    <red>128</red>
+                                    <green>128</green>
+                                    <blue>128</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
+                                    <red>220</red>
+                                    <green>220</green>
+                                    <blue>220</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>0</blue>
                                 </color>
                                 <color>
-                                    <red>255</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
+                                    <red>192</red>
+                                    <green>192</green>
+                                    <blue>192</blue>
                                 </color>
                                 <color>
                                     <red>255</red>
-                                    <green>127</green>
-                                    <blue>127</blue>
+                                    <green>255</green>
+                                    <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>255</red>
-                                    <green>38</green>
-                                    <blue>38</blue>
+                                    <red>220</red>
+                                    <green>220</green>
+                                    <blue>220</blue>
                                 </color>
                                 <color>
-                                    <red>127</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
+                                    <red>96</red>
+                                    <green>96</green>
+                                    <blue>96</blue>
                                 </color>
                                 <color>
-                                    <red>170</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
+                                    <red>128</red>
+                                    <green>128</green>
+                                    <blue>128</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                                     <blue>255</blue>
                                 </color>
                                 <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
+                                    <red>220</red>
+                                    <green>220</green>
+                                    <blue>220</blue>
                                 </color>
                                 <color>
                                     <red>0</red>
                         </palette>
                     </property>
                     <property stdset="1">
-                        <name>text</name>
-                        <string>rst</string>
+                        <name>numDigits</name>
+                        <number>8</number>
+                    </property>
+                    <property stdset="1">
+                        <name>segmentStyle</name>
+                        <enum>Flat</enum>
                     </property>
                 </widget>
                 <widget>
                     <class>QPushButton</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>pausechronotimer</cstring>
+                        <cstring>PauseChrono</cstring>
                     </property>
                     <property stdset="1">
                         <name>geometry</name>
                     <class>QPushButton</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>plus10parkilo</cstring>
+                        <cstring>IncrDistEta</cstring>
                     </property>
                     <property stdset="1">
                         <name>geometry</name>
                     <class>QPushButton</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>moins10parkilo</cstring>
+                        <cstring>DecrDistEta</cstring>
                     </property>
                     <property stdset="1">
                         <name>geometry</name>
                 <class>QGroupBox</class>
                 <property stdset="1">
                     <name>name</name>
-                    <cstring>Etalonnage_sur_1_Km</cstring>
+                    <cstring>Etalonnage</cstring>
                 </property>
                 <property stdset="1">
                     <name>geometry</name>
                 </property>
                 <property stdset="1">
                     <name>title</name>
-                    <string>Etalonnage sur 1 Km</string>
+                    <string>Etalonnage sur 1.00 Km</string>
                 </property>
                 <widget>
                     <class>QPushButton</class>
                 <class>QGroupBox</class>
                 <property stdset="1">
                     <name>name</name>
-                    <cstring>GroupBox9</cstring>
+                    <cstring>GroupBox11</cstring>
                 </property>
                 <property stdset="1">
                     <name>geometry</name>
                     <rect>
-                        <x>5</x>
-                        <y>55</y>
-                        <width>225</width>
-                        <height>50</height>
+                        <x>0</x>
+                        <y>10</y>
+                        <width>240</width>
+                        <height>70</height>
                     </rect>
                 </property>
                 <property stdset="1">
                     <name>title</name>
-                    <string>Distance a parcourir TOTALE</string>
+                    <string>Epreuve</string>
                 </property>
                 <widget>
-                    <class>QLineEdit</class>
+                    <class>QLabel</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>LineEdit1_2</cstring>
+                        <cstring>TextLabel1</cstring>
                     </property>
                     <property stdset="1">
                         <name>geometry</name>
                         <rect>
-                            <x>30</x>
-                            <y>20</y>
-                            <width>175</width>
-                            <height>25</height>
+                            <x>8</x>
+                            <y>18</y>
+                            <width>91</width>
+                            <height>31</height>
                         </rect>
                     </property>
                     <property stdset="1">
                         <name>text</name>
-                        <string></string>
+                        <string>Distance (km)</string>
                     </property>
                 </widget>
-            </widget>
-            <widget>
-                <class>QGroupBox</class>
-                <property stdset="1">
-                    <name>name</name>
-                    <cstring>GroupBox6</cstring>
-                </property>
-                <property stdset="1">
-                    <name>geometry</name>
-                    <rect>
-                        <x>5</x>
-                        <y>5</y>
-                        <width>225</width>
-                        <height>50</height>
-                    </rect>
-                </property>
-                <property stdset="1">
-                    <name>title</name>
-                    <string>Distance totale parcourue</string>
-                </property>
                 <widget>
-                    <class>QLineEdit</class>
+                    <class>QSpinBox</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>LineEdit1</cstring>
+                        <cstring>SetDistEpr</cstring>
                     </property>
                     <property stdset="1">
                         <name>geometry</name>
                         <rect>
-                            <x>30</x>
+                            <x>110</x>
                             <y>20</y>
-                            <width>175</width>
-                            <height>25</height>
+                            <width>110</width>
+                            <height>30</height>
                         </rect>
                     </property>
                     <property stdset="1">
-                        <name>text</name>
-                        <string></string>
+                        <name>maxValue</name>
+                        <number>999999</number>
+                    </property>
+                    <property stdset="1">
+                        <name>lineStep</name>
+                        <number>10</number>
                     </property>
                 </widget>
             </widget>
                 <class>QGroupBox</class>
                 <property stdset="1">
                     <name>name</name>
-                    <cstring>GroupBox9_2</cstring>
+                    <cstring>GroupBox12</cstring>
                 </property>
                 <property stdset="1">
                     <name>geometry</name>
                     <rect>
-                        <x>5</x>
-                        <y>110</y>
-                        <width>225</width>
-                        <height>50</height>
+                        <x>0</x>
+                        <y>80</y>
+                        <width>240</width>
+                        <height>180</height>
                     </rect>
                 </property>
                 <property stdset="1">
                     <name>title</name>
-                    <string>Distance a parcourir PARTIELLE</string>
+                    <string>Zone de régularité</string>
                 </property>
                 <widget>
-                    <class>QLineEdit</class>
+                    <class>QSpinBox</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>SetVitessPart</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>geometry</name>
+                        <rect>
+                            <x>110</x>
+                            <y>60</y>
+                            <width>110</width>
+                            <height>30</height>
+                        </rect>
+                    </property>
+                    <property stdset="1">
+                        <name>maxValue</name>
+                        <number>999999</number>
+                    </property>
+                    <property stdset="1">
+                        <name>lineStep</name>
+                        <number>10</number>
+                    </property>
+                </widget>
+                <widget>
+                    <class>QSpinBox</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>LineEdit1_2_2</cstring>
+                        <cstring>SetDistPart</cstring>
                     </property>
                     <property stdset="1">
                         <name>geometry</name>
                         <rect>
-                            <x>30</x>
+                            <x>110</x>
                             <y>20</y>
-                            <width>90</width>
-                            <height>25</height>
+                            <width>110</width>
+                            <height>30</height>
+                        </rect>
+                    </property>
+                    <property stdset="1">
+                        <name>maxValue</name>
+                        <number>999999</number>
+                    </property>
+                    <property stdset="1">
+                        <name>lineStep</name>
+                        <number>10</number>
+                    </property>
+                </widget>
+                <widget>
+                    <class>QPushButton</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>CalcDistPart</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>geometry</name>
+                        <rect>
+                            <x>5</x>
+                            <y>20</y>
+                            <width>105</width>
+                            <height>30</height>
                         </rect>
                     </property>
                     <property stdset="1">
                         <name>text</name>
-                        <string></string>
+                        <string>Distance (km)</string>
+                    </property>
+                    <property stdset="1">
+                        <name>flat</name>
+                        <bool>true</bool>
                     </property>
                 </widget>
                 <widget>
-                    <class>QLCDNumber</class>
+                    <class>QPushButton</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>distaparccalcul</cstring>
+                        <cstring>CalcVitessPart</cstring>
                     </property>
                     <property stdset="1">
-                        <name>enabled</name>
+                        <name>geometry</name>
+                        <rect>
+                            <x>5</x>
+                            <y>60</y>
+                            <width>105</width>
+                            <height>30</height>
+                        </rect>
+                    </property>
+                    <property stdset="1">
+                        <name>text</name>
+                        <string>Vitesse (km/h)</string>
+                    </property>
+                    <property stdset="1">
+                        <name>flat</name>
                         <bool>true</bool>
                     </property>
+                </widget>
+                <widget>
+                    <class>QFrame</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>Frame3</cstring>
+                    </property>
                     <property stdset="1">
                         <name>geometry</name>
                         <rect>
-                            <x>133</x>
-                            <y>23</y>
-                            <width>76</width>
-                            <height>21</height>
+                            <x>10</x>
+                            <y>101</y>
+                            <width>211</width>
+                            <height>70</height>
                         </rect>
                     </property>
                     <property stdset="1">
-                        <name>palette</name>
-                        <palette>
-                            <active>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
-                                </color>
-                                <color>
-                                    <red>236</red>
-                                    <green>236</green>
-                                    <blue>236</blue>
-                                </color>
-                                <color>
-                                    <red>223</red>
-                                    <green>223</green>
-                                    <blue>223</blue>
-                                </color>
-                                <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
-                                </color>
-                                <color>
-                                    <red>160</red>
-                                    <green>160</green>
-                                    <blue>164</blue>
-                                </color>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>255</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
-                                </color>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>255</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
-                                </color>
-                                <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
-                                </color>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>255</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
-                                </color>
-                            </active>
-                            <disabled>
-                                <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
-                                </color>
-                                <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
-                                </color>
-                                <color>
-                                    <red>236</red>
-                                    <green>236</green>
-                                    <blue>236</blue>
-                                </color>
-                                <color>
-                                    <red>223</red>
-                                    <green>223</green>
-                                    <blue>223</blue>
-                                </color>
-                                <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
-                                </color>
-                                <color>
-                                    <red>160</red>
-                                    <green>160</green>
-                                    <blue>164</blue>
-                                </color>
-                                <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
-                                </color>
-                                <color>
-                                    <red>255</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
-                                </color>
-                                <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
-                                </color>
-                                <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
-                                </color>
-                                <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
-                                </color>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
-                                </color>
-                                <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
-                                </color>
-                            </disabled>
-                            <inactive>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
-                                </color>
-                                <color>
-                                    <red>236</red>
-                                    <green>236</green>
-                                    <blue>236</blue>
-                                </color>
-                                <color>
-                                    <red>223</red>
-                                    <green>223</green>
-                                    <blue>223</blue>
-                                </color>
-                                <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
-                                </color>
-                                <color>
-                                    <red>160</red>
-                                    <green>160</green>
-                                    <blue>164</blue>
-                                </color>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>255</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
-                                </color>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>255</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
-                                </color>
-                                <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
-                                </color>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>255</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
-                                </color>
-                            </inactive>
-                        </palette>
-                    </property>
-                    <property stdset="1">
-                        <name>numDigits</name>
-                        <number>5</number>
-                    </property>
-                </widget>
-            </widget>
-            <widget>
-                <class>QGroupBox</class>
-                <property stdset="1">
-                    <name>name</name>
-                    <cstring>GroupBox13</cstring>
-                </property>
-                <property stdset="1">
-                    <name>geometry</name>
-                    <rect>
-                        <x>0</x>
-                        <y>210</y>
-                        <width>231</width>
-                        <height>50</height>
-                    </rect>
-                </property>
-                <property stdset="1">
-                    <name>title</name>
-                    <string>Tempts partiel</string>
-                </property>
-                <widget>
-                    <class>QLineEdit</class>
-                    <property stdset="1">
-                        <name>name</name>
-                        <cstring>LineEdit1_5_2</cstring>
-                    </property>
-                    <property stdset="1">
-                        <name>geometry</name>
-                        <rect>
-                            <x>5</x>
-                            <y>20</y>
-                            <width>90</width>
-                            <height>25</height>
-                        </rect>
-                    </property>
-                    <property stdset="1">
-                        <name>text</name>
-                        <string></string>
-                    </property>
-                </widget>
-                <widget>
-                    <class>QLCDNumber</class>
-                    <property stdset="1">
-                        <name>name</name>
-                        <cstring>tpsparccalcul</cstring>
-                    </property>
-                    <property stdset="1">
-                        <name>enabled</name>
-                        <bool>true</bool>
-                    </property>
-                    <property stdset="1">
-                        <name>geometry</name>
-                        <rect>
-                            <x>100</x>
-                            <y>25</y>
-                            <width>76</width>
-                            <height>21</height>
-                        </rect>
-                    </property>
-                    <property stdset="1">
-                        <name>palette</name>
-                        <palette>
-                            <active>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
-                                </color>
-                                <color>
-                                    <red>236</red>
-                                    <green>236</green>
-                                    <blue>236</blue>
-                                </color>
-                                <color>
-                                    <red>223</red>
-                                    <green>223</green>
-                                    <blue>223</blue>
-                                </color>
-                                <color>
-                                    <red>128</red>
-                                    <green>128</green>
-                                    <blue>128</blue>
-                                </color>
-                                <color>
-                                    <red>160</red>
-                                    <green>160</green>
-                                    <blue>164</blue>
-                                </color>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>255</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
-                                </color>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>255</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
-                                </color>
-                                <color>
-                                    <red>192</red>
-                                    <green>192</green>
-                                    <blue>192</blue>
-                                </color>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>0</red>
-                                    <green>0</green>
-                                    <blue>0</blue>
-                                </color>
-                                <color>
-                                    <red>255</red>
-                                    <green>255</green>
-                                    <blue>255</blue>
-                                </color>
-                            </active>
-                            <disabled>