mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Add DotCode options to Studio
This commit is contained in:
parent
2e11b5f8d3
commit
8783e43927
@ -488,7 +488,7 @@ namespace Zint {
|
|||||||
for (int c = 0; c < m_zintSymbol->width; c++) {
|
for (int c = 0; c < m_zintSymbol->width; c++) {
|
||||||
if (module_set(r, c)) {
|
if (module_set(r, c)) {
|
||||||
|
|
||||||
painter.drawEllipse(QPointF((r + 1.0), (c + 1.0)), 0.5, 0.5);
|
painter.drawEllipse(QPointF((c + 1.0), (r + 1.0)), 0.5, 0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,66 +1,67 @@
|
|||||||
######################################################################
|
######################################################################
|
||||||
# Automatically generated by qmake (2.01a) sub 29. kol 22:15:57 2009
|
# Automatically generated by qmake (2.01a) sub 29. kol 22:15:57 2009
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
TARGET = qtZint
|
TARGET = qtZint
|
||||||
DEPENDPATH += . debug release
|
DEPENDPATH += . debug release
|
||||||
INCLUDEPATH += .
|
INCLUDEPATH += .
|
||||||
|
|
||||||
# Input
|
# Input
|
||||||
HEADERS += barcodeitem.h \
|
HEADERS += barcodeitem.h \
|
||||||
datawindow.h \
|
datawindow.h \
|
||||||
exportwindow.h \
|
exportwindow.h \
|
||||||
mainwindow.h \
|
mainwindow.h \
|
||||||
sequencewindow.h
|
sequencewindow.h
|
||||||
|
|
||||||
FORMS += extData.ui \
|
FORMS += extData.ui \
|
||||||
extExport.ui \
|
extExport.ui \
|
||||||
extSequence.ui \
|
extSequence.ui \
|
||||||
grpAztec.ui \
|
grpAztec.ui \
|
||||||
grpC128.ui \
|
grpC128.ui \
|
||||||
grpC16k.ui \
|
grpC16k.ui \
|
||||||
grpC39.ui \
|
grpC39.ui \
|
||||||
grpC49.ui \
|
grpC49.ui \
|
||||||
grpChannel.ui \
|
grpChannel.ui \
|
||||||
grpCodeOne.ui \
|
grpCodeOne.ui \
|
||||||
grpDBExtend.ui \
|
grpDBExtend.ui \
|
||||||
grpDM.ui \
|
grpDM.ui \
|
||||||
grpGrid.ui \
|
grpGrid.ui \
|
||||||
grpMaxicode.ui \
|
grpMaxicode.ui \
|
||||||
grpMicroPDF.ui \
|
grpMicroPDF.ui \
|
||||||
grpMQR.ui \
|
grpMQR.ui \
|
||||||
grpMSICheck.ui \
|
grpMSICheck.ui \
|
||||||
grpPDF417.ui \
|
grpPDF417.ui \
|
||||||
grpQR.ui \
|
grpQR.ui \
|
||||||
grpHX.ui \
|
grpHX.ui \
|
||||||
mainWindow.ui
|
mainWindow.ui \
|
||||||
|
grpDotCode.ui
|
||||||
SOURCES += barcodeitem.cpp \
|
|
||||||
datawindow.cpp \
|
SOURCES += barcodeitem.cpp \
|
||||||
exportwindow.cpp \
|
datawindow.cpp \
|
||||||
main.cpp \
|
exportwindow.cpp \
|
||||||
mainwindow.cpp \
|
main.cpp \
|
||||||
sequencewindow.cpp
|
mainwindow.cpp \
|
||||||
|
sequencewindow.cpp
|
||||||
TRANSLATIONS = frontend_de.ts
|
|
||||||
|
TRANSLATIONS = frontend_de.ts
|
||||||
RESOURCES += resources.qrc
|
|
||||||
|
RESOURCES += resources.qrc
|
||||||
# Static target following http://qt-project.org/wiki/Build_Standalone_Qt_Application_for_Windows
|
|
||||||
CONFIG += static
|
# Static target following http://qt-project.org/wiki/Build_Standalone_Qt_Application_for_Windows
|
||||||
|
CONFIG += static
|
||||||
CONFIG += warn_on thread qt uitools
|
|
||||||
|
CONFIG += warn_on thread qt uitools
|
||||||
INCLUDEPATH += ../backend_qt4 ../backend
|
|
||||||
|
INCLUDEPATH += ../backend_qt4 ../backend
|
||||||
LIBS += -lqtzint -lQtCore
|
|
||||||
QMAKE_LIBDIR += ../backend_qt4/release
|
LIBS += -lqtzint -lQtCore
|
||||||
|
QMAKE_LIBDIR += ../backend_qt4/release
|
||||||
!contains(DEFINES, NO_PNG) {
|
|
||||||
LIBS += -llibpng -lzlib
|
!contains(DEFINES, NO_PNG) {
|
||||||
QMAKE_LIBDIR+=../../lpng\projects\visualc71_converted_to_9\Win32_LIB_Release ../../lpng\projects\visualc71_converted_to_9\Win32_LIB_Release\zlib
|
LIBS += -llibpng -lzlib
|
||||||
# LIBS += -llibpng16 -lzlib1
|
QMAKE_LIBDIR+=../../lpng\projects\visualc71_converted_to_9\Win32_LIB_Release ../../lpng\projects\visualc71_converted_to_9\Win32_LIB_Release\zlib
|
||||||
# QMAKE_LIBDIR+=../../lpng\projects\visualc71_converted_to_9\Win32_DLL_Release ../../lpng\projects\visualc71_converted_to_9\Win32_DLL_Release\zlib
|
# LIBS += -llibpng16 -lzlib1
|
||||||
}
|
# QMAKE_LIBDIR+=../../lpng\projects\visualc71_converted_to_9\Win32_DLL_Release ../../lpng\projects\visualc71_converted_to_9\Win32_DLL_Release\zlib
|
||||||
|
}
|
||||||
|
353
frontend_qt4/grpDotCode.ui
Normal file
353
frontend_qt4/grpDotCode.ui
Normal file
@ -0,0 +1,353 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>grpDotCode</class>
|
||||||
|
<widget class="QWidget" name="grpDotCode">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>390</width>
|
||||||
|
<height>223</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QComboBox" name="cmbDotCols">
|
||||||
|
<property name="maxVisibleItems">
|
||||||
|
<number>11</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Automatic</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>1</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>2</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>3</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>4</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>5</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>6</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>7</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>8</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>9</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>10</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>11</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>12</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>13</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>14</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>15</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>16</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>17</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>18</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>19</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>20</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>21</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>22</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>23</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>24</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>25</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>26</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>27</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>28</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>29</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>30</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>31</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>32</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>33</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>34</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>35</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>36</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>37</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>38</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>39</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>40</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>41</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>42</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>43</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>44</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>45</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>46</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>47</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>48</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>49</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>50</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="lblDotSize">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Dot Size:</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="lblDotCols">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Number of Data Columns:</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>cmbDotCols</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QLineEdit" name="txtDotSize">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>1.0</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QRadioButton" name="radDotStan">
|
||||||
|
<property name="text">
|
||||||
|
<string>Standard &Mode</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QRadioButton" name="radDotGs1">
|
||||||
|
<property name="text">
|
||||||
|
<string>GS-&1 Data Mode</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>52</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -56,7 +56,7 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags fl)
|
|||||||
"Data Matrix (ISO 16022)",
|
"Data Matrix (ISO 16022)",
|
||||||
"Deutsche Post Identcode",
|
"Deutsche Post Identcode",
|
||||||
"Deutsche Post Leitcode",
|
"Deutsche Post Leitcode",
|
||||||
"DotCode",
|
"DotCode",
|
||||||
"Dutch Post KIX",
|
"Dutch Post KIX",
|
||||||
"EAN-14",
|
"EAN-14",
|
||||||
"European Article Number (EAN)",
|
"European Article Number (EAN)",
|
||||||
@ -286,6 +286,19 @@ void MainWindow::change_options()
|
|||||||
connect(m_optionWidget->findChild<QObject*>("radMPDFStand"), SIGNAL(toggled( bool )), SLOT(update_preview()));
|
connect(m_optionWidget->findChild<QObject*>("radMPDFStand"), SIGNAL(toggled( bool )), SLOT(update_preview()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(metaObject()->enumerator(0).value(bstyle->currentIndex()) == BARCODE_DOTCODE)
|
||||||
|
{
|
||||||
|
QFile file(":/grpDotCode.ui");
|
||||||
|
if (!file.open(QIODevice::ReadOnly))
|
||||||
|
return;
|
||||||
|
m_optionWidget=uiload.load(&file);
|
||||||
|
file.close();
|
||||||
|
tabMain->insertTab(1,m_optionWidget,tr("DotCode"));
|
||||||
|
connect(m_optionWidget->findChild<QObject*>("cmbDotCols"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
|
||||||
|
connect(m_optionWidget->findChild<QObject*>("radDotStan"), SIGNAL(clicked( bool )), SLOT(update_preview()));
|
||||||
|
connect(m_optionWidget->findChild<QObject*>("radDotGs1"), SIGNAL(clicked( bool )), SLOT(update_preview()));
|
||||||
|
}
|
||||||
|
|
||||||
if(metaObject()->enumerator(0).value(bstyle->currentIndex()) == BARCODE_AZTEC)
|
if(metaObject()->enumerator(0).value(bstyle->currentIndex()) == BARCODE_AZTEC)
|
||||||
{
|
{
|
||||||
QFile file(":/grpAztec.ui");
|
QFile file(":/grpAztec.ui");
|
||||||
@ -679,6 +692,13 @@ void MainWindow::update_preview()
|
|||||||
m_bc.bc.setSymbol(BARCODE_HIBC_MICPDF);
|
m_bc.bc.setSymbol(BARCODE_HIBC_MICPDF);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case BARCODE_DOTCODE:
|
||||||
|
m_bc.bc.setSymbol(BARCODE_DOTCODE);
|
||||||
|
m_bc.bc.setWidth(m_optionWidget->findChild<QComboBox*>("cmbDotCols")->currentIndex());
|
||||||
|
if(m_optionWidget->findChild<QRadioButton*>("radDotGs1")->isChecked())
|
||||||
|
m_bc.bc.setInputMode(GS1_MODE);
|
||||||
|
break;
|
||||||
|
|
||||||
case BARCODE_AZTEC:
|
case BARCODE_AZTEC:
|
||||||
m_bc.bc.setSymbol(BARCODE_AZTEC);
|
m_bc.bc.setSymbol(BARCODE_AZTEC);
|
||||||
if(m_optionWidget->findChild<QRadioButton*>("radAztecSize")->isChecked())
|
if(m_optionWidget->findChild<QRadioButton*>("radAztecSize")->isChecked())
|
||||||
|
@ -22,5 +22,6 @@
|
|||||||
<file>grpDBExtend.ui</file>
|
<file>grpDBExtend.ui</file>
|
||||||
<file>images/zint.png</file>
|
<file>images/zint.png</file>
|
||||||
<file>grpHX.ui</file>
|
<file>grpHX.ui</file>
|
||||||
|
<file>grpDotCode.ui</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
Loading…
Reference in New Issue
Block a user