From b3b9e261f92f73077891312378f0811db25fbf0d Mon Sep 17 00:00:00 2001
Message-Id: <b3b9e261f92f73077891312378f0811db25fbf0d.1612047842.git.bubu@ujevangelizacio.hu>
From: =?UTF-8?q?Gyuris=20Gell=C3=A9rt?= <bubu@ujevangelizacio.hu>
Date: Sun, 31 Jan 2021 00:02:28 +0100
Subject: [PATCH] Update layout for Barcode Generator

---
 .../barcodegenerator/barcodegenerator.ui      | 396 +++++++++---------
 1 file changed, 200 insertions(+), 196 deletions(-)

diff --git a/scribus/plugins/barcodegenerator/barcodegenerator.ui b/scribus/plugins/barcodegenerator/barcodegenerator.ui
index 802bc106d..e6a166650 100644
--- a/scribus/plugins/barcodegenerator/barcodegenerator.ui
+++ b/scribus/plugins/barcodegenerator/barcodegenerator.ui
@@ -8,7 +8,7 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>497</width>
+    <width>504</width>
     <height>574</height>
    </rect>
   </property>
@@ -19,7 +19,137 @@
    <string/>
   </property>
   <layout class="QGridLayout" name="gridLayout">
-   <item row="8" column="0" colspan="3">
+   <property name="leftMargin">
+    <number>9</number>
+   </property>
+   <property name="topMargin">
+    <number>9</number>
+   </property>
+   <property name="rightMargin">
+    <number>9</number>
+   </property>
+   <property name="bottomMargin">
+    <number>9</number>
+   </property>
+   <item row="4" column="1" colspan="2">
+    <widget class="QGroupBox" name="colorBox">
+     <property name="title">
+      <string>Colors</string>
+     </property>
+     <layout class="QGridLayout" name="gridLayout_4">
+      <item row="0" column="0">
+       <widget class="QPushButton" name="bgColorButton">
+        <property name="toolTip">
+         <string>Background color - under the code lines</string>
+        </property>
+        <property name="text">
+         <string>&amp;Background</string>
+        </property>
+        <property name="shortcut">
+         <string>Alt+B</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="1">
+       <widget class="QLabel" name="txtLabel">
+        <property name="minimumSize">
+         <size>
+          <width>25</width>
+          <height>25</height>
+         </size>
+        </property>
+        <property name="frameShape">
+         <enum>QFrame::Box</enum>
+        </property>
+        <property name="scaledContents">
+         <bool>true</bool>
+        </property>
+        <property name="wordWrap">
+         <bool>false</bool>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="0">
+       <widget class="QPushButton" name="lnColorButton">
+        <property name="toolTip">
+         <string>Color of the lines in barcode</string>
+        </property>
+        <property name="text">
+         <string>&amp;Lines</string>
+        </property>
+        <property name="shortcut">
+         <string>Alt+L</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="1">
+       <widget class="QLabel" name="linesLabel">
+        <property name="minimumSize">
+         <size>
+          <width>25</width>
+          <height>25</height>
+         </size>
+        </property>
+        <property name="frameShape">
+         <enum>QFrame::Box</enum>
+        </property>
+        <property name="scaledContents">
+         <bool>true</bool>
+        </property>
+        <property name="wordWrap">
+         <bool>false</bool>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="0">
+       <widget class="QPushButton" name="txtColorButton">
+        <property name="toolTip">
+         <string>Color of the text and numbers</string>
+        </property>
+        <property name="text">
+         <string>&amp;Text</string>
+        </property>
+        <property name="shortcut">
+         <string>Alt+T</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="1">
+       <widget class="QLabel" name="bgLabel">
+        <property name="minimumSize">
+         <size>
+          <width>25</width>
+          <height>25</height>
+         </size>
+        </property>
+        <property name="frameShape">
+         <enum>QFrame::Box</enum>
+        </property>
+        <property name="scaledContents">
+         <bool>true</bool>
+        </property>
+        <property name="wordWrap">
+         <bool>false</bool>
+        </property>
+       </widget>
+      </item>
+      <item row="3" column="0">
+       <spacer name="verticalSpacer">
+        <property name="orientation">
+         <enum>Qt::Vertical</enum>
+        </property>
+        <property name="sizeHint" stdset="0">
+         <size>
+          <width>20</width>
+          <height>40</height>
+         </size>
+        </property>
+       </spacer>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item row="7" column="0" colspan="3">
     <layout class="QHBoxLayout" name="horizontalLayout">
      <item>
       <spacer name="horizontalSpacer">
