2017-12-04 13:09:58 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/layout/qgslayoutcustomdrophandler.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-04 15:36:14 +10:00
|
|
|
|
2017-12-04 13:09:58 +10:00
|
|
|
class QgsLayoutCustomDropHandler : QObject
|
|
|
|
{
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Abstract base class that may be implemented to handle new types of data to be dropped in QGIS layouts.
|
2017-12-04 13:09:58 +10:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslayoutcustomdrophandler.h"
|
|
|
|
%End
|
|
|
|
public:
|
2017-12-04 15:36:14 +10:00
|
|
|
|
|
|
|
QgsLayoutCustomDropHandler( QObject *parent /TransferThis/ = 0 );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsLayoutCustomDropHandler.
|
2017-12-04 15:36:14 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
virtual bool handleFileDrop( QgsLayoutDesignerInterface *iface, const QString &file );
|
2017-12-04 13:09:58 +10:00
|
|
|
%Docstring
|
2019-02-26 19:54:09 +10:00
|
|
|
Called when the specified ``file`` has been dropped onto a QGIS layout. If ``True``
|
2017-12-15 10:36:55 -04:00
|
|
|
is returned, then the handler has accepted this file and it should not
|
|
|
|
be further processed (e.g. by other QgsLayoutCustomDropHandler).
|
2017-12-04 13:09:58 +10:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
The base class implementation does nothing.
|
2017-12-04 13:09:58 +10:00
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/layout/qgslayoutcustomdrophandler.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|