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,92 +6,87 @@
<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> </property>
<height>221</height> </widget>
</rect> </item>
</property> <item>
</widget> <widget class="QPlainTextEdit" name="txtDataInput">
<widget class="QWidget" name="horizontalLayoutWidget"> <property name="sizePolicy">
<property name="geometry"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<rect> <horstretch>0</horstretch>
<x>10</x> <verstretch>0</verstretch>
<y>250</y> </sizepolicy>
<width>381</width> </property>
<height>41</height> </widget>
</rect> </item>
</property> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <property name="sizeConstraint">
<widget class="QPushButton" name="btnFromFile"> <enum>QLayout::SetDefaultConstraint</enum>
<property name="text"> </property>
<string>From File...</string> <item>
</property> <widget class="QPushButton" name="btnFromFile">
</widget> <property name="text">
</item> <string>From File...</string>
<item> </property>
<widget class="QPushButton" name="btnReset"> </widget>
<property name="text"> </item>
<string>Reset</string> <item>
</property> <widget class="QPushButton" name="btnReset">
</widget> <property name="text">
</item> <string>Reset</string>
<item> </property>
<spacer name="horizontalSpacer"> </widget>
<property name="orientation"> </item>
<enum>Qt::Horizontal</enum> <item>
</property> <spacer name="horizontalSpacer">
<property name="sizeHint" stdset="0"> <property name="orientation">
<size> <enum>Qt::Horizontal</enum>
<width>40</width> </property>
<height>20</height> <property name="sizeHint" stdset="0">
</size> <size>
</property> <width>40</width>
</spacer> <height>20</height>
</item> </size>
<item> </property>
<widget class="QPushButton" name="btnOK"> </spacer>
<property name="text"> </item>
<string>OK</string> <item>
</property> <widget class="QPushButton" name="btnOK">
</widget> <property name="text">
</item> <string>OK</string>
<item> </property>
<widget class="QPushButton" name="btnCancel"> </widget>
<property name="text"> </item>
<string>Cancel</string> <item>
</property> <widget class="QPushButton" name="btnCancel">
</widget> <property name="text">
</item> <string>Cancel</string>
</layout> </property>
</widget> </widget>
<widget class="QLabel" name="label"> </item>
<property name="geometry"> </layout>
<rect> </item>
<x>10</x> </layout>
<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,266 +6,226 @@
<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>
<widget class="QGroupBox" name="groupBox"> <layout class="QVBoxLayout" name="verticalLayout_6">
<property name="geometry"> <item>
<rect> <layout class="QHBoxLayout" name="horizontalLayout_9">
<x>10</x> <item>
<y>10</y> <widget class="QGroupBox" name="groupBox">
<width>261</width> <property name="sizePolicy">
<height>241</height> <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
</rect> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="title"> </sizepolicy>
<string>Create Sequence</string> </property>
</property> <property name="title">
<widget class="QPushButton" name="btnExport"> <string>Create Sequence</string>
<property name="enabled"> </property>
<bool>false</bool> <layout class="QVBoxLayout" name="verticalLayout_5">
</property> <item>
<property name="geometry"> <layout class="QHBoxLayout" name="horizontalLayout">
<rect> <item>
<x>140</x> <layout class="QVBoxLayout" name="verticalLayout">
<y>200</y> <item>
<width>111</width> <widget class="QLabel" name="label">
<height>26</height> <property name="text">
</rect> <string>Start Value:</string>
</property> </property>
<property name="text"> </widget>
<string>Export...</string> </item>
</property> <item>
</widget> <widget class="QLabel" name="label_2">
<widget class="QPushButton" name="btnCreate"> <property name="text">
<property name="geometry"> <string>End Value:</string>
<rect> </property>
<x>140</x> </widget>
<y>140</y> </item>
<width>111</width> <item>
<height>26</height> <widget class="QLabel" name="lblIncrement">
</rect> <property name="text">
</property> <string>Increment By:</string>
<property name="text"> </property>
<string>Create</string> </widget>
</property> </item>
</widget> <item>
<widget class="QLineEdit" name="linStartVal"> <widget class="QLabel" name="label_4">
<property name="geometry"> <property name="text">
<rect> <string>Format:</string>
<x>140</x> </property>
<y>20</y> </widget>
<width>111</width> </item>
<height>22</height> <item>
</rect> <widget class="QLabel" name="label_5">
</property> <property name="text">
<property name="text"> <string>Sequence:</string>
<string>1</string> </property>
</property> </widget>
<property name="frame"> </item>
<bool>true</bool> <item>
</property> <widget class="QLabel" name="label_6">
</widget> <property name="text">
<widget class="QLineEdit" name="linFormat"> <string>Sequence File:</string>
<property name="geometry"> </property>
<rect> </widget>
<x>140</x> </item>
<y>110</y> <item>
<width>111</width> <widget class="QLabel" name="label_7">
<height>22</height> <property name="text">
</rect> <string>Generate Bar Codes:</string>
</property> </property>
<property name="text"> </widget>
<string>$$$$$$</string> </item>
</property> </layout>
</widget> </item>
<widget class="QLineEdit" name="linEndVal"> <item>
<property name="geometry"> <layout class="QVBoxLayout" name="verticalLayout_2">
<rect> <item>
<x>140</x> <widget class="QLineEdit" name="linStartVal">
<y>50</y> <property name="text">
<width>111</width> <string>1</string>
<height>22</height> </property>
</rect> <property name="frame">
</property> <bool>true</bool>
<property name="text"> </property>
<string>10</string> </widget>
</property> </item>
</widget> <item>
<widget class="QPushButton" name="btnImport"> <widget class="QLineEdit" name="linEndVal">
<property name="geometry"> <property name="text">
<rect> <string>10</string>
<x>140</x> </property>
<y>170</y> </widget>
<width>111</width> </item>
<height>26</height> <item>
</rect> <widget class="QLineEdit" name="linIncVal">
</property> <property name="text">
<property name="text"> <string>1</string>
<string>Import...</string> </property>
</property> </widget>
</widget> </item>
<widget class="QLabel" name="label"> <item>
<property name="geometry"> <widget class="QLineEdit" name="linFormat">
<rect> <property name="text">
<x>10</x> <string>$$$$$$</string>
<y>20</y> </property>
<width>151</width> </widget>
<height>20</height> </item>
</rect> <item>
</property> <widget class="QPushButton" name="btnCreate">
<property name="text"> <property name="toolTip">
<string>Start Value:</string> <string>Create a data sequence</string>
</property> </property>
</widget> <property name="text">
<widget class="QLabel" name="label_2"> <string>Create</string>
<property name="geometry"> </property>
<rect> </widget>
<x>10</x> </item>
<y>50</y> <item>
<width>171</width> <widget class="QPushButton" name="btnImport">
<height>16</height> <property name="toolTip">
</rect> <string>Get a data sequence from file</string>
</property> </property>
<property name="text"> <property name="text">
<string>End Value:</string> <string>Import...</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="lblIncrement"> </item>
<property name="geometry"> <item>
<rect> <widget class="QPushButton" name="btnExport">
<x>10</x> <property name="enabled">
<y>80</y> <bool>false</bool>
<width>171</width> </property>
<height>16</height> <property name="toolTip">
</rect> <string>Save the symbols to file</string>
</property> </property>
<property name="text"> <property name="text">
<string>Increment By:</string> <string>Export...</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="label_4"> </item>
<property name="geometry"> </layout>
<rect> </item>
<x>10</x> </layout>
<y>110</y> </item>
<width>171</width> </layout>
<height>16</height> </widget>
</rect> </item>
</property> <item>
<property name="text"> <widget class="QGroupBox" name="groupBox_2">
<string>Format:</string> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
</widget> <horstretch>0</horstretch>
<widget class="QLabel" name="label_5"> <verstretch>0</verstretch>
<property name="geometry"> </sizepolicy>
<rect> </property>
<x>10</x> <property name="title">
<y>140</y> <string>Sequence Preview</string>
<width>161</width> </property>
<height>16</height> <property name="alignment">
</rect> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property> </property>
<property name="text"> <layout class="QVBoxLayout" name="verticalLayout_4">
<string>Sequence:</string> <item>
</property> <layout class="QVBoxLayout" name="verticalLayout_3">
</widget> <item>
<widget class="QLabel" name="label_6"> <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> </property>
<y>170</y> </widget>
<width>161</width> </item>
<height>16</height> </layout>
</rect> </item>
</property> </layout>
<property name="text"> </widget>
<string>Sequence File:</string> </item>
</property> </layout>
</widget> </item>
<widget class="QLabel" name="label_7"> <item>
<property name="geometry"> <layout class="QHBoxLayout" name="horizontalLayout_10">
<rect> <item>
<x>10</x> <spacer name="horizontalSpacer_2">
<y>200</y> <property name="orientation">
<width>161</width> <enum>Qt::Horizontal</enum>
<height>16</height> </property>
</rect> <property name="sizeHint" stdset="0">
</property> <size>
<property name="text"> <width>40</width>
<string>Generate Bar Codes:</string> <height>20</height>
</property> </size>
</widget> </property>
<widget class="QLineEdit" name="linIncVal"> </spacer>
<property name="geometry"> </item>
<rect> <item>
<x>140</x> <widget class="QPushButton" name="btnReset">
<y>80</y> <property name="text">
<width>113</width> <string>Reset</string>
<height>22</height> </property>
</rect> </widget>
</property> </item>
<property name="text"> <item>
<string>1</string> <widget class="QPushButton" name="btnClose">
</property> <property name="text">
</widget> <string>Close</string>
</widget> </property>
<widget class="QGroupBox" name="groupBox_2"> </widget>
<property name="geometry"> </item>
<rect> </layout>
<x>280</x> </item>
<y>10</y> </layout>
<width>241</width>
<height>241</height>
</rect>
</property>
<property name="title">
<string>Sequence Preview</string>
</property>
<widget class="QPlainTextEdit" name="txtPreview">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>221</width>
<height>171</height>
</rect>
</property>
</widget>
<widget class="QPushButton" name="btnReset">
<property name="geometry">
<rect>
<x>150</x>
<y>200</y>
<width>80</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>Reset</string>
</property>
</widget>
</widget>
<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">
<string>Close</string>
</property>
</widget>
</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>