1
1
/************************************************************************
2
2
* This file has been generated automatically from *
3
3
* *
4
- * src/gui/qgssvgsourcelineedit.h *
4
+ * src/gui/qgsfilecontentsourcelineedit.h *
5
5
* *
6
6
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
7
7
************************************************************************/
8
8
9
9
10
10
11
11
12
- class QgsSvgSourceLineEdit : QWidget
12
+ class QgsAbstractFileContentSourceLineEdit : QWidget /Abstract/
13
13
{
14
14
%Docstring
15
- A line edit widget with toolbutton for setting an SVG image path .
15
+ Abstract base class for a widgets which allows users to select content from a file, embedding a file, etc .
16
16
17
- .. versionadded:: 3.4
17
+ This class is designed to be used by content which is managed by a QgsAbstractContentCache,
18
+ i.e. it can handle either direct file paths, base64 encoded contents, or remote HTTP
19
+ urls.
20
+
21
+ .. versionadded:: 3.6
18
22
%End
19
23
20
24
%TypeHeaderCode
21
- #include "qgssvgsourcelineedit .h"
25
+ #include "qgsfilecontentsourcelineedit .h"
22
26
%End
23
27
public:
24
28
25
- QgsSvgSourceLineEdit ( QWidget *parent /TransferThis/ = 0 );
29
+ QgsAbstractFileContentSourceLineEdit ( QWidget *parent /TransferThis/ = 0 );
26
30
%Docstring
27
- Constructor for QgsSvgSourceLineEdit , with the specified ``parent`` widget.
31
+ Constructor for QgsAbstractFileContentSourceLineEdit , with the specified ``parent`` widget.
28
32
%End
29
33
30
34
QString source() const;
31
35
%Docstring
32
- Returns the current SVG source.
36
+ Returns the current file source.
33
37
34
38
.. seealso:: :py:func:`setSource`
35
39
@@ -39,7 +43,7 @@ Returns the current SVG source.
39
43
void setLastPathSettingsKey( const QString &key );
40
44
%Docstring
41
45
Sets a specific settings ``key`` to use when storing the last
42
- used path for the SVG source.
46
+ used path for the file source.
43
47
%End
44
48
45
49
public slots:
@@ -57,15 +61,64 @@ Sets a new ``source`` to show in the widget.
57
61
58
62
void sourceChanged( const QString &source );
59
63
%Docstring
60
- Emitted whenever the SVG source is changed in the widget.
64
+ Emitted whenever the file source is changed in the widget.
65
+ %End
66
+
67
+ };
68
+
69
+ class QgsSvgSourceLineEdit : QgsAbstractFileContentSourceLineEdit
70
+ {
71
+ %Docstring
72
+ A line edit widget with toolbutton for setting an SVG image path.
73
+
74
+ Designed for use with :py:class:`QgsSvgCache`.
75
+
76
+ .. seealso:: :py:class:`QgsImageSourceLineEdit`
77
+
78
+ .. versionadded:: 3.4
79
+ %End
80
+
81
+ %TypeHeaderCode
82
+ #include "qgsfilecontentsourcelineedit.h"
83
+ %End
84
+ public:
85
+
86
+ QgsSvgSourceLineEdit( QWidget *parent /TransferThis/ = 0 );
87
+ %Docstring
88
+ Constructor for QgsSvgSourceLineEdit, with the specified ``parent`` widget.
89
+ %End
90
+
91
+ };
92
+
93
+
94
+ class QgsImageSourceLineEdit : QgsAbstractFileContentSourceLineEdit
95
+ {
96
+ %Docstring
97
+ A line edit widget with toolbutton for setting a raster image path.
98
+
99
+ Designed for use with :py:class:`QgsImageCache`.
100
+
101
+ .. seealso:: :py:class:`QgsSvgSourceLineEdit`
102
+
103
+ .. versionadded:: 3.6
104
+ %End
105
+
106
+ %TypeHeaderCode
107
+ #include "qgsfilecontentsourcelineedit.h"
108
+ %End
109
+ public:
110
+
111
+ QgsImageSourceLineEdit( QWidget *parent /TransferThis/ = 0 );
112
+ %Docstring
113
+ Constructor for QgsImageSourceLineEdit, with the specified ``parent`` widget.
61
114
%End
62
115
63
116
};
64
117
65
118
/************************************************************************
66
119
* This file has been generated automatically from *
67
120
* *
68
- * src/gui/qgssvgsourcelineedit.h *
121
+ * src/gui/qgsfilecontentsourcelineedit.h *
69
122
* *
70
123
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
71
124
************************************************************************/
0 commit comments