mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Add version information to zint.h and increment release version
Relates to #51
This commit is contained in:
parent
6115a3f8b6
commit
e7858dfe98
@ -10,7 +10,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|||||||
|
|
||||||
set (ZINT_VERSION_MAJOR 2)
|
set (ZINT_VERSION_MAJOR 2)
|
||||||
set (ZINT_VERSION_MINOR 5)
|
set (ZINT_VERSION_MINOR 5)
|
||||||
set (ZINT_VERSION_RELEASE 0)
|
set (ZINT_VERSION_RELEASE 1)
|
||||||
set (ZINT_VERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}.${ZINT_VERSION_RELEASE}" )
|
set (ZINT_VERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}.${ZINT_VERSION_RELEASE}" )
|
||||||
|
|
||||||
add_definitions (-DZINT_VERSION=\"${ZINT_VERSION}\" -Wall)
|
add_definitions (-DZINT_VERSION=\"${ZINT_VERSION}\" -Wall)
|
||||||
|
9
README
9
README
@ -76,6 +76,15 @@ Fix bugs in batch processing - this now works from the command line.
|
|||||||
Version 2.4.3:
|
Version 2.4.3:
|
||||||
Some Windows-only fixes and changes
|
Some Windows-only fixes and changes
|
||||||
|
|
||||||
|
Version 2.5.0:
|
||||||
|
Support for DotCode and Han Xin code. ECI code processing. Output to BMP, GIF
|
||||||
|
and PCX. Added bold and small text options. Reintroduction of Codablock-F.
|
||||||
|
Many minor fixes and improvements.
|
||||||
|
|
||||||
|
Version 2.5.1:
|
||||||
|
Numerous bugfixes, especially with Data Matrix thanks to extensive testing
|
||||||
|
by brunt@SF
|
||||||
|
|
||||||
|
|
||||||
CONTACT ME
|
CONTACT ME
|
||||||
----------
|
----------
|
||||||
|
@ -291,7 +291,7 @@ int ps_plot(struct zint_symbol *symbol) {
|
|||||||
|
|
||||||
/* Start writing the header */
|
/* Start writing the header */
|
||||||
fprintf(feps, "%%!PS-Adobe-3.0 EPSF-3.0\n");
|
fprintf(feps, "%%!PS-Adobe-3.0 EPSF-3.0\n");
|
||||||
fprintf(feps, "%%%%Creator: Zint %s\n", ZINT_VERSION);
|
fprintf(feps, "%%%%Creator: Zint %d.%d.%d\n", ZINT_VERSION_MAJOR, ZINT_VERSION_MINOR, ZINT_VERSION_RELEASE);
|
||||||
if ((ustrlen(local_text) != 0) && (symbol->show_hrt != 0)) {
|
if ((ustrlen(local_text) != 0) && (symbol->show_hrt != 0)) {
|
||||||
fprintf(feps, "%%%%Title: %s\n", local_text);
|
fprintf(feps, "%%%%Title: %s\n", local_text);
|
||||||
} else {
|
} else {
|
||||||
|
@ -98,6 +98,9 @@ extern "C" {
|
|||||||
struct zint_render *rendered;
|
struct zint_render *rendered;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define ZINT_VERSION_MAJOR 2
|
||||||
|
#define ZINT_VERSION_MINOR 5
|
||||||
|
#define ZINT_VERSION_RELEASE 1
|
||||||
|
|
||||||
/* Tbarcode 7 codes */
|
/* Tbarcode 7 codes */
|
||||||
#define BARCODE_CODE11 1
|
#define BARCODE_CODE11 1
|
||||||
|
@ -72,7 +72,7 @@ void types(void) {
|
|||||||
|
|
||||||
/* Output usage information */
|
/* Output usage information */
|
||||||
void usage(void) {
|
void usage(void) {
|
||||||
printf( "Zint version %s\n"
|
printf( "Zint version %d.%d.%d\n"
|
||||||
"Encode input data in a barcode and save as a PNG, BMP, GIF, PCX, EPS or SVG file.\n\n"
|
"Encode input data in a barcode and save as a PNG, BMP, GIF, PCX, EPS or SVG file.\n\n"
|
||||||
" -b, --barcode=NUMBER Number of barcode type (default is 20 (=Code128)).\n"
|
" -b, --barcode=NUMBER Number of barcode type (default is 20 (=Code128)).\n"
|
||||||
" --batch Treat each line of input file as a separate data set\n"
|
" --batch Treat each line of input file as a separate data set\n"
|
||||||
@ -114,7 +114,7 @@ void usage(void) {
|
|||||||
" -t, --types Display table of barcode types\n"
|
" -t, --types Display table of barcode types\n"
|
||||||
" --vers=NUMBER Set symbol version (QR Code/Han Xin)\n"
|
" --vers=NUMBER Set symbol version (QR Code/Han Xin)\n"
|
||||||
" -w, --whitesp=NUMBER Set Width of whitespace in multiples of x-dimension\n"
|
" -w, --whitesp=NUMBER Set Width of whitespace in multiples of x-dimension\n"
|
||||||
, ZINT_VERSION);
|
, ZINT_VERSION_MAJOR, ZINT_VERSION_MINOR, ZINT_VERSION_RELEASE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Display supported ECI codes */
|
/* Display supported ECI codes */
|
||||||
|
@ -172,7 +172,7 @@ bool MainWindow::save()
|
|||||||
void MainWindow::about()
|
void MainWindow::about()
|
||||||
{
|
{
|
||||||
QMessageBox::about(this, tr("About Zint"),
|
QMessageBox::about(this, tr("About Zint"),
|
||||||
tr("<h2>Zint Barcode Studio 2.5</h2>"
|
tr("<h2>Zint Barcode Studio 2.5.1</h2>"
|
||||||
"<p>A free barcode generator"
|
"<p>A free barcode generator"
|
||||||
"<p>Instruction manual is available from Sourceforge:"
|
"<p>Instruction manual is available from Sourceforge:"
|
||||||
"<p>http://www.sourceforge.net/projects/zint"
|
"<p>http://www.sourceforge.net/projects/zint"
|
||||||
|
20
frontend_qt5/ZintUI/ZintUI.pro
Normal file
20
frontend_qt5/ZintUI/ZintUI.pro
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#-------------------------------------------------
|
||||||
|
#
|
||||||
|
# Project created by QtCreator 2016-11-27T10:20:27
|
||||||
|
#
|
||||||
|
#-------------------------------------------------
|
||||||
|
|
||||||
|
QT += core gui
|
||||||
|
|
||||||
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
|
TARGET = ZintUI
|
||||||
|
TEMPLATE = app
|
||||||
|
|
||||||
|
|
||||||
|
SOURCES += main.cpp\
|
||||||
|
mainwindow.cpp
|
||||||
|
|
||||||
|
HEADERS += mainwindow.h
|
||||||
|
|
||||||
|
FORMS += mainwindow.ui
|
11
frontend_qt5/ZintUI/main.cpp
Normal file
11
frontend_qt5/ZintUI/main.cpp
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#include "mainwindow.h"
|
||||||
|
#include <QApplication>
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
QApplication a(argc, argv);
|
||||||
|
MainWindow w;
|
||||||
|
w.show();
|
||||||
|
|
||||||
|
return a.exec();
|
||||||
|
}
|
14
frontend_qt5/ZintUI/mainwindow.cpp
Normal file
14
frontend_qt5/ZintUI/mainwindow.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include "mainwindow.h"
|
||||||
|
#include "ui_mainwindow.h"
|
||||||
|
|
||||||
|
MainWindow::MainWindow(QWidget *parent) :
|
||||||
|
QMainWindow(parent),
|
||||||
|
ui(new Ui::MainWindow)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
MainWindow::~MainWindow()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
22
frontend_qt5/ZintUI/mainwindow.h
Normal file
22
frontend_qt5/ZintUI/mainwindow.h
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#ifndef MAINWINDOW_H
|
||||||
|
#define MAINWINDOW_H
|
||||||
|
|
||||||
|
#include <QMainWindow>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class MainWindow;
|
||||||
|
}
|
||||||
|
|
||||||
|
class MainWindow : public QMainWindow
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit MainWindow(QWidget *parent = 0);
|
||||||
|
~MainWindow();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::MainWindow *ui;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // MAINWINDOW_H
|
24
frontend_qt5/ZintUI/mainwindow.ui
Normal file
24
frontend_qt5/ZintUI/mainwindow.ui
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<ui version="4.0">
|
||||||
|
<class>MainWindow</class>
|
||||||
|
<widget class="QMainWindow" name="MainWindow" >
|
||||||
|
<property name="geometry" >
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle" >
|
||||||
|
<string>MainWindow</string>
|
||||||
|
</property>
|
||||||
|
<widget class="QMenuBar" name="menuBar" />
|
||||||
|
<widget class="QToolBar" name="mainToolBar" />
|
||||||
|
<widget class="QWidget" name="centralWidget" />
|
||||||
|
<widget class="QStatusBar" name="statusBar" />
|
||||||
|
</widget>
|
||||||
|
<layoutDefault spacing="6" margin="11" />
|
||||||
|
<pixmapfunction></pixmapfunction>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
Loading…
Reference in New Issue
Block a user