summaryrefslogtreecommitdiffstats
path: root/kbarcode/barcodedialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'kbarcode/barcodedialog.h')
-rw-r--r--kbarcode/barcodedialog.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/kbarcode/barcodedialog.h b/kbarcode/barcodedialog.h
new file mode 100644
index 0000000..9490467
--- /dev/null
+++ b/kbarcode/barcodedialog.h
@@ -0,0 +1,79 @@
+/***************************************************************************
+ barcodedialog.h - description
+ -------------------
+ begin : Son Dez 29 2002
+ copyright : (C) 2002 by Dominik Seichter
+ email : domseichter@web.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef BARCODEDIALOG_H
+#define BARCODEDIALOG_H
+
+#include <qdialog.h>
+
+class BarcodeCombo;
+class BarcodeWidget;
+class KAction;
+class KColorButton;
+class KMenuBar;
+class KToolBar;
+class KIntNumInput;
+class KLineEdit;
+class KPushButton;
+class KPopupMenu;
+class QCheckBox;
+class QLabel;
+class QPixmap;
+class QVBoxLayout;
+class QHBoxLayout;
+class QGridLayout;
+class TokenProvider;
+
+/** This class provides a dialog, where the user can create a single barcode
+ * and print it, copy it to the clipboard or save it in various image formats.
+ * This dialog can also be seen as a powerful replacement for e.g. xbarcode.
+ *
+ * All barcoding features are available for the user. This dialog allows also
+ * to just experiment a little bit with barcodes.
+ */
+class BarCodeDialog : public QDialog
+{
+ Q_OBJECT
+
+ public:
+ BarCodeDialog( QWidget* parent = 0, const char* name = 0 );
+ ~BarCodeDialog();
+
+ private:
+ BarcodeWidget* widget;
+ TokenProvider* m_token;
+
+ KPushButton* buttonGenerate;
+ KPushButton* buttonPrint;
+ KPushButton* buttonSave;
+ KPushButton* buttonCopy;
+ KPushButton* buttonClose;
+ QLabel* barcode;
+
+ private slots:
+ void generate();
+ void save();
+ void print();
+ void copy();
+
+ protected:
+ QHBoxLayout* BarCodeDialogLayout;
+ QVBoxLayout* Layout6;
+ QVBoxLayout* Layout5;
+};
+
+#endif // BARCODEDIALOG_H