00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef HK_KDECSVexportDIALOG_H
00013 #define HK_KDECSVexportDIALOG_H
00014 #include "hk_kdecsvexportdialogbase.h"
00015 #include <qvariant.h>
00016 #include <qdialog.h>
00017 #include <hk_dsvisible.h>
00018 #include <hk_datasource.h>
00019 #include <hk_reportutils.h>
00020
00021 class QVBoxLayout;
00022 class QHBoxLayout;
00023 class QGridLayout;
00024 class QCheckBox;
00025 class QComboBox;
00026 class QLabel;
00027 class QLineEdit;
00028 class QPushButton;
00029 class QToolButton;
00030 class QProgressDialog;
00037 class hk_kdecsvexportdialog : public hk_kdecsvexportdialogbase ,public hk_reportcsv
00038 {
00039 Q_OBJECT
00040
00041 public:
00042 hk_kdecsvexportdialog(const QString& table, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00043 ~hk_kdecsvexportdialog();
00044
00045
00046 void set_usetablelist(void);
00047 void set_usequerylist(void);
00048 void set_useviewlist(void);
00049 void set_database(hk_database* d);
00050 public slots:
00051 virtual void help_clicked();
00052 virtual void listtype_changed();
00053 virtual void morebutton_clicked();
00054
00055 protected slots:
00056 virtual void filebutton_clicked();
00057 virtual void buttons_enabled();
00058 virtual void ok_clicked(void);
00059 void printing_cancelled(void);
00060
00061 protected:
00062 virtual void keyPressEvent ( QKeyEvent * e );
00063 static bool set_progress(long int,long int,const hk_string&);
00064 private:
00065
00066 static bool p_cancelimport;
00067 static QProgressDialog* p_progressdialog;
00068 void set_datasourcelist(void);
00069 QString p_file;
00070 QString p_tablename;
00071 QString p_tab;
00072 datasourcetype p_datasourcetype;
00073
00074 };
00075 #endif // HK_KDECSVexportDIALOG_H