-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #354 from Esri/v.next
Upgrading to DSA 1.1.6.
- Loading branch information
Showing
87 changed files
with
1,561 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
/******************************************************************************* | ||
* Copyright 2012-2018 Esri | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
******************************************************************************/ | ||
|
||
#include "AbstractTool.h" | ||
|
||
using namespace Esri::ArcGISRuntime; | ||
|
||
namespace Dsa | ||
{ | ||
/*! | ||
\class Dsa::AbstractTool | ||
\inmodule ArcGISQtToolkit | ||
\brief Base class for classes that implement individual tools. | ||
\since Esri::ArcGISRuntime 100.2 | ||
AbstractTool provides functions and properties that all derived tools share. | ||
\note You cannot create an object of this class. Instead, create a tool | ||
object from a derived class. | ||
*/ | ||
|
||
/*! | ||
\brief The constructor that accepts an optional \a parent object. | ||
*/ | ||
AbstractTool::AbstractTool(QObject* parent /*= nullptr*/): | ||
QObject(parent) | ||
{ | ||
|
||
} | ||
|
||
/*! | ||
\brief The destructor. | ||
*/ | ||
AbstractTool::~AbstractTool() | ||
{ | ||
|
||
} | ||
|
||
/*! | ||
\brief Reimplement this method in subclasses to handle a click at | ||
geographic coordinate \a pos. | ||
Returns \c false. | ||
*/ | ||
bool AbstractTool::handleClick(const Point& pos) | ||
{ | ||
Q_UNUSED(pos) | ||
return false; | ||
} | ||
|
||
/*! | ||
\brief Reimplement this method in subclasses to set tool properties. | ||
\list | ||
\li \a properties - A QVariantMap containing property settings. | ||
\endlist | ||
A tool property is defined as a key-value pair where the key is a QString | ||
and the value is a QVariant. Properties are useful for general settings | ||
which you wish to persist for the tool, such as default modes. | ||
*/ | ||
void AbstractTool::setProperties(const QVariantMap&) | ||
{ | ||
|
||
} | ||
|
||
/*! | ||
\brief Sets whether this tool is active to \a active. | ||
\sa activeChanged | ||
*/ | ||
void AbstractTool::setActive(bool active) | ||
{ | ||
if (m_active == active) | ||
return; | ||
|
||
m_active = active; | ||
|
||
emit activeChanged(); | ||
} | ||
|
||
/*! | ||
\brief Returns whether this tool is active (\c true) or not (\c false). | ||
*/ | ||
bool AbstractTool::isActive() const | ||
{ | ||
return m_active; | ||
} | ||
|
||
// Signals | ||
/*! | ||
\fn void Dsa::AbstractTool::errorOccurred(const Error& error) | ||
\brief Signal emitted when this tool encounters an error. | ||
\list | ||
\li \a error - Details about the error that occurred. | ||
\endlist | ||
*/ | ||
|
||
/*! | ||
\fn void Dsa::AbstractTool::activeChanged() | ||
\brief Signal emitted when the active property of this tool changes. | ||
*/ | ||
|
||
/*! | ||
\fn void Dsa::AbstractTool::propertyChanged(const QString& propertyName, const QVariant& propertyValue) | ||
\brief Signal emitted when a property of this tool changes. | ||
\list | ||
\li \a propertyName - The changed property's name. | ||
\li \a propertyValue - The changed property's new value. | ||
\endlist | ||
*/ | ||
|
||
// Properties | ||
|
||
/*! | ||
\fn QString AbstractTool::toolName() const | ||
\brief Returns the name of this tool. | ||
*/ | ||
|
||
} // Toolkit | ||
|
Oops, something went wrong.