1
/****************************************************************************
3
** Copyright (C) 2005-2005 Trolltech AS. All rights reserved.
5
** This file is part of the designer application of the Qt Toolkit.
7
** This file may be distributed under the terms of the Q Public License
8
** as defined by Trolltech AS of Norway and appearing in the file
9
** LICENSE.QPL included in the packaging of this file.
11
** This file may be distributed and/or modified under the terms of the
12
** GNU General Public License version 2 as published by the Free Software
13
** Foundation and appearing in the file LICENSE.GPL included in the
14
** packaging of this file.
16
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
17
** information about Qt Commercial License Agreements.
18
** See http://www.trolltech.com/qpl/ for QPL licensing information.
19
** See http://www.trolltech.com/gpl/ for GPL licensing information.
21
** Contact info@trolltech.com if any conditions of this licensing are
24
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
25
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
27
****************************************************************************/
29
#include "q3toolbar/q3toolbar_plugin.h"
30
#include "q3iconview/q3iconview_plugin.h"
31
#include "q3groupbox/q3groupbox_plugin.h"
32
#include "q3frame/q3frame_plugin.h"
33
#include "q3wizard/q3wizard_plugin.h"
34
#include "q3mainwindow/q3mainwindow_plugin.h"
35
#include "q3widgetstack/q3widgetstack_plugin.h"
36
#include "q3buttongroup/q3buttongroup_plugin.h"
37
#include "q3listview/q3listview_plugin.h"
38
#include "q3table/q3table_plugin.h"
39
#include "q3listbox/q3listbox_plugin.h"
40
#include "q3listview/q3listview_plugin.h"
41
#include "q3textedit/q3textedit_plugin.h"
43
#include <QtDesigner/QtDesigner>
44
#include <QtCore/qplugin.h>
45
#include <QtCore/qdebug.h>
47
class Qt3SupportWidgets: public QObject, public QDesignerCustomWidgetCollectionInterface
50
Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
52
Qt3SupportWidgets(QObject *parent = 0);
54
virtual QList<QDesignerCustomWidgetInterface*> customWidgets() const;
57
QList<QDesignerCustomWidgetInterface*> m_plugins;
60
Qt3SupportWidgets::Qt3SupportWidgets(QObject *parent)
63
m_plugins.append(new Q3ToolBarPlugin(this));
64
m_plugins.append(new Q3IconViewPlugin(this));
65
m_plugins.append(new Q3GroupBoxPlugin(this));
66
m_plugins.append(new Q3FramePlugin(this));
67
m_plugins.append(new Q3WizardPlugin(this));
68
m_plugins.append(new Q3MainWindowPlugin(this));
69
m_plugins.append(new Q3WidgetStackPlugin(this));
70
m_plugins.append(new Q3ButtonGroupPlugin(this));
71
m_plugins.append(new Q3TablePlugin(this));
72
m_plugins.append(new Q3ListBoxPlugin(this));
73
m_plugins.append(new Q3ListViewPlugin(this));
74
m_plugins.append(new Q3TextEditPlugin(this));
77
QList<QDesignerCustomWidgetInterface*> Qt3SupportWidgets::customWidgets() const
82
Q_EXPORT_PLUGIN(Qt3SupportWidgets)
84
#include "qt3supportwidgets.moc"