Skip to content

Commit 3a04ab2

Browse files
authored
Merge pull request #606 from Esri/v.next_merged_with_main
Toolkit - 200.3.0 Release checklist, v.next merged with main
2 parents 9a3d380 + 1632d58 commit 3a04ab2

37 files changed

+298
-276
lines changed

augmentedreality/Examples/CppArExample/CppArExample.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ equals(QT_MAJOR_VERSION, 6) {
3535
}
3636
}
3737

38-
ARCGIS_RUNTIME_VERSION = 200.2.0
38+
ARCGIS_RUNTIME_VERSION = 200.3.0
3939
include($$PWD/arcgisruntime.pri)
4040

4141
HEADERS += \

augmentedreality/Examples/QmlArExample/QmlArExample.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ equals(QT_MAJOR_VERSION, 6) {
3737
}
3838
}
3939

40-
ARCGIS_RUNTIME_VERSION = 200.2.0
40+
ARCGIS_RUNTIME_VERSION = 200.3.0
4141
include($$PWD/arcgisruntime.pri)
4242

4343
TEMPLATE = app

calcite-qml/demo/calcite_test.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ CONFIG += c++17
2323
# additional modules are pulled in via arcgisruntime.pri
2424
QT += opengl qml quick quickcontrols2
2525

26-
ARCGIS_RUNTIME_VERSION = 200.2.0
26+
ARCGIS_RUNTIME_VERSION = 200.3.0
2727
include($$PWD/arcgisruntime.pri)
2828

2929
TEMPLATE = app

tests/uitools/cpp_quick/unit_tests/BasemapGalleryItemUnitTest/BasemapGalleryItemUnitTest.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ QT += testlib
2727
QT -= gui
2828
QT += core gui opengl xml testlib network positioning sensors multimedia quick
2929

30-
ARCGIS_RUNTIME_VERSION = 200.2.0
30+
ARCGIS_RUNTIME_VERSION = 200.3.0
3131

3232
include($$PWD/../arcgisruntime.pri)
3333
include($$PWD/../../../../../uitools/toolkitcpp.pri)

tests/uitools/qml_quick/functional_tests/FloorFilterControllerFuncTest/FloorFilterControllerFuncTest.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CONFIG += c++17 warn_on qmltestcase
1616

1717
TEMPLATE = app
1818

19-
ARCGIS_RUNTIME_VERSION = 200.2.0
19+
ARCGIS_RUNTIME_VERSION = 200.3.0
2020
include($$PWD/../../shared/arcgisruntime.pri)
2121
include($$PWD/../../../../../uitools/toolkitqml.pri)
2222

tests/uitools/qml_quick/functional_tests/FloorFilterFuncTest/FloorFilterFuncTest.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CONFIG += c++17 warn_on qmltestcase
1616

1717
TEMPLATE = app
1818

19-
ARCGIS_RUNTIME_VERSION = 200.2.0
19+
ARCGIS_RUNTIME_VERSION = 200.3.0
2020
include($$PWD/../../shared/arcgisruntime.pri)
2121
include($$PWD/../../../../../uitools/toolkitqml.pri)
2222

tests/uitools/qml_quick/unit_tests/FloorFilterControllerUnitTest/FloorFilterControllerUnitTest.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CONFIG += c++17 warn_on qmltestcase
1616

1717
TEMPLATE = app
1818

19-
ARCGIS_RUNTIME_VERSION = 200.2.0
19+
ARCGIS_RUNTIME_VERSION = 200.3.0
2020
include($$PWD/../../shared/arcgisruntime.pri)
2121
include($$PWD/../../../../../uitools/toolkitqml.pri)
2222

uitools/cpp/Esri/ArcGISRuntime/Toolkit/BasemapGalleryItem.cpp

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
******************************************************************************/
16-
#include "BasemapGalleryController.h"
16+
#include "BasemapGalleryItem.h"
1717

1818
// Toolkit headers
1919
#include "Internal/BasemapGalleryImageProvider.h"
2020
#include "Internal/DoOnLoad.h"
21-
#include "Internal/GeoViews.h"
2221

2322
// ArcGISRuntime headers
2423
#include <Basemap.h>
@@ -28,6 +27,7 @@
2827

2928
// Qt headers
3029
#include <QIcon>
30+
#include <QFuture>
3131

3232
#ifdef CPP_ARCGISRUNTIME_TOOLKIT
3333
// Qt headers
@@ -185,8 +185,17 @@ namespace Esri::ArcGISRuntime::Toolkit {
185185

186186
return;
187187
}
188-
connect(item, &Item::fetchThumbnailCompleted, this, &BasemapGalleryItem::basemapChanged);
189-
item->fetchThumbnail();
188+
189+
// fetchThumbnailAsync returns a single future, so don't keep attaching continuations
190+
// if it's already running
191+
auto future = item->fetchThumbnailAsync();
192+
if (!future.isRunning())
193+
{
194+
future.then(this, [this](const QImage&)
195+
{
196+
emit basemapChanged();
197+
});
198+
}
190199
});
191200
}
192201
emit basemapChanged();

