kexi
KexiNewProjectWizard.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KexiNewProjectWizard_H
00021 #define KexiNewProjectWizard_H
00022
00023 #include "kexidbconnectionset.h"
00024 #include <kexidb/connectiondata.h>
00025
00026 #include <kwizard.h>
00027
00028 class QListViewItem;
00029
00030 class KexiNewPrjTypeSelector;
00031 class KexiConnSelectorWidget;
00032 class KexiNewProjectWizardPrivate;
00033 class KexiDBTitlePage;
00034 class KexiServerDBNamePage;
00035 class KexiProjectSelectorWidget;
00036
00037 class KEXIMAIN_EXPORT KexiNewProjectWizard : public KWizard
00038 {
00039 Q_OBJECT
00040 public:
00041 KexiNewProjectWizard(KexiDBConnectionSet& conn_set, QWidget *parent=0,
00042 const char *name=0, bool modal=false, WFlags f=0);
00043 ~KexiNewProjectWizard();
00044
00047 QString projectDBName() const;
00048
00050 QString projectCaption() const;
00051
00056 KexiDB::ConnectionData* projectConnectionData() const;
00057
00059 virtual void show();
00060
00063 void setConfirmOverwrites(bool set);
00064
00065 protected slots:
00066 void slotLvTypesSelected(QListViewItem *);
00067 void slotLvTypesExecuted(QListViewItem *);
00068 void slotServerDBCaptionTxtChanged(const QString &capt);
00069 void slotServerDBNameTxtChanged(const QString &n);
00070
00071 virtual void done(int r);
00072 virtual void next();
00073 virtual void accept();
00074
00075 protected:
00076 virtual void showPage(QWidget *page);
00077
00078 KexiNewPrjTypeSelector *m_prjtype_sel;
00079 KexiDBTitlePage *m_db_title;
00080 KexiServerDBNamePage *m_server_db_name;
00081 KexiProjectSelectorWidget* m_project_selector;
00082
00083 KexiConnSelectorWidget *m_conn_sel;
00084 QWidget *m_conn_sel_widget;
00085
00086 KexiNewProjectWizardPrivate *d;
00087 };
00088
00089 #endif
00090
|