@@ -53,41 +183,58 @@
    <item row="4" column="0">
     <widget class="QGroupBox" name="bcodeBox">
      <property name="title">
-      <string/>
+      <string>Options</string>
      </property>
      <layout class="QGridLayout" name="gridLayout_3">
-      <property name="topMargin">
-       <number>0</number>
-      </property>
-      <property name="bottomMargin">
-       <number>0</number>
-      </property>
-      <item row="6" column="1">
-       <widget class="QCheckBox" name="includecheckintextCheck">
+      <item row="10" column="0">
+       <widget class="QComboBox" name="formatCombo">
+        <property name="minimumSize">
+         <size>
+          <width>125</width>
+          <height>1</height>
+         </size>
+        </property>
         <property name="toolTip">
-         <string>Include the checksum digit in the barcode text</string>
+         <string>Version of the symbol</string>
         </property>
+       </widget>
+      </item>
+      <item row="9" column="1">
+       <widget class="QLabel" name="eccLabel">
         <property name="text">
-         <string>Display checksum</string>
+         <string>Error correction level:</string>
         </property>
-        <property name="shortcut">
-         <string>Alt+U</string>
+        <property name="wordWrap">
+         <bool>false</bool>
+        </property>
+        <property name="buddy">
+         <cstring>eccCombo</cstring>
         </property>
        </widget>
       </item>
-      <item row="5" column="0">
-       <widget class="QCheckBox" name="includetextCheck">
+      <item row="9" column="0">
+       <widget class="QLabel" name="formatLabel">
+        <property name="text">
+         <string>Version:</string>
+        </property>
+        <property name="wordWrap">
+         <bool>false</bool>
+        </property>
+        <property name="buddy">
+         <cstring>formatCombo</cstring>
+        </property>
+       </widget>
+      </item>
+      <item row="6" column="1">
+       <widget class="QCheckBox" name="includecheckintextCheck">
         <property name="toolTip">
-         <string>If checked, there will be numbers in the barcode too</string>
+         <string>Include the checksum digit in the barcode text</string>
         </property>
         <property name="text">
-         <string>Show readable text</string>
+         <string>Display checksum</string>
         </property>
         <property name="shortcut">
-         <string>Alt+I</string>
-        </property>
-        <property name="checked">
-         <bool>false</bool>
+         <string>Alt+U</string>
         </property>
        </widget>
       </item>
@@ -131,111 +278,32 @@
         </property>
        </widget>
       </item>
-     </layout>
-    </widget>
-   </item>
-   <item row="4" column="1" colspan="2">
-    <widget class="QGroupBox" name="colorBox">
-     <property name="title">
-      <string/>
-     </property>
-     <layout class="QGridLayout" name="gridLayout_4">
-      <property name="topMargin">
-       <number>6</number>
-      </property>
-      <item row="0" column="0">
-       <widget class="QPushButton" name="bgColorButton">
+      <item row="5" column="0">
+       <widget class="QCheckBox" name="includetextCheck">
         <property name="toolTip">
-         <string>Background color - under the code lines</string>
+         <string>If checked, there will be numbers in the barcode too</string>
         </property>
         <property name="text">
-         <string>&amp;Background</string>
+         <string>Show readable text</string>
         </property>
         <property name="shortcut">
-         <string>Alt+B</string>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="1">
-       <widget class="QLabel" name="bgLabel">
-        <property name="minimumSize">
-         <size>
-          <width>10</width>
-          <height>0</height>
-         </size>
-        </property>
-        <property name="frameShape">
-         <enum>QFrame::Box</enum>
-        </property>
-        <property name="scaledContents">
-         <bool>true</bool>
+         <string>Alt+I</string>
         </property>
-        <property name="wordWrap">
+        <property name="checked">
          <bool>false</bool>
         </property>
        </widget>
       </item>
-      <item row="1" column="0">
-       <widget class="QPushButton" name="lnColorButton">
-        <property name="toolTip">
-         <string>Color of the lines in barcode</string>
-        </property>
-        <property name="text">
-         <string>&amp;Lines</string>
-        </property>
-        <property name="shortcut">
-         <string>Alt+L</string>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="1">
-       <widget class="QLabel" name="linesLabel">
+      <item row="10" column="1">
+       <widget class="QComboBox" name="eccCombo">
         <property name="minimumSize">
          <size>
