kexi

KexiNewProjectWizard.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2003 Jaroslaw Staniek <js@iidea.pl>
00003 
00004    This program is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this program; see the file COPYING.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
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 
KDE Home | KDE Accessibility Home | Description of Access Keys