Make GUI more consistent

This commit is contained in:
Robin Stuart 2017-07-26 15:44:14 +01:00
parent e81a90bb58
commit f4f7e1936a
4 changed files with 326 additions and 334 deletions

View File

@ -6,36 +6,43 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>400</width> <width>429</width>
<height>300</height> <height>333</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Input Data</string> <string>Input Data</string>
</property> </property>
<property name="windowIcon">
<iconset>
<normaloff>images/zint.png</normaloff>images/zint.png</iconset>
</property>
<property name="modal"> <property name="modal">
<bool>true</bool> <bool>true</bool>
</property> </property>
<widget class="QPlainTextEdit" name="txtDataInput"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="geometry"> <item>
<rect> <widget class="QLabel" name="label">
<x>10</x> <property name="text">
<y>20</y> <string>Data</string>
<width>381</width>
<height>221</height>
</rect>
</property> </property>
</widget> </widget>
<widget class="QWidget" name="horizontalLayoutWidget"> </item>
<property name="geometry"> <item>
<rect> <widget class="QPlainTextEdit" name="txtDataInput">
<x>10</x> <property name="sizePolicy">
<y>250</y> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<width>381</width> <horstretch>0</horstretch>
<height>41</height> <verstretch>0</verstretch>
</rect> </sizepolicy>
</property> </property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<item> <item>
<widget class="QPushButton" name="btnFromFile"> <widget class="QPushButton" name="btnFromFile">
<property name="text"> <property name="text">
@ -78,20 +85,8 @@
</widget> </widget>
</item> </item>
</layout> </layout>
</widget> </item>
<widget class="QLabel" name="label"> </layout>
<property name="geometry">
<rect>
<x>10</x>
<y>0</y>
<width>56</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Data</string>
</property>
</widget>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections/>

View File

@ -10,9 +10,31 @@
<height>170</height> <height>170</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>450</width>
<height>170</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>450</width>
<height>170</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Export Barcodes</string> <string>Export Barcodes</string>
</property> </property>
<property name="windowIcon">
<iconset>
<normaloff>images/zint.png</normaloff>images/zint.png</iconset>
</property>
<widget class="QLineEdit" name="linDestPath"> <widget class="QLineEdit" name="linDestPath">
<property name="geometry"> <property name="geometry">
<rect> <rect>
@ -22,6 +44,9 @@
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<property name="toolTip">
<string>Destination folder</string>
</property>
</widget> </widget>
<widget class="QLineEdit" name="linPrefix"> <widget class="QLineEdit" name="linPrefix">
<property name="geometry"> <property name="geometry">
@ -32,6 +57,9 @@
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<property name="toolTip">
<string>The first part of the filenames</string>
</property>
<property name="text"> <property name="text">
<string>bcs_</string> <string>bcs_</string>
</property> </property>
@ -45,6 +73,9 @@
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<property name="toolTip">
<string>Sat the naming convention used by the files</string>
</property>
<item> <item>
<property name="text"> <property name="text">
<string>Same as Data</string> <string>Same as Data</string>
@ -65,6 +96,9 @@
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<property name="toolTip">
<string>The type of file which you want to create</string>
</property>
<item> <item>
<property name="text"> <property name="text">
<string>Portable Network Graphic (*.png)</string> <string>Portable Network Graphic (*.png)</string>
@ -115,6 +149,9 @@
<height>25</height> <height>25</height>
</rect> </rect>
</property> </property>
<property name="toolTip">
<string>Find a destination for your files</string>
</property>
<property name="text"> <property name="text">
<string>...</string> <string>...</string>
</property> </property>

View File

