/* * This file is part of KQuickCharts * SPDX-FileCopyrightText: 2019 Arjen Hiemstra * * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "ChartsPlugin.h" #include "BarChart.h" #include "Chart.h" #include "LineChart.h" #include "PieChart.h" #include "RangeGroup.h" #include "XYChart.h" #include "decorations/AxisLabels.h" #include "decorations/GridLines.h" #include "decorations/LegendModel.h" #include "decorations/LegendLayout.h" #include "datasource/ArraySource.h" #include "datasource/ChartAxisSource.h" #include "datasource/ColorGradientSource.h" #include "datasource/HistoryProxySource.h" #include "datasource/MapProxySource.h" #include "datasource/ModelSource.h" #include "datasource/SingleValueSource.h" #include "quickcharts_export.h" QuickChartsPlugin::QuickChartsPlugin(QObject *parent) : QQmlExtensionPlugin(parent) { } void QuickChartsPlugin::registerTypes(const char *uri) { Q_ASSERT(QString::fromLatin1(uri) == QLatin1String("org.kde.quickcharts")); qmlRegisterAnonymousType(uri, 1); qmlRegisterType(uri, 1, 0, "PieChart"); qmlRegisterType(uri, 1, 0, "LineChart"); qmlRegisterType(uri, 1, 0, "BarChart"); qmlRegisterUncreatableType(uri, 1, 0, "XYChart", QStringLiteral("Just a base class")); qmlRegisterUncreatableType(uri, 1, 0, "Chart", QStringLiteral("Just a base class")); qmlRegisterUncreatableType(uri, 1, 0, "ChartDataSource", QStringLiteral("Just a base class")); qmlRegisterType(uri, 1, 0, "ModelSource"); qmlRegisterType(uri, 1, 0, "SingleValueSource"); qmlRegisterType(uri, 1, 0, "ArraySource"); qmlRegisterType(uri, 1, 0, "ChartAxisSource"); qmlRegisterType(uri, 1, 0, "ColorGradientSource"); qmlRegisterType(uri, 1, 0, "MapProxySource"); qmlRegisterType(uri, 1, 0, "HistoryProxySource"); qmlRegisterUncreatableType(uri, 1, 0, "Range", QStringLiteral("Used as a grouped property")); qmlRegisterType(uri, 1, 0, "GridLines"); qmlRegisterUncreatableType(uri, 1, 0, "LinePropertiesGroup", QStringLiteral("Used as a grouped property")); qmlRegisterType(uri, 1, 0, "AxisLabels"); qmlRegisterUncreatableType(uri, 1, 0, "AxisLabelsAttached", QStringLiteral("Attached property")); qmlRegisterType(uri, 1, 0, "LegendModel"); qmlRegisterType(uri, 1, 0, "LegendLayout"); } #include "moc_ChartsPlugin.cpp"