File: qgsattributeformwidget.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 (159 lines) | stat: -rw-r--r-- 4,373 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
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/qgsattributeformwidget.h                                     *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/




class QgsAttributeFormWidget : QWidget /Abstract/
{
%Docstring(signature="appended")
Base class for all widgets shown on a :py:class:`QgsAttributeForm`.
Consists of the widget which is visible in edit mode as well as the
widget visible in search mode.
%End

%TypeHeaderCode
#include "qgsattributeformwidget.h"
%End
  public:
    enum Mode /BaseType=IntEnum/
    {
      DefaultMode,
      MultiEditMode,
      SearchMode,
      AggregateSearchMode,
    };

    explicit QgsAttributeFormWidget( QgsWidgetWrapper *widget, QgsAttributeForm *form );
%Docstring
A new form widget for the wrapper ``widget`` on ``form``.
%End

    ~QgsAttributeFormWidget();

    virtual void createSearchWidgetWrappers() = 0;
%Docstring
Creates the search widget wrappers for the widget used when the form is
in search mode.


%End

    virtual QString currentFilterExpression() const;
%Docstring
Creates an expression matching the current search filter value and
search properties represented in the widget.
%End


    void setMode( Mode mode );
%Docstring
Sets the current mode for the widget. The widget will adapt its state
and visible widgets to reflect the updated mode. For example, showing
multi edit tool buttons if the mode is set to MultiEditMode.

:param mode: widget mode

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

    Mode mode() const;
%Docstring
Returns the current mode for the widget.

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

    QgsVectorLayer *layer();
%Docstring
The layer for which this widget and its form is shown.
%End

    QgsAttributeForm *form() const;
%Docstring
The form on which this widget is shown.
%End



    void setSearchWidgetWrapper( QgsSearchWidgetWrapper *wrapper );
%Docstring
Sets the search widget wrapper for the widget used when the form is in
search mode.

:param wrapper: search widget wrapper.

.. note::

   the search widget wrapper should be created using :py:func:`~QgsAttributeFormWidget.searchWidgetFrame`
   as its parent

.. note::

   this method is in place for unit testing only, and is not considered
   stable API
%End

    void addAdditionalSearchWidgetWrapper( QgsSearchWidgetWrapper *wrapper );
%Docstring
Adds an additional search widget wrapper. Used to register a secondary
search widget as used for "between" searches.
%End

    QList<QgsSearchWidgetWrapper *> searchWidgetWrappers();
%Docstring
Returns the search widget wrapper used in this widget. The wrapper must
first be created using
:py:func:`~QgsAttributeFormWidget.createSearchWidgetWrapper`

.. note::

   this method is in place for unit testing only, and is not considered
   stable API
%End

    void resetSearch();
%Docstring
Resets the search/filter value of the widget.
%End

    bool searchWidgetToolButtonVisible() const;
%Docstring
The visibility of the search widget tool button, that allows
(de)activating this search widgte or defines the comparison operator to
use.
%End

    void setSearchWidgetToolButtonVisible( bool searchWidgetToolButtonVisible );
%Docstring
The visibility of the search widget tool button, that allows
(de)activating this search widgte or defines the comparison operator to
use.
%End

  protected:



    void setVisiblePageForMode( QgsAttributeFormWidget::Mode mode );
%Docstring
Sets the visible page in the widget to the page matching the specified
``mode``.

.. versionadded:: 3.32
%End

};

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