Move maxicode options to options tab

This commit is contained in:
hooper114 2009-05-26 23:07:16 +00:00
parent db87cda5a4
commit d593111979
5 changed files with 383 additions and 261 deletions

View file

@ -10,7 +10,8 @@ QT4_WRAP_CPP(QZint_frontend_SRCS mainwindow.h)
QT4_WRAP_UI(QZint_frontend_SRCS mainWindow.ui ) QT4_WRAP_UI(QZint_frontend_SRCS mainWindow.ui )
# grpAztec.ui grpC39.ui grpDM.ui grpMSICheck.ui # grpAztec.ui grpC39.ui grpDM.ui grpMSICheck.ui
# grpC128.ui grpChannel.ui grpMicroPDF.ui grpPDF417.ui # grpC128.ui grpChannel.ui grpMicroPDF.ui grpPDF417.ui
# grpC16k.ui grpCodablock.ui grpMQR.ui grpQR.ui) # grpC16k.ui grpCodablock.ui grpMQR.ui grpQR.ui
# grpMaxicode.ui)
QT4_ADD_RESOURCES(QZint_frontend_SRCS resources.qrc) QT4_ADD_RESOURCES(QZint_frontend_SRCS resources.qrc)

108
frontend_qt4/grpMaxicode.ui Normal file
View file

@ -0,0 +1,108 @@
<ui version="4.0" >
<class>Form</class>
<widget class="QWidget" name="Form" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>436</width>
<height>180</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<widget class="QWidget" name="gridLayoutWidget" >
<property name="geometry" >
<rect>
<x>18</x>
<y>15</y>
<width>400</width>
<height>69</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout" >
<item row="0" column="1" >
<widget class="QComboBox" name="cmbMaxiMode" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="currentIndex" >
<number>1</number>
</property>
<item>
<property name="text" >
<string>Structured Carrier Message (Mode 2 or 3)</string>
</property>
</item>
<item>
<property name="text" >
<string>Standard Symbol, SEC (Mode 4)</string>
</property>
</item>
<item>
<property name="text" >
<string>Full ECC Symbol (Mode 5)</string>
</property>
</item>
<item>
<property name="text" >
<string>Reader Program, SEC (Mode 6)</string>
</property>
</item>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLineEdit" name="txtMaxiPrimary" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Primary Data Here!</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="lblMaxiMode" >
<property name="text" >
<string>Encoding Mode:</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="lblMaxiPrimary" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Primary Data:</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections/>
</ui>

View file

