You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
2.3 KiB
77 lines
2.3 KiB
/***************************************************************************
|
|
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
|