-          <width>10</width>
+          <width>125</width>
           <height>0</height>
          </size>
         </property>
-        <property name="frameShape">
-         <enum>QFrame::Box</enum>
-        </property>
-        <property name="scaledContents">
-         <bool>true</bool>
-        </property>
-        <property name="wordWrap">
-         <bool>false</bool>
-        </property>
-       </widget>
-      </item>
-      <item row="2" column="0">
-       <widget class="QPushButton" name="txtColorButton">
         <property name="toolTip">
-         <string>Color of the text and numbers</string>
-        </property>
-        <property name="text">
-         <string>&amp;Text</string>
-        </property>
-        <property name="shortcut">
-         <string>Alt+T</string>
-        </property>
-       </widget>
-      </item>
-      <item row="2" column="1">
-       <widget class="QLabel" name="txtLabel">
-        <property name="minimumSize">
-         <size>
-          <width>10</width>
-          <height>0</height>
-         </size>
-        </property>
-        <property name="frameShape">
-         <enum>QFrame::Box</enum>
-        </property>
-        <property name="scaledContents">
-         <bool>true</bool>
-        </property>
-        <property name="wordWrap">
-         <bool>false</bool>
+         <string>Error correction level</string>
         </property>
        </widget>
       </item>
@@ -251,7 +319,7 @@
       </size>
      </property>
      <property name="title">
-      <string/>
+      <string>Type</string>
      </property>
      <layout class="QGridLayout" name="gridLayout_2">
       <item row="0" column="0">
@@ -364,90 +432,26 @@
      </layout>
     </widget>
    </item>
-   <item row="6" column="0" colspan="3">
-    <widget class="QGroupBox" name="optionsBox">
-     <property name="title">
-      <string/>
+   <item row="5" column="0" colspan="3">
+    <widget class="QLabel" name="sampleLabel">
+     <property name="minimumSize">
+      <size>
+       <width>450</width>
+       <height>190</height>
+      </size>
+     </property>
+     <property name="styleSheet">
+      <string notr="true">background-color : #FFF</string>
+     </property>
+     <property name="frameShape">
+      <enum>QFrame::Box</enum>
+     </property>
+     <property name="alignment">
+      <set>Qt::AlignCenter</set>
+     </property>
+     <property name="wordWrap">
+      <bool>true</bool>
      </property>
-     <layout class="QGridLayout" name="gridLayout_5">
-      <property name="verticalSpacing">
-       <number>6</number>
-      </property>
-      <item row="2" column="0" colspan="5">
-       <widget class="QLabel" name="sampleLabel">
-        <property name="minimumSize">
-         <size>
-          <width>450</width>
-          <height>190</height>
-         </size>
-        </property>
-        <property name="styleSheet">
-         <string notr="true">background-color : #FFF</string>
-        </property>
-        <property name="frameShape">
-         <enum>QFrame::Box</enum>
-        </property>
-        <property name="alignment">
-         <set>Qt::AlignCenter</set>
-        </property>
-        <property name="wordWrap">
-         <bool>true</bool>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="0">
-       <widget class="QLabel" name="formatLabel">
-        <property name="text">
-         <string>Version:</string>
-        </property>
-        <property name="wordWrap">
-         <bool>false</bool>
-        </property>
-        <property name="buddy">
-         <cstring>formatCombo</cstring>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="1">
-       <widget class="QComboBox" name="formatCombo">
-        <property name="minimumSize">
-         <size>
-          <width>125</width>
-          <height>1</height>
-         </size>
-        </property>
-        <property name="toolTip">
-         <string>Version of the symbol</string>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="4">
-       <widget class="QComboBox" name="eccCombo">
-        <property name="minimumSize">
-         <size>
-          <width>125</width>
-          <height>0</height>
-         </size>
-        </property>
-        <property name="toolTip">
-         <string>Error correction level</string>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="3">
-       <widget class="QLabel" name="eccLabel">
-        <property name="text">
-         <string>Error correction level:</string>
-        </property>
-        <property name="wordWrap">
-         <bool>false</bool>
-        </property>
-        <property name="buddy">
-         <cstring>eccCombo</cstring>
-        </property>
-       </widget>
-      </item>
-     </layout>
     </widget>
    </item>
   </layout>
-- 
2.27.0

