multi-check system
This commit is contained in:
		@@ -26,10 +26,10 @@
 | 
			
		||||
   <string>Form</string>
 | 
			
		||||
  </property>
 | 
			
		||||
  <layout class="QGridLayout" name="gridLayout">
 | 
			
		||||
   <item row="1" column="3">
 | 
			
		||||
    <widget class="QLabel" name="or_label_2">
 | 
			
		||||
   <item row="1" column="1">
 | 
			
		||||
    <widget class="QLabel" name="or_label_1">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
 | 
			
		||||
      <sizepolicy hsizetype="Maximum" vsizetype="Preferred">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
@@ -39,23 +39,10 @@
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="9" column="2" colspan="2">
 | 
			
		||||
    <widget class="QPushButton" name="add_new_check_button">
 | 
			
		||||
   <item row="6" column="0">
 | 
			
		||||
    <widget class="QLabel" name="datetime_label">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Add new check</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="3" column="0">
 | 
			
		||||
    <widget class="QLabel" name="fn_label">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>FN (Fiscal Number)</string>
 | 
			
		||||
      <string>Date and time of purchase</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
@@ -72,118 +59,6 @@
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="5" column="2" colspan="3">
 | 
			
		||||
    <widget class="QLineEdit" name="fi_line_edit"/>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="1" column="0">
 | 
			
		||||
    <widget class="QPushButton" name="choose_image_button">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Choose image on your PC</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="0" column="4">
 | 
			
		||||
    <widget class="QPushButton" name="stop_server_button">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Stop server</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="5" column="0">
 | 
			
		||||
    <widget class="QLabel" name="fi_label">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>FI (Fiscal Identifier)</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="0" column="0">
 | 
			
		||||
    <widget class="QPushButton" name="settings_button">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Settings</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="8" column="0">
 | 
			
		||||
    <widget class="QLabel" name="total_label">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Total</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="3" column="2" colspan="3">
 | 
			
		||||
    <widget class="QLineEdit" name="fn_line_edit">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="6" column="2" colspan="3">
 | 
			
		||||
    <widget class="QDateTimeEdit" name="purchase_datetime_edit"/>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="9" column="0" colspan="2">
 | 
			
		||||
    <widget class="QPushButton" name="clear_button">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Clear</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="6" column="0">
 | 
			
		||||
    <widget class="QLabel" name="datetime_label">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Date and time of purchase</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="1" column="1">
 | 
			
		||||
    <widget class="QLabel" name="or_label_1">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Maximum" vsizetype="Preferred">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>or</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="7" column="0">
 | 
			
		||||
    <widget class="QLabel" name="operation_type_label">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Operation type</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="4" column="2" colspan="3">
 | 
			
		||||
    <widget class="QLineEdit" name="fd_line_edit"/>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="8" column="2" colspan="3">
 | 
			
		||||
    <widget class="QDoubleSpinBox" name="total_spin_box">
 | 
			
		||||
     <property name="maximum">
 | 
			
		||||
@@ -191,16 +66,20 @@
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="1" column="4">
 | 
			
		||||
    <widget class="QPushButton" name="binary_eye_button">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
   <item row="0" column="5">
 | 
			
		||||
    <widget class="QLabel" name="checks_to_parse_label">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Use your phone as a QR code scanner</string>
 | 
			
		||||
      <string>Checks to parse</string>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="alignment">
 | 
			
		||||
      <set>Qt::AlignmentFlag::AlignCenter</set>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="5" column="0">
 | 
			
		||||
    <widget class="QLabel" name="fi_label">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>FI (Fiscal Identifier)</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
@@ -217,8 +96,41 @@
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="1" column="2">
 | 
			
		||||
    <widget class="QPushButton" name="parse_email_button">
 | 
			
		||||
   <item row="0" column="0">
 | 
			
		||||
    <widget class="QPushButton" name="settings_button">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Settings</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="3" column="0">
 | 
			
		||||
    <widget class="QLabel" name="fn_label">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>FN (Fiscal Number)</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="8" column="0">
 | 
			
		||||
    <widget class="QLabel" name="total_label">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Total</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="1" column="4">
 | 
			
		||||
    <widget class="QPushButton" name="binary_eye_button">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
@@ -226,10 +138,49 @@
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Parse an E-Mail</string>
 | 
			
		||||
      <string>Use your phone as a QR code scanner</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="1" column="3">
 | 
			
		||||
    <widget class="QLabel" name="or_label_2">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>or</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="1" column="0">
 | 
			
		||||
    <widget class="QPushButton" name="choose_image_button">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Choose image on your PC</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="3" column="2" colspan="3">
 | 
			
		||||
    <widget class="QLineEdit" name="fn_line_edit">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="6" column="2" colspan="3">
 | 
			
		||||
    <widget class="QDateTimeEdit" name="purchase_datetime_edit"/>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="2" column="0" colspan="5">
 | 
			
		||||
    <widget class="QLabel" name="info_label">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
