/*************************************************************************** * Copyright (C) 2008 by BogDan Vatra * * bogdan@licentia.eu * * * * This program is free software: you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation, either version 3 of the License, or * * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * * along with this program. If not, see . * ***************************************************************************/ #ifndef MAINWINDOW_H #define MAINWINDOW_H #include #include #include "ui_mainWindow.h" #include "barcodeitem.h" class MainWindow : public QWidget, private Ui::mainWindow { Q_OBJECT Q_ENUMS(BarcodeTypes) public: enum BarcodeTypes { CODE11 =1, C25MATRIX =2, C25INTER =3, C25IATA =4, C25LOGIC =6, C25IND =7, CODE39 =8, EXCODE39 =9, EANX =13, EAN128 =16, CODABAR =18, CODE128 =20, DPLEIT =21, DPIDENT =22, CODE16K =23, CODE93 =25, FLAT =28, RSS14 =29, RSS_LTD =30, RSS_EXP =31, TELEPEN =32, UPCA =34, UPCE =37, POSTNET =40, MSI_PLESSEY =47, FIM =49, LOGMARS =50, PHARMA =51, PZN =52, PHARMA_TWO =53, PDF417 =55, PDF417TRUNC =56, MAXICODE =57, QRCODE =58, CODE128B =60, AUSPOST =63, AUSREPLY =66, AUSROUTE =67, AUSREDIRECT =68, ISBNX =69, RM4SCC =70, DATAMATRIX =71, EAN14 =72, CODABLOCKF =74, NVE18 =75, KOREAPOST =77, RSS14STACK =79, RSS14STACK_OMNI =80, RSS_EXPSTACK =81, PLANET =82, MICROPDF417 =84, ONECODE =85, PLESSEY =86, /* Tbarcode 8 codes */ TELEPEN_NUM =87, ITF14 =89, KIX =90, AZTEC =92, MICROQR =97, /* Tbarcode 9 codes */ HIBC_128 =98, HIBC_39 =99, HIBC_DM =102, HIBC_QR =104, HIBC_PDF =106, HIBC_MICPDF =108, HIBC_BLOCKF =110, /* Zint specific */ AZRUNE =128, CODE32 =129, EANX_CC =130, EAN128_CC =131, RSS14_CC =132, RSS_LTD_CC =133, RSS_EXP_CC =134, UPCA_CC =135, UPCE_CC =136, RSS14STACK_CC =137, RSS14_OMNI_CC =138, RSS_EXPSTACK_CC =139 }; public: MainWindow(QWidget* parent = 0, Qt::WFlags fl = 0); ~MainWindow(); public slots: void on_generate_clicked(); void on_fgcolor_clicked(); void on_bgcolor_clicked(); void on_zoomIn_clicked(); void on_zoomOut_clicked(); void on_rotateAc_clicked(); void on_rotateC_clicked(); void on_reset_clicked(); private: QColor m_fgcolor,m_bgcolor; BarcodeItem m_bc; }; #endif