File: qgslayoutcustomdrophandler.sip.in

package info (click to toggle)
qgis 3.40.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,183,672 kB
  • sloc: cpp: 1,595,771; python: 372,544; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,257; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 161
file content (89 lines) | stat: -rw-r--r-- 3,340 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/layout/qgslayoutcustomdrophandler.h                          *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/




class QgsLayoutCustomDropHandler : QObject
{
%Docstring(signature="appended")
Abstract base class that may be implemented to handle new types of data
to be dropped or pasted in QGIS layouts.
%End

%TypeHeaderCode
#include "qgslayoutcustomdrophandler.h"
%End
  public:
    QgsLayoutCustomDropHandler( QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsLayoutCustomDropHandler.
%End

 virtual bool handleFileDrop( QgsLayoutDesignerInterface *iface, const QString &file ) /Deprecated/;
%Docstring
Called when the specified ``file`` has been dropped onto a QGIS layout.
If ``True`` is returned, then the handler has accepted this file and it
should not be further processed (e.g. by other
QgsLayoutCustomDropHandler).

The base class implementation does nothing.

.. deprecated:: 3.40

   Use the version which specifies a drop location instead.
%End

    virtual bool handleFileDrop( QgsLayoutDesignerInterface *iface, QPointF dropPoint, const QString &file );
%Docstring
Called when the specified ``file`` has been dropped onto a QGIS layout.
If ``True`` is returned, then the handler has accepted this file and it
should not be further processed (e.g. by other
QgsLayoutCustomDropHandler).

The ``dropPoint`` point specifies the location (in layout coordinates)
at which the drop occurred.

The base class implementation does nothing.

.. versionadded:: 3.12
%End

    virtual bool handlePaste( QgsLayoutDesignerInterface *iface, QPointF pastePoint, const QMimeData *data, QList<QgsLayoutItem *> &pastedItems /Out/ );
%Docstring
Called when the specified MIME ``data`` has been pasted onto a QGIS
layout. If ``True`` is returned, then the handler has accepted this data
and it should not be further processed (e.g. by other
QgsLayoutCustomDropHandler).

The ``pastePoint`` point specifies the location (in layout coordinates)
at which the paste occurred.

The base class implementation does nothing.

:param iface: pointer to the layout designer interface
:param pastePoint: layout point at which the paste should occur
:param data: MIME data to paste

:return: - ``True`` if the handler accepted and processed the paste
           operation
         - pastedItems: should be filled with any newly created items as
           a result of the paste

.. versionadded:: 3.14
%End
};


/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/layout/qgslayoutcustomdrophandler.h                          *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/