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>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
<width>429</width>
<height>333</height>
</rect>
</property>
<property name="windowTitle">
<string>Input Data</string>
</property>
<property name="windowIcon">
<iconset>
<normaloff>images/zint.png</normaloff>images/zint.png</iconset>
</property>
<property name="modal">
<bool>true</bool>
</property>
<widget class="QPlainTextEdit" name="txtDataInput">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>381</width>
<height>221</height>
</rect>
</property>
</widget>
<widget class="QWidget" name="horizontalLayoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>250</y>
<width>381</width>
<height>41</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="btnFromFile">
<property name="text">
<string>From File...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnReset">
<property name="text">
<string>Reset</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="btnOK">
<property name="text">
<string>OK</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnCancel">
<property name="text">
<string>Cancel</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QLabel" name="label">
<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>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Data</string>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="txtDataInput">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<item>
<widget class="QPushButton" name="btnFromFile">
<property name="text">
<string>From File...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnReset">
<property name="text">
<string>Reset</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="btnOK">
<property name="text">
<string>OK</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnCancel">
<property name="text">
<string>Cancel</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>

View File

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

View File

@ -6,266 +6,226 @@
<rect>
<x>0</x>
<y>0</y>
<width>530</width>
<height>300</height>
<width>637</width>
<height>423</height>
</rect>
</property>
<property name="windowTitle">
<string>Sequence Export</string>
</property>
<property name="windowIcon">
<iconset>
<normaloff>images/zint.png</normaloff>images/zint.png</iconset>
</property>
<property name="modal">
<bool>true</bool>
</property>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>261</width>
<height>241</height>
</rect>
</property>
<property name="title">
<string>Create Sequence</string>
</property>
<widget class="QPushButton" name="btnExport">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>140</x>
<y>200</y>
<width>111</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>Export...</string>
</property>
</widget>
<widget class="QPushButton" name="btnCreate">
<property name="geometry">
<rect>
<x>140</x>
<y>140</y>
<width>111</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>Create</string>
</property>
</widget>
<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">
<string>1</string>
</property>
<property name="frame">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="linFormat">
<property name="geometry">
<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">
<property name="geometry">
<rect>
<x>140</x>
<y>50</y>
<width>111</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>10</string>
</property>
</widget>
<widget class="QPushButton" name="btnImport">
<property name="geometry">
<rect>
<x>140</x>
<y>170</y>
<width>111</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>Import...</string>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>151</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Start Value:</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>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>280</x>
<y>10</y>
<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>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QGroupBox" name="groupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Create Sequence</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Start Value:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>End Value:</string>
</property>
</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">
<property name="text">
<string>1</string>
</property>
<property name="frame">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="linEndVal">
<property name="text">
<string>10</string>
</property>
</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">
<property name="toolTip">
<string>Get a data sequence from file</string>
</property>
<property name="text">
<string>Import...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnExport">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Save the symbols to file</string>
</property>
<property name="text">
<string>Export...</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Sequence Preview</string>
</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">
<property name="toolTip">
<string>The data to be encoded, one line per symbol</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</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">
<string>Reset</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnClose">
<property name="text">
<string>Close</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>

View File

@ -9,8 +9,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>701</width>
<height>724</height>
<width>704</width>
<height>743</height>
</rect>
</property>
<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;
&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; }
&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;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;/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;&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 name="acceptRichText">
<bool>false</bool>