summaryrefslogtreecommitdiffstats
path: root/kbarcode/previewdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'kbarcode/previewdialog.h')
-rw-r--r--kbarcode/previewdialog.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/kbarcode/previewdialog.h b/kbarcode/previewdialog.h
new file mode 100644
index 0000000..db3c056
--- /dev/null
+++ b/kbarcode/previewdialog.h
@@ -0,0 +1,76 @@
+/***************************************************************************
+ previewdialog.h - description
+ -------------------
+ begin : Die Dez 10 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 PREVIEWDIALOG_H
+#define PREVIEWDIALOG_H
+
+#include <qdialog.h>
+#include <kabc/addressee.h>
+
+class Definition;
+class KComboBox;
+class KIntNumInput;
+class KLineEdit;
+class KPushButton;
+class QIODevice;
+class QLabel;
+class QWidget;
+class PreviewDialog : public QDialog {
+ Q_OBJECT
+ public:
+ PreviewDialog( QIODevice* device, Definition* d, QString filename, QWidget *parent=0, const char *name=0);
+ ~PreviewDialog();
+
+ private slots:
+ void updatechanges();
+ void customerNameChanged( int index );
+ void customerIdChanged( int index );
+ void setupSql();
+ void selectAddress();
+
+ private:
+ QLabel* preview;
+
+ KLineEdit* articleId;
+ KLineEdit* groupName;
+ KLineEdit* serialStart;
+ KLineEdit* lineAddr;
+
+ KIntNumInput* spinIndex;
+ KIntNumInput* serialInc;
+
+ KComboBox* customerName;
+ KComboBox* customerId;
+
+ KPushButton* buttonUpdate;
+ KPushButton* buttonClose;
+ KPushButton* buttonAddr;
+
+ KABC::Addressee m_address;
+
+ Definition* def;
+ QIODevice* file;
+
+ QString m_filename;
+
+ static int customer_index;
+ static int m_index;
+ static QString group;
+ static QString article;
+};
+
+#endif