@ -1,28 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0" >
<ui version="4.0">
<class>mainWindow</class> <class>mainWindow</class>
<widget class="QWidget" name="mainWindow"> <widget class="QWidget" name="mainWindow" >
<property name="geometry"> <property name="geometry" >
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>556</width> <width>749</width>
<height>893</height> <height>741</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="maximumSize" >
<size>
<width>800</width>
<height>800</height>
</size>
</property>
<property name="windowTitle" >
<string>Zint Barcode Studio</string> <string>Zint Barcode Studio</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_5"> <layout class="QVBoxLayout" name="verticalLayout_5" >
<item> <item>
<widget class="QGroupBox" name="groupPreview"> <widget class="QGroupBox" name="groupPreview" >
<property name="title"> <property name="title" >
<string>Preview</string> <string>Preview</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QGridLayout" name="gridLayout_2" >
<item row="0" column="0" rowspan="3" colspan="3"> <item rowspan="3" row="0" column="0" colspan="3" >
<widget class="QGraphicsView" name="view"> <widget class="QGraphicsView" name="view" >
<property name="minimumSize"> <property name="minimumSize" >
<size> <size>
<width>0</width> <width>0</width>
<height>300</height> <height>300</height>
@ -30,16 +35,16 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="3"> <item row="0" column="3" >
<widget class="QToolButton" name="toolButton_5"> <widget class="QToolButton" name="toolButton_5" >
<property name="text"> <property name="text" >
<string>...</string> <string>...</string>
</property> </property>
<property name="icon"> <property name="icon" >
<iconset resource="resources.qrc"> <iconset resource="resources.qrc" >
<normaloff>:/zoomout.png</normaloff>:/zoomout.png</iconset> <normaloff>:/zoomout.png</normaloff>:/zoomout.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize" >
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>
@ -47,35 +52,35 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="3"> <item row="1" column="3" >
<widget class="QSlider" name="scaleSlider"> <widget class="QSlider" name="scaleSlider" >
<property name="minimum"> <property name="minimum" >
<number>50</number> <number>50</number>
</property> </property>
<property name="maximum"> <property name="maximum" >
<number>400</number> <number>400</number>
</property> </property>
<property name="value"> <property name="value" >
<number>100</number> <number>100</number>
</property> </property>
<property name="orientation"> <property name="orientation" >
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="invertedAppearance"> <property name="invertedAppearance" >
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="invertedControls"> <property name="invertedControls" >
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="3"> <item row="2" column="3" >
<widget class="QToolButton" name="toolButton_4"> <widget class="QToolButton" name="toolButton_4" >
<property name="icon"> <property name="icon" >
<iconset resource="resources.qrc"> <iconset resource="resources.qrc" >
<normaloff>:/zoomin.png</normaloff>:/zoomin.png</iconset> <normaloff>:/zoomin.png</normaloff>:/zoomin.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize" >
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>
@ -83,13 +88,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0"> <item row="3" column="0" >
<widget class="QToolButton" name="toolButton"> <widget class="QToolButton" name="toolButton" >
<property name="icon"> <property name="icon" >
<iconset resource="resources.qrc"> <iconset resource="resources.qrc" >
<normaloff>:/rotateleft.png</normaloff>:/rotateleft.png</iconset> <normaloff>:/rotateleft.png</normaloff>:/rotateleft.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize" >
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>
@ -97,23 +102,23 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="3" column="1" >
<widget class="QSlider" name="rotateSlider"> <widget class="QSlider" name="rotateSlider" >
<property name="maximum"> <property name="maximum" >
<number>360</number> <number>360</number>
</property> </property>
<property name="orientation"> <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="2"> <item row="3" column="2" >
<widget class="QToolButton" name="toolButton_2"> <widget class="QToolButton" name="toolButton_2" >
<property name="icon"> <property name="icon" >
<iconset resource="resources.qrc"> <iconset resource="resources.qrc" >
<normaloff>:/rotateright.png</normaloff>:/rotateright.png</iconset> <normaloff>:/rotateright.png</normaloff>:/rotateright.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize" >
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>
@ -125,44 +130,77 @@
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_5"> <layout class="QHBoxLayout" name="horizontalLayout_5" >
<item> <item>
<widget class="QLabel" name="lblSymbology"> <widget class="QLabel" name="lblSymbology" >
<property name="text"> <property name="text" >
<string>&amp;Symbology:</string> <string>&amp;Symbology:</string>
</property> </property>
<property name="alignment"> <property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
<property name="buddy"> <property name="buddy" >
<cstring>bstyle</cstring> <cstring>bstyle</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="bstyle"/> <widget class="QComboBox" name="bstyle" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item> </item>
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QTabWidget" name="tabMain"> <widget class="QTabWidget" name="tabMain" >
<property name="currentIndex"> <property name="sizePolicy" >
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>350</height>
</size>
</property>
<property name="currentIndex" >
<number>0</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="tabGeneral"> <widget class="QWidget" name="tabGeneral" >
<attribute name="title"> <property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>727</width>
<height>248</height>
</rect>
</property>
<attribute name="title" >
<string>General</string> <string>General</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3" >
<item> <item>
<widget class="QGroupBox" name="grpData"> <widget class="QGroupBox" name="grpData" >
<property name="title"> <property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Data to Encode</string> <string>Data to Encode</string>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_4"> <layout class="QHBoxLayout" name="horizontalLayout_4" >
<item> <item>
<widget class="QLineEdit" name="txtData"> <widget class="QLineEdit" name="txtData" >
<property name="text"> <property name="text" >
<string>Your Data Here!</string> <string>Your Data Here!</string>
</property> </property>
</widget> </widget>
@ -171,95 +209,47 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="grpMaxiCode"> <widget class="QGroupBox" name="grpComposite" >
<property name="title"> <property name="enabled" >
<string>Maxicode</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="lblMaxiMode">
<property name="text">
<string>Encoding Mode:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="cmbMaxiMode">
<property name="currentIndex">
<number>1</number>
</property>
<item>
<property name="text">
<string>Structured Carrier Message (Mode 2 or 3)</string>
</property>
</item>
<item>
<property name="text">
<string>Standard Symbol, SEC (Mode 4)</string>
</property>
</item>
<item>
<property name="text">
<string>Full ECC Symbol (Mode 5)</string>
</property>
</item>
<item>
<property name="text">
<string>Reader Program, SEC (Mode 6)</string>
</property>
</item>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="lblMaxiPrimary">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Primary Data:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="txtMaxiPrimary">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Primary Data Here!</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="grpComposite">
<property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="title"> <property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>400</height>
</size>
</property>
<property name="title" >
<string>Composite Code</string> <string>Composite Code</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2" >
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2" >
<item> <item>
<widget class="QCheckBox" name="chkComposite"> <widget class="QCheckBox" name="chkComposite" >
<property name="text"> <property name="text" >
<string>&amp;Add 2D Component</string> <string>&amp;Add 2D Component</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<spacer name="horizontalSpacer"> <spacer name="horizontalSpacer" >
<property name="orientation"> <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0" >
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -268,40 +258,40 @@
</spacer> </spacer>
</item> </item>
<item> <item>
<widget class="QLabel" name="lblCompType"> <widget class="QLabel" name="lblCompType" >
<property name="enabled"> <property name="enabled" >
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="text" >
<string>Component T&amp;ype:</string> <string>Component T&amp;ype:</string>
</property> </property>
<property name="buddy"> <property name="buddy" >
<cstring>cmbCompType</cstring> <cstring>cmbCompType</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="cmbCompType"> <widget class="QComboBox" name="cmbCompType" >
<property name="enabled"> <property name="enabled" >
<bool>false</bool> <bool>false</bool>
</property> </property>
<item> <item>
<property name="text"> <property name="text" >
<string>Automatic</string> <string>Automatic</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text" >
<string>CC-A</string> <string>CC-A</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text" >
<string>CC-B</string> <string>CC-B</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text" >
<string>CC-C</string> <string>CC-C</string>
</property> </property>
</item> </item>
@ -310,33 +300,45 @@
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout" >
<item> <item>
<widget class="QLabel" name="lblComposite"> <widget class="QLabel" name="lblComposite" >
<property name="enabled"> <property name="enabled" >
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="text" >
<string>&amp;2D Component Data:</string> <string>&amp;2D Component Data:</string>
</property> </property>
<property name="buddy"> <property name="buddy" >
<cstring>txtComposite</cstring> <cstring>txtComposite</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QTextEdit" name="txtComposite"> <widget class="QTextEdit" name="txtComposite" >
<property name="enabled"> <property name="enabled" >
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="html"> <property name="sizePolicy" >
<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; <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
&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; <horstretch>0</horstretch>
p, li { white-space: pre-wrap; } <verstretch>0</verstretch>
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt; </sizepolicy>
&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="maximumSize" >
<size>
<width>16777215</width>
<height>60</height>
</size>
</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">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'DejaVu Sans';">&lt;span style=" font-family:'Sans Serif';">Your Data Here!&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
</property>
<property name="acceptRichText" >
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
@ -348,112 +350,120 @@ p, li { white-space: pre-wrap; }
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="tabAppear"> <widget class="QWidget" name="tabAppear" >
<attribute name="title"> <property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>534</width>
<height>324</height>
</rect>
</property>
<attribute name="title" >
<string>Appearance</string> <string>Appearance</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_4"> <layout class="QVBoxLayout" name="verticalLayout_4" >
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_6"> <layout class="QHBoxLayout" name="horizontalLayout_6" >
<item> <item>
<layout class="QGridLayout" name="gridLayout_3"> <layout class="QGridLayout" name="gridLayout_3" >
<item row="0" column="0"> <item row="0" column="0" >
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3" >
<property name="text"> <property name="text" >
<string>Height:</string> <string>Height:</string>
</property> </property>
<property name="alignment"> <property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1" >
<widget class="QSpinBox" name="heightb"> <widget class="QSpinBox" name="heightb" >
<property name="suffix"> <property name="suffix" >
<string> X</string> <string> X</string>
</property> </property>
<property name="prefix"> <property name="prefix" >
<string/> <string/>
</property> </property>
<property name="maximum"> <property name="maximum" >
<number>300</number> <number>300</number>
</property> </property>
<property name="value"> <property name="value" >
<number>50</number> <number>50</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="0" >
<widget class="QLabel" name="label_8"> <widget class="QLabel" name="label_8" >
<property name="text"> <property name="text" >
<string>Border width:</string> <string>Border width:</string>
</property> </property>
<property name="alignment"> <property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="1" column="1" >
<widget class="QSpinBox" name="bwidth"> <widget class="QSpinBox" name="bwidth" >
<property name="suffix"> <property name="suffix" >
<string> X</string> <string> X</string>
</property> </property>
<property name="minimum"> <property name="minimum" >
<number>0</number> <number>0</number>
</property> </property>
<property name="maximum"> <property name="maximum" >
<number>16</number> <number>16</number>
</property> </property>
<property name="value"> <property name="value" >
<number>0</number> <number>0</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="2" column="0" >
<widget class="QLabel" name="lblWhitespace"> <widget class="QLabel" name="lblWhitespace" >
<property name="text"> <property name="text" >
<string>Whitespace:</string> <string>Whitespace:</string>
</property> </property>
<property name="alignment"> <property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="1" >
<widget class="QSpinBox" name="spnWhitespace"> <widget class="QSpinBox" name="spnWhitespace" >
<property name="suffix"> <property name="suffix" >
<string> X</string> <string> X</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0"> <item row="3" column="0" >
<widget class="QLabel" name="lblScale"> <widget class="QLabel" name="lblScale" >
<property name="text"> <property name="text" >
<string>Printing Scale:</string> <string>Printing Scale:</string>
</property> </property>
<property name="alignment"> <property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="3" column="1" >
<widget class="QDoubleSpinBox" name="spnScale"> <widget class="QDoubleSpinBox" name="spnScale" >
<property name="suffix"> <property name="suffix" >
<string/> <string/>
</property> </property>
<property name="decimals"> <property name="decimals" >
<number>2</number> <number>2</number>
</property> </property>
<property name="minimum"> <property name="minimum" >
<double>0.500000000000000</double> <double>0.500000000000000</double>
</property> </property>
<property name="maximum"> <property name="maximum" >
<double>99.500000000000000</double> <double>99.500000000000000</double>
</property> </property>
<property name="singleStep"> <property name="singleStep" >
<double>0.500000000000000</double> <double>0.500000000000000</double>
</property> </property>
<property name="value"> <property name="value" >
<double>1.000000000000000</double> <double>1.000000000000000</double>
</property> </property>
</widget> </widget>
@ -461,46 +471,46 @@ p, li { white-space: pre-wrap; }
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QGridLayout" name="gridLayout_4"> <layout class="QGridLayout" name="gridLayout_4" >
<item row="0" column="0"> <item row="0" column="0" >
<widget class="QLabel" name="label_9"> <widget class="QLabel" name="label_9" >
<property name="text"> <property name="text" >
<string>Border type:</string> <string>Border type:</string>
</property> </property>
<property name="alignment"> <property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1" >
<widget class="QComboBox" name="btype"> <widget class="QComboBox" name="btype" >
<item> <item>
<property name="text"> <property name="text" >
<string>No border</string> <string>No border</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text" >
<string>Bind</string> <string>Bind</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text" >
<string>Box</string> <string>Box</string>
</property> </property>
</item> </item>
</widget> </widget>
</item> </item>
<item row="1" column="0" colspan="2"> <item row="1" column="0" colspan="2" >
<widget class="QPushButton" name="bgcolor"> <widget class="QPushButton" name="bgcolor" >
<property name="text"> <property name="text" >
<string>Backgound Colour</string> <string>Backgound Colour</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="2"> <item row="2" column="0" colspan="2" >
<widget class="QPushButton" name="fgcolor"> <widget class="QPushButton" name="fgcolor" >
<property name="text"> <property name="text" >
<string>Foreground Colour</string> <string>Foreground Colour</string>
</property> </property>
</widget> </widget>
@ -510,11 +520,11 @@ p, li { white-space: pre-wrap; }
</layout> </layout>
</item> </item>
<item> <item>
<spacer name="verticalSpacer"> <spacer name="verticalSpacer" >
<property name="orientation"> <property name="orientation" >
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0" >
<size> <size>
<width>20</width> <width>20</width>
<height>228</height> <height>228</height>
@ -527,20 +537,20 @@ p, li { white-space: pre-wrap; }
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout" >
<item> <item>
<widget class="QPushButton" name="btnAbout"> <widget class="QPushButton" name="btnAbout" >
<property name="text"> <property name="text" >
<string>About</string> <string>About</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<spacer name="horizontalSpacer_2"> <spacer name="horizontalSpacer_2" >
<property name="orientation"> <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0" >
<size> <size>
<width>288</width> <width>288</width>
<height>20</height> <height>20</height>
@ -549,25 +559,25 @@ p, li { white-space: pre-wrap; }
</spacer> </spacer>
</item> </item>
<item> <item>
<widget class="QPushButton" name="btnSave"> <widget class="QPushButton" name="btnSave" >
<property name="text"> <property name="text" >
<string>Save</string> <string>Save</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="btnCopy"> <widget class="QPushButton" name="btnCopy" >
<property name="enabled"> <property name="enabled" >
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="text" >
<string>Copy</string> <string>Copy</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="btnExit"> <widget class="QPushButton" name="btnExit" >
<property name="text"> <property name="text" >
<string>E&amp;xit</string> <string>E&amp;xit</string>
</property> </property>
</widget> </widget>
@ -586,7 +596,7 @@ p, li { white-space: pre-wrap; }
<tabstop>view</tabstop> <tabstop>view</tabstop>
</tabstops> </tabstops>
<resources> <resources>
<include location="resources.qrc"/> <include location="resources.qrc" />
</resources> </resources>
<connections> <connections>
<connection> <connection>
@ -595,11 +605,11 @@ p, li { white-space: pre-wrap; }
<receiver>rotateSlider</receiver> <receiver>rotateSlider</receiver>
<slot>subtractStep()</slot> <slot>subtractStep()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel" >
<x>29</x> <x>29</x>
<y>265</y> <y>265</y>
</hint> </hint>
<hint type="destinationlabel"> <hint type="destinationlabel" >
<x>76</x> <x>76</x>
<y>265</y> <y>265</y>
</hint> </hint>
@ -611,11 +621,11 @@ p, li { white-space: pre-wrap; }
<receiver>rotateSlider</receiver> <receiver>rotateSlider</receiver>
<slot>addStep()</slot> <slot>addStep()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel" >
<x>491</x> <x>491</x>
<y>260</y> <y>260</y>
</hint> </hint>
<hint type="destinationlabel"> <hint type="destinationlabel" >
<x>431</x> <x>431</x>
<y>260</y> <y>260</y>
</hint> </hint>
@ -627,11 +637,11 @@ p, li { white-space: pre-wrap; }
<receiver>scaleSlider</receiver> <receiver>scaleSlider</receiver>
<slot>addStep()</slot> <slot>addStep()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel" >
<x>532</x> <x>532</x>
<y>231</y> <y>231</y>
</hint> </hint>
<hint type="destinationlabel"> <hint type="destinationlabel" >
<x>528</x> <x>528</x>
<y>191</y> <y>191</y>
</hint> </hint>
@ -643,11 +653,11 @@ p, li { white-space: pre-wrap; }
<receiver>scaleSlider</receiver> <receiver>scaleSlider</receiver>
<slot>subtractStep()</slot> <slot>subtractStep()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel" >
<x>530</x> <x>530</x>
<y>56</y> <y>56</y>
</hint> </hint>
<hint type="destinationlabel"> <hint type="destinationlabel" >
<x>530</x> <x>530</x>
<y>94</y> <y>94</y>
</hint> </hint>

