1 /****************************************************************************
2 **
3 ** Copyright (C) 2016 The Qt Company Ltd.
4 ** Contact: https://www.qt.io/licensing/
5 **
6 ** This file is part of the Qt Data Visualization module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:GPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and The Qt Company. For licensing terms
14 ** and conditions see https://www.qt.io/terms-conditions. For further
15 ** information use the contact form at https://www.qt.io/contact-us.
16 **
17 ** GNU General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU
19 ** General Public License version 3 or (at your option) any later version
20 ** approved by the KDE Free Qt Foundation. The licenses are as published by
21 ** the Free Software Foundation and appearing in the file LICENSE.GPL3
22 ** included in the packaging of this file. Please review the following
23 ** information to ensure the GNU General Public License requirements will
24 ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
25 **
26 ** $QT_END_LICENSE$
27 **
28 ****************************************************************************/
29 
30 #ifndef DATAVISUALIZATIONQML2_PLUGIN_H
31 #define DATAVISUALIZATIONQML2_PLUGIN_H
32 
33 #include "datavisualizationglobal_p.h"
34 #include "declarativebars_p.h"
35 #include "declarativescatter_p.h"
36 #include "declarativesurface_p.h"
37 #include "qitemmodelbardataproxy.h"
38 #include "qitemmodelscatterdataproxy.h"
39 #include "qitemmodelsurfacedataproxy.h"
40 #include "qheightmapsurfacedataproxy.h"
41 #include "qvalue3daxis.h"
42 #include "qvalue3daxisformatter.h"
43 #include "qlogvalue3daxisformatter.h"
44 #include "qcategory3daxis.h"
45 #include "q3dobject.h"
46 #include "q3dcamera.h"
47 #include "q3dscene.h"
48 #include "q3dlight.h"
49 #include "qabstract3dseries.h"
50 #include "qbar3dseries.h"
51 #include "qscatter3dseries.h"
52 #include "qsurface3dseries.h"
53 #include "declarativeseries_p.h"
54 #include "q3dtheme.h"
55 #include "declarativetheme_p.h"
56 #include "q3dinputhandler.h"
57 #include "qtouch3dinputhandler.h"
58 #include "declarativecolor_p.h"
59 #include "declarativescene_p.h"
60 #include "qcustom3ditem.h"
61 #include "qcustom3dlabel.h"
62 #include "qcustom3dvolume.h"
63 
64 #include <QtQml/QQmlExtensionPlugin>
65 
66 using namespace QtDataVisualization;
67 
68 QML_DECLARE_TYPE(AbstractDeclarative)
QML_DECLARE_TYPE(DeclarativeBars)69 QML_DECLARE_TYPE(DeclarativeBars)
70 QML_DECLARE_TYPE(DeclarativeScatter)
71 QML_DECLARE_TYPE(DeclarativeSurface)
72 
73 QML_DECLARE_TYPE(QAbstractItemModel)
74 
75 QML_DECLARE_TYPE(QAbstract3DAxis)
76 QML_DECLARE_TYPE(QCategory3DAxis)
77 QML_DECLARE_TYPE(QValue3DAxis)
78 QML_DECLARE_TYPE(QValue3DAxisFormatter)
79 QML_DECLARE_TYPE(QLogValue3DAxisFormatter)
80 
81 QML_DECLARE_TYPE(Q3DScene)
82 QML_DECLARE_TYPE(Declarative3DScene)
83 QML_DECLARE_TYPE(Q3DObject)
84 QML_DECLARE_TYPE(Q3DCamera)
85 QML_DECLARE_TYPE(Q3DLight)
86 
87 QML_DECLARE_TYPE(QAbstractDataProxy)
88 QML_DECLARE_TYPE(QBarDataProxy)
89 QML_DECLARE_TYPE(QItemModelBarDataProxy)
90 QML_DECLARE_TYPE(QScatterDataProxy)
91 QML_DECLARE_TYPE(QItemModelScatterDataProxy)
92 QML_DECLARE_TYPE(QSurfaceDataProxy)
93 QML_DECLARE_TYPE(QItemModelSurfaceDataProxy)
94 QML_DECLARE_TYPE(QHeightMapSurfaceDataProxy)
95 
96 QML_DECLARE_TYPE(QAbstract3DSeries)
97 QML_DECLARE_TYPE(QBar3DSeries)
98 QML_DECLARE_TYPE(QScatter3DSeries)
99 QML_DECLARE_TYPE(QSurface3DSeries)
100 QML_DECLARE_TYPE(DeclarativeBar3DSeries)
101 QML_DECLARE_TYPE(DeclarativeScatter3DSeries)
102 QML_DECLARE_TYPE(DeclarativeSurface3DSeries)
103 
104 QML_DECLARE_TYPE(ColorGradientStop)
105 QML_DECLARE_TYPE(ColorGradient)
106 
107 QML_DECLARE_TYPE(DeclarativeColor)
108 
109 QML_DECLARE_TYPE(Q3DTheme)
110 QML_DECLARE_TYPE(DeclarativeTheme3D)
111 
112 QML_DECLARE_TYPE(QAbstract3DInputHandler)
113 QML_DECLARE_TYPE(Q3DInputHandler)
114 QML_DECLARE_TYPE(QTouch3DInputHandler)
115 
116 QML_DECLARE_TYPE(QCustom3DItem)
117 QML_DECLARE_TYPE(QCustom3DLabel)
118 QML_DECLARE_TYPE(QCustom3DVolume)
119 
120 QT_BEGIN_NAMESPACE_DATAVISUALIZATION
121 
122 class QtDataVisualizationQml2Plugin : public QQmlExtensionPlugin
123 {
124     Q_OBJECT
125     Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
126 
127 public:
128     QtDataVisualizationQml2Plugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { }
129     void registerTypes(const char *uri);
130 };
131 
132 QT_END_NAMESPACE_DATAVISUALIZATION
133 
134 #endif // DATAVISUALIZATIONQML2_PLUGIN_H
135 
136