uitools/cpp/Esri/ArcGISRuntime/Toolkit/BookmarksViewController.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
// Qt headers
2525
#include <QtGlobal>
26+
#include <QFuture>
2627

2728
// ArcGISRuntime headers
2829
#include <Bookmark.h>
@@ -255,11 +256,13 @@ namespace Esri::ArcGISRuntime::Toolkit {
255256

256257
if (auto sceneView = qobject_cast<SceneViewToolkit*>(m_geoView))
257258
{
258-
sceneView->setBookmark(bookmark->bookmark());
259+
auto future = sceneView->setBookmarkAsync(bookmark->bookmark());
260+
Q_UNUSED(future)
259261
}
260262
else if (auto mapView = qobject_cast<MapViewToolkit*>(m_geoView))
261263
{
262-
mapView->setBookmark(bookmark->bookmark());
264+
auto future = mapView->setBookmarkAsync(bookmark->bookmark());
265+
Q_UNUSED(future)
263266
}
264267
}
265268

uitools/cpp/Esri/ArcGISRuntime/Toolkit/CoordinateConversionController.cpp

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <QMouseEvent>
2525
#include <QtGlobal>
2626
#include <QUuid>
27+
#include <QPointF>
2728

2829
// ArcGISRuntime headers
2930
#include <Camera.h>
@@ -156,22 +157,17 @@ void CoordinateConversionController::setGeoView(QObject* geoView)
156157
connect(sceneView, &SceneViewToolkit::mouseClicked, this,
157158
[sceneView, this](QMouseEvent& event)
158159
{
159-
if (m_inPickingMode && (!m_screenToLocationTask.isValid() ||
160-
m_screenToLocationTask.isDone()))
160+
if (m_inPickingMode && !m_screenToLocationFuture.isRunning())
161161
{
162-
m_screenToLocationTask = sceneView->screenToLocation(event.pos().x(), event.pos().y());
162+
m_screenToLocationFuture = sceneView->screenToLocationAsync(event.pos().x(), event.pos().y());
163+
m_screenToLocationFuture.then(this, [this](const Point& point)
164+
{
165+
setCurrentPoint(point);
166+
});
167+
163168
event.accept();
164169
}
165170
});
166-
167-
connect(sceneView, &SceneViewToolkit::screenToLocationCompleted, this,
168-
[this](QUuid taskId, Point point)
169-
{
170-
if (taskId != m_screenToLocationTask.taskId())
171-
return;
172-
173-
setCurrentPoint(point);
174-
});
175171
}
176172
else if (auto mapView = qobject_cast<MapViewToolkit*>(m_geoView))
177173
{
@@ -317,6 +313,14 @@ GenericListModel* CoordinateConversionController::coordinateFormats() const
317313
return m_coordinateFormats;
318314
}
319315

316+
/*!
317+
\brief Returns the \c CoordinateConversionOption at \a index from the \c GenericListModel
318+
*/
319+
CoordinateConversionOption* CoordinateConversionController::getOption(int index) const
320+
{
321+
return m_coordinateFormats->element<CoordinateConversionOption>(m_coordinateFormats->index(index));
322+
}
323+
320324
/*!
321325
\brief Returns the list of textual representations of the current point in
322326
different formats.
@@ -341,13 +345,15 @@ void CoordinateConversionController::zoomToCurrentPoint()
341345
{
342346
const Camera currentCam = sceneView->currentViewpointCamera();
343347
const Camera newCam(m_currentPoint, m_zoomToDistance, currentCam.heading(), currentCam.pitch(), currentCam.roll());
344-
sceneView->setViewpointCamera(newCam, 1.0);
348+
auto future = sceneView->setViewpointCameraAsync(newCam, 1.0);
349+
Q_UNUSED(future)
345350
}
346351
else if (auto mapView = qobject_cast<MapView*>(m_geoView))
347352
{
348353
const Viewpoint currVP = mapView->currentViewpoint(ViewpointType::CenterAndScale);
349354
const Viewpoint newViewPoint(m_currentPoint, currVP.targetScale());
350-
mapView->setViewpoint(newViewPoint, 1.0);
355+
auto future = mapView->setViewpointAsync(newViewPoint, 1.0);
356+
Q_UNUSED(future)
351357
}
352358
}
353359

0 commit comments

Comments
 (0)