View file

@ -119,9 +119,6 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags fl)
connect(cmbCompType, SIGNAL(currentIndexChanged( int )), SLOT(update_preview())); connect(cmbCompType, SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(rotateSlider, SIGNAL(valueChanged(int)), SLOT(scaleRotate())); connect(rotateSlider, SIGNAL(valueChanged(int)), SLOT(scaleRotate()));
connect(scaleSlider, SIGNAL(valueChanged(int)), SLOT(scaleRotate())); connect(scaleSlider, SIGNAL(valueChanged(int)), SLOT(scaleRotate()));
connect(cmbMaxiMode, SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(cmbMaxiMode, SIGNAL(currentIndexChanged( int )), SLOT(maxi_primary()));
connect(txtMaxiPrimary, SIGNAL(textChanged( const QString& )), SLOT(update_preview()));
connect(spnWhitespace, SIGNAL(valueChanged( int )), SLOT(update_preview())); connect(spnWhitespace, SIGNAL(valueChanged( int )), SLOT(update_preview()));
connect(btnAbout, SIGNAL(clicked( bool )), SLOT(about())); connect(btnAbout, SIGNAL(clicked( bool )), SLOT(about()));
connect(btnSave, SIGNAL(clicked( bool )), SLOT(save())); connect(btnSave, SIGNAL(clicked( bool )), SLOT(save()));
@ -397,12 +394,15 @@ void MainWindow::change_options()
if(metaObject()->enumerator(0).value(bstyle->currentIndex()) == BARCODE_MAXICODE) if(metaObject()->enumerator(0).value(bstyle->currentIndex()) == BARCODE_MAXICODE)
{ {
QFile file(":/grpMaxiCode.ui"); QFile file(":/grpMaxicode.ui");
if (!file.open(QIODevice::ReadOnly)) if (!file.open(QIODevice::ReadOnly))
return; return;
m_optionWidget=uiload.load(&file); m_optionWidget=uiload.load(&file);
file.close(); file.close();
tabMain->insertTab(1,m_optionWidget,tr("Options")); tabMain->insertTab(1,m_optionWidget,tr("Options"));
connect(m_optionWidget->findChild<QObject*>("cmbMaxiMode"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("cmbMaxiMode"), SIGNAL(currentIndexChanged( int )), SLOT(maxi_primary()));
connect(m_optionWidget->findChild<QObject*>("txtMaxiPrimary"), SIGNAL(textChanged( const QString& )), SLOT(update_preview()));
} }
if(metaObject()->enumerator(0).value(bstyle->currentIndex()) == BARCODE_CHANNEL) if(metaObject()->enumerator(0).value(bstyle->currentIndex()) == BARCODE_CHANNEL)
@ -486,12 +486,14 @@ void MainWindow::datamatrix_options()
void MainWindow::maxi_primary() void MainWindow::maxi_primary()
{ {
if(cmbMaxiMode->currentIndex() == 0) { if (metaObject()->enumerator(0).value(bstyle->currentIndex())!=BARCODE_MAXICODE)
lblMaxiPrimary->setEnabled(true); return;
txtMaxiPrimary->setEnabled(true); if(m_optionWidget->findChild<QComboBox*>("cmbMaxiMode")->currentIndex() == 0) {
m_optionWidget->findChild<QLabel*>("lblMaxiPrimary")->setEnabled(true);
m_optionWidget->findChild<QLineEdit*>("txtMaxiPrimary")->setEnabled(true);
} else { } else {
lblMaxiPrimary->setEnabled(false); m_optionWidget->findChild<QLabel*>("lblMaxiPrimary")->setEnabled(false);
txtMaxiPrimary->setEnabled(false); m_optionWidget->findChild<QLineEdit*>("txtMaxiPrimary")->setEnabled(false);
} }
} }
@ -713,13 +715,13 @@ void MainWindow::update_preview()
case BARCODE_MAXICODE: case BARCODE_MAXICODE:
m_bc.bc.setSymbol(BARCODE_MAXICODE); m_bc.bc.setSymbol(BARCODE_MAXICODE);
if(cmbMaxiMode->currentIndex() == 0) if(m_optionWidget->findChild<QComboBox*>("cmbMaxiMode")->currentIndex() == 0)
{ {
m_bc.bc.setSecurityLevel(2); m_bc.bc.setSecurityLevel(2);
m_bc.bc.setPrimaryMessage(txtMaxiPrimary->text()); m_bc.bc.setPrimaryMessage(m_optionWidget->findChild<QLineEdit*>("txtMaxiPrimary")->text());
} }
else else
m_bc.bc.setSecurityLevel(cmbMaxiMode->currentIndex() + 3); m_bc.bc.setSecurityLevel(m_optionWidget->findChild<QComboBox*>("cmbMaxiMode")->currentIndex() + 3);
break; break;
case BARCODE_CHANNEL: case BARCODE_CHANNEL:

View file

@ -11,6 +11,7 @@
<file>grpC128.ui</file> <file>grpC128.ui</file>
<file>grpChannel.ui</file> <file>grpChannel.ui</file>
<file>grpMicroPDF.ui</file> <file>grpMicroPDF.ui</file>
<file>grpMaxicode.ui</file>
<file>grpPDF417.ui</file> <file>grpPDF417.ui</file>
<file>grpC16k.ui</file> <file>grpC16k.ui</file>
<file>grpCodablock.ui</file> <file>grpCodablock.ui</file>