File: qgsmodelgraphicsview.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 (214 lines) | stat: -rw-r--r-- 5,191 bytes parent folder | download | duplicates (6)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/processing/models/qgsmodelgraphicsview.h                     *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/





class QgsModelGraphicsView : QGraphicsView
{
%Docstring(signature="appended")
QGraphicsView subclass representing the model designer.

.. warning::

   Not stable API

.. versionadded:: 3.14
%End

%TypeHeaderCode
#include "qgsmodelgraphicsview.h"
%End
  public:
    QgsModelGraphicsView( QWidget *parent = 0 );
%Docstring
Constructor for QgsModelGraphicsView, with the specified ``parent``
widget.
%End
    ~QgsModelGraphicsView();

    virtual void dragEnterEvent( QDragEnterEvent *event );

    virtual void dropEvent( QDropEvent *event );

    virtual void dragMoveEvent( QDragMoveEvent *event );

    virtual void wheelEvent( QWheelEvent *event );

    virtual void mousePressEvent( QMouseEvent *event );

    virtual void mouseReleaseEvent( QMouseEvent *event );

    virtual void mouseMoveEvent( QMouseEvent *event );

    virtual void mouseDoubleClickEvent( QMouseEvent *event );

    virtual void keyPressEvent( QKeyEvent *event );

    virtual void keyReleaseEvent( QKeyEvent *event );


    void setModelScene( QgsModelGraphicsScene *scene );
%Docstring
Sets the related ``scene``.
%End

    QgsModelGraphicsScene *modelScene() const;
%Docstring
Returns the scene associated with the tool.

.. seealso:: :py:func:`view`
%End





    void startMacroCommand( const QString &text );
%Docstring
Starts a macro command, containing a group of interactions in the view.
%End

    void endMacroCommand();
%Docstring
Ends a macro command, containing a group of interactions in the view.
%End


    enum ClipboardOperation /BaseType=IntEnum/
    {
      ClipboardCut,
      ClipboardCopy,
    };

    void copySelectedItems( ClipboardOperation operation );
%Docstring
Cuts or copies the selected items, respecting the specified
``operation``.

.. seealso:: :py:func:`copyItems`

.. seealso:: :py:func:`pasteItems`
%End

    void copyItems( const QList<QgsModelComponentGraphicItem *> &items, ClipboardOperation operation );
%Docstring
Cuts or copies the a list of ``items``, respecting the specified
``operation``.

.. seealso:: :py:func:`copySelectedItems`

.. seealso:: :py:func:`pasteItems`
%End

    enum PasteMode /BaseType=IntEnum/
    {
      PasteModeCursor,
      PasteModeCenter,
      PasteModeInPlace,
    };

    void pasteItems( PasteMode mode );
%Docstring
Pastes items from clipboard, using the specified ``mode``.

.. seealso:: :py:func:`copySelectedItems`

.. seealso:: :py:func:`hasItemsInClipboard`
%End

  public slots:

    void snapSelected();
%Docstring
Snaps the selected items to the grid.
%End

  signals:

    void algorithmDropped( const QString &algorithmId, const QPointF &pos );
%Docstring
Emitted when an algorithm is dropped onto the view.
%End

    void inputDropped( const QString &inputId, const QPointF &pos );
%Docstring
Emitted when an input parameter is dropped onto the view.
%End


    void itemFocused( QgsModelComponentGraphicItem *item );
%Docstring
Emitted when an ``item`` is "focused" in the view, i.e. it becomes the
active item and should have its properties displayed in any designer
windows.
%End

    void willBeDeleted();
%Docstring
Emitted in the destructor when the view is about to be deleted, but is
still in a perfectly valid state.
%End

    void macroCommandStarted( const QString &text );
%Docstring
Emitted when a macro command containing a group of interactions is
started in the view.
%End

    void macroCommandEnded();
%Docstring
Emitted when a macro command containing a group of interactions in the
view has ended.
%End

    void beginCommand( const QString &text );
%Docstring
Emitted when an undo command is started in the view.
%End

    void endCommand();
%Docstring
Emitted when an undo command in the view has ended.
%End

    void deleteSelectedItems();
%Docstring
Emitted when the selected items should be deleted;
%End

};


class QgsModelViewSnapMarker : QGraphicsRectItem
{
%Docstring(signature="appended")
A simple graphics item rendered as an 'x'.
%End

%TypeHeaderCode
#include "qgsmodelgraphicsview.h"
%End
  public:
    QgsModelViewSnapMarker();

    virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0 );


};



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