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