@ -6,66 +6,94 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>530</width> <width>637</width>
<height>300</height> <height>423</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Sequence Export</string> <string>Sequence Export</string>
</property> </property>
<property name="windowIcon">
<iconset>
<normaloff>images/zint.png</normaloff>images/zint.png</iconset>
</property>
<property name="modal"> <property name="modal">
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QGroupBox" name="groupBox"> <widget class="QGroupBox" name="groupBox">
<property name="geometry"> <property name="sizePolicy">
<rect> <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<x>10</x> <horstretch>0</horstretch>
<y>10</y> <verstretch>0</verstretch>
<width>261</width> </sizepolicy>
<height>241</height>
</rect>
</property> </property>
<property name="title"> <property name="title">
<string>Create Sequence</string> <string>Create Sequence</string>
</property> </property>
<widget class="QPushButton" name="btnExport"> <layout class="QVBoxLayout" name="verticalLayout_5">
<property name="enabled"> <item>
<bool>false</bool> <layout class="QHBoxLayout" name="horizontalLayout">
</property> <item>
<property name="geometry"> <layout class="QVBoxLayout" name="verticalLayout">
<rect> <item>
<x>140</x> <widget class="QLabel" name="label">
<y>200</y>
<width>111</width>
<height>26</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Export...</string> <string>Start Value:</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="btnCreate"> </item>
<property name="geometry"> <item>
<rect> <widget class="QLabel" name="label_2">
<x>140</x>
<y>140</y>
<width>111</width>
<height>26</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Create</string> <string>End Value:</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QLabel" name="lblIncrement">
<property name="text">
<string>Increment By:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>Format:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>Sequence:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>Sequence File:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_7">
<property name="text">
<string>Generate Bar Codes:</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLineEdit" name="linStartVal"> <widget class="QLineEdit" name="linStartVal">
<property name="geometry">
<rect>
<x>140</x>
<y>20</y>
<width>111</width>
<height>22</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>1</string> <string>1</string>
</property> </property>
@ -73,199 +101,131 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" name="linFormat"> </item>
<property name="geometry"> <item>
<rect>
<x>140</x>
<y>110</y>
<width>111</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>$$$$$$</string>
</property>
</widget>
<widget class="QLineEdit" name="linEndVal"> <widget class="QLineEdit" name="linEndVal">
<property name="geometry">
<rect>
<x>140</x>
<y>50</y>
<width>111</width>
<height>22</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>10</string> <string>10</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QLineEdit" name="linIncVal">
<property name="text">
<string>1</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="linFormat">
<property name="text">
<string>$$$$$$</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnCreate">
<property name="toolTip">
<string>Create a data sequence</string>
</property>
<property name="text">
<string>Create</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnImport"> <widget class="QPushButton" name="btnImport">
<property name="geometry"> <property name="toolTip">
<rect> <string>Get a data sequence from file</string>
<x>140</x>
<y>170</y>
<width>111</width>
<height>26</height>
</rect>
</property> </property>
<property name="text"> <property name="text">
<string>Import...</string> <string>Import...</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="label"> </item>
<property name="geometry"> <item>
<rect> <widget class="QPushButton" name="btnExport">
<x>10</x> <property name="enabled">
<y>20</y> <bool>false</bool>
<width>151</width> </property>
<height>20</height> <property name="toolTip">
</rect> <string>Save the symbols to file</string>
</property> </property>
<property name="text"> <property name="text">
<string>Start Value:</string> <string>Export...</string>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>10</x>
<y>50</y>
<width>171</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>End Value:</string>
</property>
</widget>
<widget class="QLabel" name="lblIncrement">
<property name="geometry">
<rect>
<x>10</x>
<y>80</y>
<width>171</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Increment By:</string>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>10</x>
<y>110</y>
<width>171</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Format:</string>
</property>
</widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>10</x>
<y>140</y>
<width>161</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Sequence:</string>
</property>
</widget>
<widget class="QLabel" name="label_6">
<property name="geometry">
<rect>
<x>10</x>
<y>170</y>
<width>161</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Sequence File:</string>
</property>
</widget>
<widget class="QLabel" name="label_7">
<property name="geometry">
<rect>
<x>10</x>
<y>200</y>
<width>161</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Generate Bar Codes:</string>
</property>
</widget>
<widget class="QLineEdit" name="linIncVal">
<property name="geometry">
<rect>
<x>140</x>
<y>80</y>
<width>113</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>1</string>
</property> </property>
</widget> </widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget> </widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2"> <widget class="QGroupBox" name="groupBox_2">
<property name="geometry"> <property name="sizePolicy">
<rect> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<x>280</x> <horstretch>0</horstretch>
<y>10</y> <verstretch>0</verstretch>
<width>241</width> </sizepolicy>
<height>241</height>
</rect>
</property> </property>
<property name="title"> <property name="title">
<string>Sequence Preview</string> <string>Sequence Preview</string>
</property> </property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QPlainTextEdit" name="txtPreview"> <widget class="QPlainTextEdit" name="txtPreview">
<property name="geometry"> <property name="toolTip">
<rect> <string>The data to be encoded, one line per symbol</string>
<x>10</x>
<y>20</y>
<width>221</width>
<height>171</height>
</rect>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="btnReset"> </item>
<property name="geometry"> </layout>
<rect> </item>
<x>150</x> </layout>
<y>200</y> </widget>
<width>80</width> </item>
<height>26</height> </layout>
</rect> </item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="btnReset">
<property name="text"> <property name="text">
<string>Reset</string> <string>Reset</string>
</property> </property>
</widget> </widget>
</widget> </item>
<item>
<widget class="QPushButton" name="btnClose"> <widget class="QPushButton" name="btnClose">
<property name="geometry">
<rect>
<x>440</x>
<y>260</y>
<width>80</width>
<height>26</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Close</string> <string>Close</string>
</property> </property>
</widget> </widget>
</item>
</layout>
</item>
</layout>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections/>

View File

@ -9,8 +9,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>701</width> <width>704</width>
<height>724</height> <height>743</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
@ -308,8 +308,8 @@ Remember to place [square brackets] around AI data</string>
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Noto Sans [monotype]'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Your Data Here!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif';&quot;&gt;Your Data Here!&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="acceptRichText"> <property name="acceptRichText">
<bool>false</bool> <bool>false</bool>