~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to tools/designer/src/plugins/widgets/qt3supportwidgets.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
**
 
3
** Copyright (C) 2005-2005 Trolltech AS. All rights reserved.
 
4
**
 
5
** This file is part of the designer application of the Qt Toolkit.
 
6
**
 
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.
 
10
**
 
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.
 
15
**
 
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.
 
20
**
 
21
** Contact info@trolltech.com if any conditions of this licensing are
 
22
** not clear to you.
 
23
**
 
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.
 
26
**
 
27
****************************************************************************/
 
28
 
 
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"
 
42
 
 
43
#include <QtDesigner/QtDesigner>
 
44
#include <QtCore/qplugin.h>
 
45
#include <QtCore/qdebug.h>
 
46
 
 
47
class Qt3SupportWidgets: public QObject, public QDesignerCustomWidgetCollectionInterface
 
48
{
 
49
    Q_OBJECT
 
50
    Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
 
51
public:
 
52
    Qt3SupportWidgets(QObject *parent = 0);
 
53
 
 
54
    virtual QList<QDesignerCustomWidgetInterface*> customWidgets() const;
 
55
 
 
56
private:
 
57
    QList<QDesignerCustomWidgetInterface*> m_plugins;
 
58
};
 
59
 
 
60
Qt3SupportWidgets::Qt3SupportWidgets(QObject *parent)
 
61
    : QObject(parent)
 
62
{
 
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));
 
75
}
 
76
 
 
77
QList<QDesignerCustomWidgetInterface*> Qt3SupportWidgets::customWidgets() const
 
78
{
 
79
    return m_plugins;
 
80
}
 
81
 
 
82
Q_EXPORT_PLUGIN(Qt3SupportWidgets)
 
83
 
 
84
#include "qt3supportwidgets.moc"