KexiNewProjectWizard.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Jaroslaw Staniek <js@iidea.pl>
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20#ifndef KexiNewProjectWizard_H
21#define KexiNewProjectWizard_H
22
23#include "kexidbconnectionset.h"
24#include <kexidb/connectiondata.h>
25
26#include <kwizard.h>
27
28class TQListViewItem;
29
30class KexiNewPrjTypeSelector;
32class KexiNewProjectWizardPrivate;
33class KexiDBTitlePage;
34class KexiServerDBNamePage;
36
37class KEXIMAIN_EXPORT KexiNewProjectWizard : public KWizard
38{
39 TQ_OBJECT
40
41 public:
42 KexiNewProjectWizard(KexiDBConnectionSet& conn_set, TQWidget *parent=0,
43 const char *name=0, bool modal=false, WFlags f=0);
44 ~KexiNewProjectWizard();
45
48 TQString projectDBName() const;
49
51 TQString projectCaption() const;
52
57 KexiDB::ConnectionData* projectConnectionData() const;
58
60 virtual void show();
61
64 void setConfirmOverwrites(bool set);
65
66 protected slots:
67 void slotLvTypesSelected(TQListViewItem *);
68 void slotLvTypesExecuted(TQListViewItem *);
69 void slotServerDBCaptionTxtChanged(const TQString &capt);
70 void slotServerDBNameTxtChanged(const TQString &n);
71
72 virtual void done(int r);
73 virtual void next();
74 virtual void accept();
75
76 protected:
77 virtual void showPage(TQWidget *page);
78
79 KexiNewPrjTypeSelector *m_prjtype_sel;
80 KexiDBTitlePage *m_db_title;
81 KexiServerDBNamePage *m_server_db_name;
82 KexiProjectSelectorWidget* m_project_selector;
83
84 KexiConnSelectorWidget *m_conn_sel;
85 TQWidget *m_conn_sel_widget;
86
87 KexiNewProjectWizardPrivate *d;
88};
89
90#endif
91
A helper widget used to displaying a line edit with a label and layout.
Database specific connection data, e.g. host, port.