2017-05-23 14:39:33 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgscustomdrophandler.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-08-09 08:49:42 +02:00
|
|
|
class QgsCustomDropHandler
|
|
|
|
{
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
|
|
|
Abstract base class that may be implemented to handle new types of data to be dropped in QGIS.
|
|
|
|
Implementations will be used when a QgsMimeDataUtils.Uri has layerType equal to "custom",
|
|
|
|
and the providerKey is equal to key() returned by the implementation.
|
|
|
|
.. versionadded:: 3.0
|
2016-08-09 08:49:42 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-23 14:39:33 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgscustomdrophandler.h"
|
|
|
|
%End
|
2016-08-09 08:49:42 +02:00
|
|
|
public:
|
|
|
|
virtual ~QgsCustomDropHandler();
|
|
|
|
|
|
|
|
virtual QString key() const = 0;
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
|
|
|
Type of custom URI recognized by the handler
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2016-08-09 08:49:42 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
virtual void handleDrop( const QgsMimeDataUtils::Uri &uri ) const = 0;
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
|
|
|
Method called from QGIS after a drop event with custom URI known by the handler
|
|
|
|
%End
|
2016-08-09 08:49:42 +02:00
|
|
|
};
|
2017-05-23 14:39:33 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgscustomdrophandler.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|