Skip to content

Commit fb047c2

Browse files
author
Michael Tims
authored
Merge pull request #139 from Esri/james/toolkitAsPluginSupport
Add support for import the toolkit components as a plugin.
2 parents 4cf9ec4 + 0e0b06b commit fb047c2

File tree

6 files changed

+151
-1
lines changed

6 files changed

+151
-1
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<RCC>
2+
<qresource prefix="/qt-project.org/imports/Esri/ArcGISRuntime/Toolkit/Controls">
3+
<file>images/add-encircled.png</file>
4+
<file>images/add.png</file>
5+
<file>images/check-mark.png</file>
6+
<file>images/delete.png</file>
7+
<file>images/exit.png</file>
8+
<file>images/home.png</file>
9+
<file>images/info-encircled.png</file>
10+
<file>images/info.png</file>
11+
<file>images/NorthArrow.png</file>
12+
<file>images/position-autopan.png</file>
13+
<file>images/position-compass.png</file>
14+
<file>images/position-navigation.png</file>
15+
<file>images/position-off.png</file>
16+
<file>images/position-on.png</file>
17+
<file>images/remove.png</file>
18+
<file>images/rotate_clockwise.png</file>
19+
<file>images/rotate_counter_clockwise.png</file>
20+
<file>images/search.png</file>
21+
<file>images/triangle.png</file>
22+
<file>LeaderPosition.js</file>
23+
<file>AttachmentListView20.qml</file>
24+
<file>AttributeListView20.qml</file>
25+
<file>Callout.qml</file>
26+
<file>Callout20.qml</file>
27+
<file>Callout100.qml</file>
28+
<file>CurrentVersion.qml</file>
29+
<file>Fader20.qml</file>
30+
<file>HomeButton20.qml</file>
31+
<file>ImageButton20.qml</file>
32+
<file>LocationButton20.qml</file>
33+
<file>NavigationToolbar20.qml</file>
34+
<file>NorthArrow20.qml</file>
35+
<file>OverviewMap20.qml</file>
36+
<file>PopupView.qml</file>
37+
<file>PopupViewBase.qml</file>
38+
<file>RotationToolbar20.qml</file>
39+
<file>SearchBox20.qml</file>
40+
<file>StyleButton20.qml</file>
41+
<file>StyleToolbar20.qml</file>
42+
<file>ZoomInButton20.qml</file>
43+
<file>ZoomOutButton20.qml</file>
44+
<file>qmldir</file>
45+
</qresource>
46+
</RCC>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<RCC>
2+
<qresource prefix="/qt-project.org/imports/Esri/ArcGISRuntime/Toolkit/Dialogs">
3+
<file>images/add.png</file>
4+
<file>images/banner.png</file>
5+
<file>AuthenticationView.qml</file>
6+
<file>AuthenticationView20.qml</file>
7+
<file>ClientCertificateView.qml</file>
8+
<file>ClientCertificateView20.qml</file>
9+
<file>CurrentVersion.qml</file>
10+
<file>ImagePopUpDialog20.qml</file>
11+
<file>OAuth2View.qml</file>
12+
<file>OAuth2View20.qml</file>
13+
<file>SimpleDialog20.qml</file>
14+
<file>SslHandshakeView.qml</file>
15+
<file>SslHandshakeView20.qml</file>
16+
<file>UserCredentialsView.qml</file>
17+
<file>UserCredentialsView20.qml</file>
18+
<file>qmldir</file>
19+
</qresource>
20+
</RCC>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*******************************************************************************
2+
* Copyright 2012-2017 Esri
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
******************************************************************************/
16+
17+
#include "ArcGISRuntimeToolkitPlugin.h"
18+
19+
ArcGISRuntimeToolkitPlugin::ArcGISRuntimeToolkitPlugin(QObject* parent) :
20+
QQmlExtensionPlugin(parent)
21+
{
22+
Q_INIT_RESOURCE(Controls);
23+
Q_INIT_RESOURCE(Dialogs);
24+
}
25+
26+
void ArcGISRuntimeToolkitPlugin::registerTypes(const char* uri)
27+
{
28+
Q_UNUSED(uri)
29+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*******************************************************************************
2+
* Copyright 2012-2017 Esri
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
******************************************************************************/
16+
17+
#ifndef ArcGISRuntimeToolkitPlugin_H
18+
#define ArcGISRuntimeToolkitPlugin_H
19+
20+
#include <QQmlExtensionPlugin>
21+
22+
class ArcGISRuntimeToolkitPlugin : public QQmlExtensionPlugin
23+
{
24+
Q_OBJECT
25+
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
26+
27+
public:
28+
explicit ArcGISRuntimeToolkitPlugin(QObject* parent = nullptr);
29+
void registerTypes(const char* uri) Q_DECL_OVERRIDE;
30+
};
31+
32+
#endif // ArcGISRuntimeToolkitPlugin_H
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
################################################################################
2+
# Copyright 2012-2017 Esri
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
################################################################################
16+
17+
HEADERS += $$PWD/ArcGISRuntimeToolkitPlugin.h
18+
19+
SOURCES += $$PWD/ArcGISRuntimeToolkitPlugin.cpp
20+
21+
RESOURCES += $$PWD/../Imports/ArcGIS/Runtime/Toolkit/Controls/Controls.qrc \
22+
$$PWD/../Imports/ArcGIS/Runtime/Toolkit/Dialogs/Dialogs.qrc

toolkit.pro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ OTHER_FILES += \
2727
.gitattributes \
2828
.gitignore \
2929
Imports/*.qmlproject \
30-
Examples/*.qmlproject
30+
Examples/*.qmlproject \
31+
Plugin/*
3132

3233
#-------------------------------------------------------------------------------
3334

0 commit comments

Comments
 (0)