@@ -243,6 +194,19 @@
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="0" column="4">
 | 
			
		||||
    <widget class="QPushButton" name="stop_server_button">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Stop server</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="7" column="2" colspan="3">
 | 
			
		||||
    <widget class="QComboBox" name="operation_type_combo_box">
 | 
			
		||||
     <item>
 | 
			
		||||
@@ -267,14 +231,54 @@
 | 
			
		||||
     </item>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="1" column="5" rowspan="9">
 | 
			
		||||
    <widget class="QScrollArea" name="checks_scroll_area">
 | 
			
		||||
   <item row="7" column="0">
 | 
			
		||||
    <widget class="QLabel" name="operation_type_label">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Operation type</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="1" column="2">
 | 
			
		||||
    <widget class="QPushButton" name="parse_email_button">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
 | 
			
		||||
      <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Parse an E-Mail</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="9" column="0" colspan="2">
 | 
			
		||||
    <widget class="QPushButton" name="clear_button">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
       <verstretch>0</verstretch>
 | 
			
		||||
      </sizepolicy>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Clear</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="5" column="2" colspan="3">
 | 
			
		||||
    <widget class="QLineEdit" name="fi_line_edit"/>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="9" column="2" colspan="2">
 | 
			
		||||
    <widget class="QPushButton" name="add_new_check_button">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Add new check</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="4" column="2" colspan="3">
 | 
			
		||||
    <widget class="QLineEdit" name="fd_line_edit"/>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="1" column="5" rowspan="9">
 | 
			
		||||
    <widget class="QScrollArea" name="checks_scroll_area">
 | 
			
		||||
     <property name="widgetResizable">
 | 
			
		||||
      <bool>true</bool>
 | 
			
		||||
     </property>
 | 
			
		||||
@@ -290,16 +294,6 @@
 | 
			
		||||
     </widget>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="0" column="5">
 | 
			
		||||
    <widget class="QLabel" name="checks_to_parse_label">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Checks to parse</string>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="alignment">
 | 
			
		||||
      <set>Qt::AlignmentFlag::AlignCenter</set>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
  </layout>
 | 
			
		||||
 </widget>
 | 
			
		||||
 <resources/>
 | 
			
		||||
 
 | 
			
		||||
@@ -14,13 +14,10 @@
 | 
			
		||||
   <string>Dialog</string>
 | 
			
		||||
  </property>
 | 
			
		||||
  <layout class="QGridLayout" name="gridLayout">
 | 
			
		||||
   <item row="4" column="2">
 | 
			
		||||
    <widget class="QDialogButtonBox" name="buttonBox">
 | 
			
		||||
     <property name="orientation">
 | 
			
		||||
      <enum>Qt::Orientation::Horizontal</enum>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="standardButtons">
 | 
			
		||||
      <set>QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set>
 | 
			
		||||
   <item row="0" column="0">
 | 
			
		||||
    <widget class="QLabel" name="pathLabel">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Path to export: </string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
@@ -45,15 +42,18 @@
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="0" column="0">
 | 
			
		||||
    <widget class="QLabel" name="pathLabel">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Path to export: </string>
 | 
			
		||||
   <item row="4" column="2">
 | 
			
		||||
    <widget class="QDialogButtonBox" name="buttonBox">
 | 
			
		||||
     <property name="orientation">
 | 
			
		||||
      <enum>Qt::Orientation::Horizontal</enum>
 | 
			
		||||
     </property>
 | 
			
		||||
     <property name="standardButtons">
 | 
			
		||||
      <set>QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item row="3" column="0" colspan="3">
 | 
			
		||||
    <widget class="QTableWidget" name="tableWidget">
 | 
			
		||||
    <widget class="TableWidgetMovable" name="tableWidget">
 | 
			
		||||
     <property name="sizePolicy">
 | 
			
		||||
      <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
 | 
			
		||||
       <horstretch>0</horstretch>
 | 
			
		||||
@@ -200,6 +200,13 @@
 | 
			
		||||
   </item>
 | 
			
		||||
  </layout>
 | 
			
		||||
 </widget>
 | 
			
		||||
 <customwidgets>
 | 
			
		||||
  <customwidget>
 | 
			
		||||
   <class>TableWidgetMovable</class>
 | 
			
		||||
   <extends>QTableWidget</extends>
 | 
			
		||||
   <header>widgets/tablewidgetmovable.hpp</header>
 | 
			
		||||
  </customwidget>
 | 
			
		||||
 </customwidgets>
 | 
			
		||||
 <resources/>
 | 
			
		||||
 <connections>
 | 
			
		||||
  <connection>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user