source: trunk/tools/designer/plugins/wizards/sqlformwizardimpl.h

Last change on this file was 197, checked in by rudi, 14 years ago

Added QtDesigner

File size: 2.3 KB
Line 
1 /**********************************************************************
2** Copyright (C) 2000-2007 Trolltech ASA. All rights reserved.
3**
4** This file is part of Qt Designer.
5**
6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
11** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
12** licenses may use this file in accordance with the Qt Commercial License
13** Agreement provided with the Software.
14**
15** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17**
18** See http://www.trolltech.com/gpl/ for GPL licensing information.
19** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
20** information about Qt Commercial License Agreements.
21**
22** Contact info@trolltech.com if any conditions of this licensing are
23** not clear to you.
24**
25**********************************************************************/
26
27#ifndef SQLFORMWIZARDIMPL_H
28#define SQLFORMWIZARDIMPL_H
29
30#include "sqlformwizard.h"
31#include <templatewizardiface.h>
32#include <designerinterface.h>
33#include <qvaluelist.h>
34
35class SqlFormWizard : public SqlFormWizardBase
36{
37 Q_OBJECT
38
39public:
40 SqlFormWizard( QUnknownInterface *aIface, QWidget *w, QWidget* parent = 0, DesignerFormWindow *fw = 0,
41 const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
42 ~SqlFormWizard();
43
44 void accept() const;
45
46protected slots:
47 void connectionSelected( const QString & );
48 void tableSelected( const QString & );
49 void autoPopulate( bool populate );
50 void fieldDown();
51 void fieldUp();
52 void removeField();
53 void addField();
54 void setupDatabaseConnections();
55 void accept();
56 void addSortField();
57 void reSortSortField();
58 void removeSortField();
59 void sortFieldUp();
60 void sortFieldDown();
61 void nextPageClicked();
62
63private:
64 void setupPage1();
65
66private:
67 QWidget *widget;
68 QUnknownInterface *appIface;
69 DesignerFormWindow *formWindow;
70 enum Mode {
71 None,
72 View,
73 Browser,
74 Table
75 };
76 Mode mode;
77
78};
79
80#endif // SQLFORMWIZARDIMPL_H
Note: See TracBrowser for help on using the repository browser.