33 #include "qgsquickattributeformmodel.h"
34 #include "qgsquickattributeformmodelbase.h"
35 #include "qgsquickattributemodel.h"
47 #include "qgsquicksubmodel.h"
51 static QObject *_utilsProvider( QQmlEngine *engine, QJSEngine *scriptEngine )
54 Q_UNUSED( scriptEngine )
60 qRegisterMetaType< QList<QgsMapLayer *> >(
"QList<QgsMapLayer*>" );
61 qRegisterMetaType< QgsAttributes > (
"QgsAttributes" );
62 qRegisterMetaType< QgsCoordinateReferenceSystem >(
"QgsCoordinateReferenceSystem" );
63 qRegisterMetaType< QgsCoordinateTransformContext >(
"QgsCoordinateTransformContext" );
64 qRegisterMetaType< QgsFeature > (
"QgsFeature" );
65 qRegisterMetaType< QgsFeatureId > (
"QgsFeatureId" );
66 qRegisterMetaType< QgsPoint >(
"QgsPoint" );
67 qRegisterMetaType< QgsPointXY >(
"QgsPointXY" );
68 qRegisterMetaType< QgsQuickFeatureLayerPair >(
"QgsQuickFeatureLayerPair" );
69 qRegisterMetaType< QgsUnitTypes::SystemOfMeasurement >(
"QgsUnitTypes::SystemOfMeasurement" );
70 qRegisterMetaType< QgsUnitTypes::DistanceUnit >(
"QgsUnitTypes::DistanceUnit" );
71 qRegisterMetaType< QgsCoordinateFormatter::FormatFlags >(
"QgsCoordinateFormatter::FormatFlags" );
72 qRegisterMetaType< QgsCoordinateFormatter::Format >(
"QgsCoordinateFormatter::Format" );
73 qRegisterMetaType< QVariant::Type >(
"QVariant::Type" );
75 qmlRegisterUncreatableType< QgsUnitTypes >( uri, 0, 1,
"QgsUnitTypes",
"Only enums from QgsUnitTypes can be used" );
77 qmlRegisterType< QgsProject >( uri, 0, 1,
"Project" );
78 qmlRegisterType< QgsQuickAttributeFormModel >( uri, 0, 1,
"AttributeFormModel" );
79 qmlRegisterType< QgsQuickAttributeModel >( uri, 0, 1,
"AttributeModel" );
80 qmlRegisterType< QgsQuickFeatureHighlight >( uri, 0, 1,
"FeatureHighlight" );
81 qmlRegisterType< QgsQuickCoordinateTransformer >( uri, 0, 1,
"CoordinateTransformer" );
82 qmlRegisterType< QgsQuickIdentifyKit >( uri, 0, 1,
"IdentifyKit" );
83 qmlRegisterType< QgsQuickMapCanvasMap >( uri, 0, 1,
"MapCanvasMap" );
84 qmlRegisterType< QgsQuickMapSettings >( uri, 0, 1,
"MapSettings" );
85 qmlRegisterType< QgsQuickMapTransform >( uri, 0, 1,
"MapTransform" );
86 qmlRegisterType< QgsQuickMessageLogModel >( uri, 0, 1,
"MessageLogModel" );
87 qmlRegisterType< QgsQuickPositionKit >( uri, 0, 1,
"PositionKit" );
88 qmlRegisterType< QgsQuickScaleBarKit >( uri, 0, 1,
"ScaleBarKit" );
89 qmlRegisterType< QgsQuickSubModel >( uri, 0, 1,
"SubModel" );
90 qmlRegisterType< QgsVectorLayer >( uri, 0, 1,
"VectorLayer" );
91 qmlRegisterType< QgsQuickValueRelationListModel > ( uri, 0, 1,
"ValueRelationListModel" );
93 qmlRegisterSingletonType< QgsQuickUtils >( uri, 0, 1,
"Utils", _utilsProvider );