/
qgsmaplayerconfigwidgetfactory.sip.in
135 lines (97 loc) · 3.62 KB
/
qgsmaplayerconfigwidgetfactory.sip.in
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
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsmaplayerconfigwidgetfactory.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsMapLayerConfigWidgetFactory
{
%Docstring
Factory class for creating custom map layer property pages
.. versionadded:: 2.16
%End
%TypeHeaderCode
#include "qgsmaplayerconfigwidgetfactory.h"
%End
public:
QgsMapLayerConfigWidgetFactory();
%Docstring
Constructor
%End
QgsMapLayerConfigWidgetFactory( const QString &title, const QIcon &icon );
%Docstring
Constructor
%End
virtual ~QgsMapLayerConfigWidgetFactory();
virtual QIcon icon() const;
%Docstring
The icon that will be shown in the UI for the panel.
:return: A QIcon for the panel icon.
%End
void setIcon( const QIcon &icon );
%Docstring
Set the icon for the factory object.
:param icon: The icon to show in the interface.
%End
virtual QString title() const;
%Docstring
The title of the panel.
:return: Title of the panel
.. note::
This may or may not be shown to the user.
%End
void setTitle( const QString &title );
%Docstring
Set the title for the interface
.. note::
Not all users may show this as a label
e.g style dock uses this as a tooltip.
:param title: The title to set.
%End
virtual bool supportsStyleDock() const;
%Docstring
Flag if widget is supported for use in style dock.
The default implementation returns ``False``.
:return: ``True`` if supported
%End
void setSupportsStyleDock( bool supports );
%Docstring
Set support flag for style dock
:param supports: ``True`` if this widget is supported in the style dock.
%End
virtual bool supportLayerPropertiesDialog() const;
%Docstring
Flag if widget is supported for use in layer properties dialog.
The default implementation returns ``False``.
:return: ``True`` if supported
%End
void setSupportLayerPropertiesDialog( bool supports );
%Docstring
Set support flag for style dock
:param supports: ``True`` if this widget is supported in the style dock.
%End
virtual bool supportsLayer( QgsMapLayer *layer ) const;
%Docstring
Check if the layer is supported for this widget.
:return: ``True`` if this layer is supported for this widget
%End
virtual QgsMapLayerConfigWidget *createWidget( QgsMapLayer *layer, QgsMapCanvas *canvas, bool dockWidget = true, QWidget *parent = 0 ) const = 0 /Factory/;
%Docstring
Factory function to create the widget on demand as needed by the dock.
:param layer: The active layer in the dock.
:param canvas: The map canvas.
:param dockWidget: ``True`` of the widget will be shown a dock style widget.
:param parent: The parent of the widget.
:return: A new QgsMapStylePanel which is shown in the map style dock.
.. note::
This function is called each time the panel is selected. Keep it light for better UX.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsmaplayerconfigwidgetfactory.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/