00001 //LabPlot : ImportDialog.h 00002 00003 #ifndef IMPORTDIALOG_H 00004 #define IMPORTDIALOG_H 00005 00006 #include "FilterKexiDB.h" 00007 #include "Dialog.h" 00008 00010 class ImportDialog: public Dialog 00011 { 00012 Q_OBJECT 00013 public: 00014 ImportDialog(MainWin *mw, QString filename="", InputFilter filter=FUSER,const char *name=0); 00015 private slots : 00016 int apply_clicked(); 00017 void wizardKexiDB(const QString &name); 00018 void finishKexiDB(); 00019 public slots : 00020 void Apply() { if (!apply_clicked()) accept(); } 00021 private: 00022 FilterKexiDB *kexi; //KexiDB 00023 KComboBox *driver, *databases, *tables; 00024 QLabel *connectionlabel, *tablelabel; 00025 KLineEdit *host, *user, *password; 00026 }; 00027 #endif //IMPORTDIALOG_H