00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef HK_KDECSVexportDIALOG_H
00013 #define HK_KDECSVexportDIALOG_H
00014
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;
00036 class hk_kdecsvexportdialog : public QDialog ,public hk_reportcsv
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 hk_kdecsvexportdialog(const QString& table, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00042 ~hk_kdecsvexportdialog();
00043
00044 QLabel* TextLabel1;
00045 QLineEdit* filefield;
00046 QToolButton* filebutton;
00047 QComboBox* tablelist;
00048 QLabel* TextLabel3;
00049 QCheckBox* firstrow;
00050 QLabel* TextLabel1_3;
00051 QLineEdit* textdelimiterfield;
00052 QLabel* TextLabel1_2;
00053 QLabel* TextLabel2;
00054 QComboBox* columnseparatorfield;
00055 QPushButton* buttonOk;
00056 QPushButton* buttonCancel;
00057 QPushButton* buttonHelp;
00058
00059 void set_usetablelist(void);
00060 void set_usequerylist(void);
00061 void set_useviewlist(void);
00062 void set_database(hk_database* d);
00063 protected slots:
00064 virtual void filebutton_clicked();
00065 virtual void buttons_enabled();
00066 virtual void ok_clicked(void);
00067
00068 protected:
00069 QHBoxLayout* hk_kdecsvexportdialogLayout;
00070 QVBoxLayout* Layout12;
00071 QHBoxLayout* Layout10;
00072 QGridLayout* Layout11;
00073 QVBoxLayout* Layout5;
00074 private:
00075
00076 void set_datasourcelist(void);
00077 QString p_file;
00078 QString p_tablename;
00079 QString p_tab;
00080 datasourcetype p_datasourcetype;
00081
00082 };
00083 #endif // HK_KDECSVexportDIALOG_H