Version 2 // Add detailled breaks

This commit is contained in:
Aurélie Delhaie
2021-10-18 22:46:59 +02:00
parent 102f720d29
commit b07b7b69eb
26 changed files with 1117 additions and 808 deletions

View File

@@ -10,19 +10,19 @@
<x>0</x>
<y>0</y>
<width>419</width>
<height>192</height>
<height>447</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>419</width>
<height>192</height>
<height>447</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>419</width>
<height>192</height>
<height>447</height>
</size>
</property>
<property name="windowTitle">
@@ -34,9 +34,9 @@
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>210</x>
<y>130</y>
<width>181</width>
<x>200</x>
<y>373</y>
<width>201</width>
<height>23</height>
</rect>
</property>
@@ -44,15 +44,21 @@
<string notr="true">font-size: 12px</string>
</property>
<property name="text">
<string>Enregistrer la modification</string>
<string>Valider</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
<property name="default">
<bool>true</bool>
</property>
</widget>
<widget class="QTimeEdit" name="start_edit">
<property name="geometry">
<rect>
<x>36</x>
<y>69</y>
<width>91</width>
<x>210</x>
<y>16</y>
<width>191</width>
<height>31</height>
</rect>
</property>
@@ -62,6 +68,9 @@
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="correctionMode">
<enum>QAbstractSpinBox::CorrectToNearestValue</enum>
</property>
<property name="time">
<time>
<hour>9</hour>
@@ -73,9 +82,9 @@
<widget class="QTimeEdit" name="end_edit">
<property name="geometry">
<rect>
<x>296</x>
<y>69</y>
<width>91</width>
<x>210</x>
<y>310</y>
<width>191</width>
<height>31</height>
</rect>
</property>
@@ -85,6 +94,9 @@
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="correctionMode">
<enum>QAbstractSpinBox::CorrectToNearestValue</enum>
</property>
<property name="time">
<time>
<hour>17</hour>
@@ -93,80 +105,45 @@
</time>
</property>
</widget>
<widget class="QDoubleSpinBox" name="break_edit">
<property name="geometry">
<rect>
<x>166</x>
<y>69</y>
<width>91</width>
<height>31</height>
</rect>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="value">
<double>0.450000000000000</double>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>36</x>
<y>29</y>
<width>91</width>
<x>10</x>
<y>16</y>
<width>181</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>Arrivé</string>
<string>Arrivée au bureau</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>166</x>
<y>29</y>
<width>91</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>Pause</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>296</x>
<y>29</y>
<width>91</width>
<x>10</x>
<y>310</y>
<width>181</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>Départ</string>
<string>Fin de journée</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>36</x>
<y>123</y>
<width>143</width>
<height>61</height>
<x>18</x>
<y>372</y>
<width>156</width>
<height>62</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
@@ -225,9 +202,9 @@ color: white;</string>
<widget class="QPushButton" name="validateButton">
<property name="geometry">
<rect>
<x>210</x>
<y>160</y>
<width>181</width>
<x>200</x>
<y>403</y>
<width>201</width>
<height>23</height>
</rect>
</property>
@@ -235,116 +212,106 @@ color: white;</string>
<string notr="true">font-size: 12px</string>
</property>
<property name="text">
<string>Définir l'horaire comme valide</string>
<string>Approuver</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
<widget class="QFrame" name="titleBar">
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>419</width>
<height>21</height>
<x>10</x>
<y>150</y>
<width>181</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 rgba(204, 22, 0, 255), stop:1 rgba(217, 0, 112, 255));</string>
<property name="text">
<string>Pause</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<widget class="QLabel" name="window_title">
<property name="geometry">
<rect>
<x>10</x>
<y>-1</y>
<width>281</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(255, 255, 255);
font-size: 11px;
background: none;</string>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</widget>
<widget class="QPushButton" name="closeButton">
<widget class="QPushButton" name="addBreakButton">
<property name="geometry">
<rect>
<x>377</x>
<y>0</y>
<x>360</x>
<y>270</y>
<width>41</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe MDL2 Assets</family>
</font>
<property name="text">
<string>+</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
<widget class="QPushButton" name="removeBreakButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>320</x>
<y>270</y>
<width>41</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string></string>
<string>-</string>
</property>
<property name="flat">
<bool>true</bool>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
<widget class="Line" name="window_border_left">
<widget class="Line" name="line">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>2</width>
<height>192</height>
<y>350</y>
<width>421</width>
<height>20</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: rgba(204, 22, 0, 255);</string>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
<widget class="Line" name="window_border_bottom">
<property name="geometry">
<rect>
<x>0</x>
<y>190</y>
<width>419</width>
<height>2</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 rgba(204, 22, 0, 255), stop:1 rgba(217, 0, 112, 255));</string>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="Line" name="window_border_right">
<widget class="QListWidget" name="breakList">
<property name="geometry">
<rect>
<x>417</x>
<y>0</y>
<width>2</width>
<height>192</height>
<x>210</x>
<y>60</y>
<width>191</width>
<height>201</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: rgba(217, 0, 112, 255);</string>
<string notr="true">background-color: rgba(0, 0, 0, 0);
color: rgb(255, 255, 255);</string>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
<property name="frameShape">
<enum>QFrame::Panel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="autoScroll">
<bool>false</bool>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="showDropIndicator" stdset="0">
<bool>false</bool>
</property>
<property name="defaultDropAction">
<enum>Qt::IgnoreAction</enum>
</property>
</widget>
</widget>
@@ -366,21 +333,5 @@ background-color: rgba(217, 0, 112, 255);</string>
</hint>
</hints>
</connection>
<connection>
<sender>closeButton</sender>
<signal>clicked()</signal>
<receiver>SetDayDialog</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>397</x>
<y>10</y>
</hint>
<hint type="destinationlabel">
<x>209</x>
<y>95</y>
</hint>
</hints>
</connection>
</connections>
</ui>