Polish the GUI a bit

This commit is contained in:
hooper114 2009-07-16 12:59:22 +00:00
parent d0f4858762
commit f2e67de4ea
18 changed files with 552 additions and 427 deletions

View file

@ -37,6 +37,9 @@
</item>
<item row="0" column="3" >
<widget class="QToolButton" name="toolButton_5" >
<property name="toolTip" >
<string>Zoom out</string>
</property>
<property name="text" >
<string>...</string>
</property>
@ -54,6 +57,9 @@
</item>
<item row="1" column="3" >
<widget class="QSlider" name="scaleSlider" >
<property name="toolTip" >
<string>Adjust zoom</string>
</property>
<property name="minimum" >
<number>50</number>
</property>
@ -76,6 +82,9 @@
</item>
<item row="2" column="3" >
<widget class="QToolButton" name="toolButton_4" >
<property name="toolTip" >
<string>Zoom in</string>
</property>
<property name="icon" >
<iconset resource="resources.qrc" >
<normaloff>:/zoomin.png</normaloff>:/zoomin.png</iconset>
@ -88,8 +97,11 @@
</property>
</widget>
</item>
<item row="3" column="0" >
<item row="4" column="0" >
<widget class="QToolButton" name="toolButton" >
<property name="toolTip" >
<string>Rotate anti-clockwise</string>
</property>
<property name="icon" >
<iconset resource="resources.qrc" >
<normaloff>:/rotateleft.png</normaloff>:/rotateleft.png</iconset>
@ -102,8 +114,11 @@
</property>
</widget>
</item>
<item row="3" column="1" >
<item row="4" column="1" >
<widget class="QSlider" name="rotateSlider" >
<property name="toolTip" >
<string>Adjust Rotation</string>
</property>
<property name="maximum" >
<number>360</number>
</property>
@ -112,8 +127,11 @@
</property>
</widget>
</item>
<item row="3" column="2" >
<item row="4" column="2" >
<widget class="QToolButton" name="toolButton_2" >
<property name="toolTip" >
<string>Rotate clockwise</string>
</property>
<property name="icon" >
<iconset resource="resources.qrc" >
<normaloff>:/rotateright.png</normaloff>:/rotateright.png</iconset>
@ -134,10 +152,10 @@
<item>
<widget class="QLabel" name="lblSymbology" >
<property name="text" >
<string>&amp;Symbology:</string>
<string>S&amp;ymbology:</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="buddy" >
<cstring>bstyle</cstring>
@ -152,6 +170,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip" >
<string>Select type of barcode to generate.</string>
</property>
</widget>
</item>
</layout>
@ -195,11 +216,14 @@
</sizepolicy>
</property>
<property name="title" >
<string>Data to Encode</string>
<string>&amp;Data to Encode</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4" >
<item>
<widget class="QLineEdit" name="txtData" >
<property name="toolTip" >
<string>Enter data to be encoded.</string>
</property>
<property name="text" >
<string>Your Data Here!</string>
</property>
@ -239,8 +263,11 @@
<layout class="QHBoxLayout" name="horizontalLayout_2" >
<item>
<widget class="QCheckBox" name="chkComposite" >
<property name="toolTip" >
<string>Create a composite symbol.</string>
</property>
<property name="text" >
<string>&amp;Add 2D Component</string>
<string>Add &amp;2D Component</string>
</property>
</widget>
</item>
@ -263,7 +290,7 @@
<bool>false</bool>
</property>
<property name="text" >
<string>Component T&amp;ype:</string>
<string>Component &amp;Type:</string>
</property>
<property name="buddy" >
<cstring>cmbCompType</cstring>
@ -307,7 +334,7 @@
<bool>false</bool>
</property>
<property name="text" >
<string>&amp;2D Component Data:</string>
<string>2D Component Data:</string>
</property>
<property name="buddy" >
<cstring>txtComposite</cstring>
@ -331,6 +358,9 @@
<height>60</height>
</size>
</property>
<property name="toolTip" >
<string/>
</property>
<property name="html" >
<string>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
@ -355,8 +385,8 @@ p, li { white-space: pre-wrap; }
<rect>
<x>0</x>
<y>0</y>
<width>534</width>
<height>324</height>
<width>727</width>
<height>243</height>
</rect>
</property>
<attribute name="title" >
@ -370,41 +400,34 @@ p, li { white-space: pre-wrap; }
<item row="0" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Height:</string>
<string>&amp;Height:</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QSpinBox" name="heightb" >
<property name="suffix" >
<string> X</string>
</property>
<property name="prefix" >
<string/>
</property>
<property name="maximum" >
<number>300</number>
</property>
<property name="value" >
<number>50</number>
<property name="buddy" >
<cstring>heightb</cstring>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_8" >
<property name="text" >
<string>Border width:</string>
<string>B&amp;order Width:</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="buddy" >
<cstring>bwidth</cstring>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QSpinBox" name="bwidth" >
<property name="toolTip" >
<string>Adjust width of boundary bars or border.</string>
</property>
<property name="suffix" >
<string> X</string>
</property>
@ -422,15 +445,21 @@ p, li { white-space: pre-wrap; }
<item row="2" column="0" >
<widget class="QLabel" name="lblWhitespace" >
<property name="text" >
<string>Whitespace:</string>
<string>&amp;Whitespace:</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="buddy" >
<cstring>spnWhitespace</cstring>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QSpinBox" name="spnWhitespace" >
<property name="toolTip" >
<string>Adjust whitespace to left and right of barcode.</string>
</property>
<property name="suffix" >
<string> X</string>
</property>
@ -439,15 +468,21 @@ p, li { white-space: pre-wrap; }
<item row="3" column="0" >
<widget class="QLabel" name="lblScale" >
<property name="text" >
<string>Printing Scale:</string>
<string>&amp;Printing Scale:</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="buddy" >
<cstring>spnScale</cstring>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QDoubleSpinBox" name="spnScale" >
<property name="toolTip" >
<string>Adjust image size when output to file.</string>
</property>
<property name="suffix" >
<string/>
</property>
@ -468,6 +503,25 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QSpinBox" name="heightb" >
<property name="toolTip" >
<string>Adjust overall symbol height.</string>
</property>
<property name="suffix" >
<string> X</string>
</property>
<property name="prefix" >
<string/>
</property>
<property name="maximum" >
<number>300</number>
</property>
<property name="value" >
<number>50</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
@ -475,10 +529,13 @@ p, li { white-space: pre-wrap; }
<item row="0" column="0" >
<widget class="QLabel" name="label_9" >
<property name="text" >
<string>Border type:</string>
<string>Border Ty&amp;pe:</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="buddy" >
<cstring>btype</cstring>
</property>
</widget>
</item>
@ -503,15 +560,18 @@ p, li { white-space: pre-wrap; }
</item>
<item row="1" column="0" colspan="2" >
<widget class="QPushButton" name="bgcolor" >
<property name="toolTip" >
<string/>
</property>
<property name="text" >
<string>Backgound Colour</string>
<string>&amp;Backgound Colour</string>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2" >
<widget class="QPushButton" name="fgcolor" >
<property name="text" >
<string>Foreground Colour</string>
<string>&amp;Foreground Colour</string>
</property>
</widget>
</item>
@ -541,7 +601,17 @@ p, li { white-space: pre-wrap; }
<item>
<widget class="QPushButton" name="btnAbout" >
<property name="text" >
<string>About</string>
<string>&amp;About Zint</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnReset" >
<property name="toolTip" >
<string>Reset zoom, rotation and colour.</string>
</property>
<property name="text" >
<string>&amp;Reset Preview</string>
</property>
</widget>
</item>
@ -560,8 +630,11 @@ p, li { white-space: pre-wrap; }
</item>
<item>
<widget class="QPushButton" name="btnSave" >
<property name="toolTip" >
<string>Save barcode image to file.</string>
</property>
<property name="text" >
<string>Save</string>
<string>&amp;Save</string>
</property>
</widget>
</item>
@ -583,7 +656,24 @@ p, li { white-space: pre-wrap; }
<tabstop>chkComposite</tabstop>
<tabstop>cmbCompType</tabstop>
<tabstop>txtComposite</tabstop>
<tabstop>btnAbout</tabstop>
<tabstop>btnReset</tabstop>
<tabstop>btnSave</tabstop>
<tabstop>btnExit</tabstop>
<tabstop>heightb</tabstop>
<tabstop>bwidth</tabstop>
<tabstop>spnWhitespace</tabstop>
<tabstop>spnScale</tabstop>
<tabstop>btype</tabstop>
<tabstop>bgcolor</tabstop>
<tabstop>fgcolor</tabstop>
<tabstop>view</tabstop>
<tabstop>toolButton_5</tabstop>
<tabstop>scaleSlider</tabstop>
<tabstop>toolButton_4</tabstop>
<tabstop>toolButton</tabstop>
<tabstop>rotateSlider</tabstop>
<tabstop>toolButton_2</tabstop>
</tabstops>
<resources>
<include location="resources.qrc" />