QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSFILECONTENTSOURCELINEEDIT_H
17 #define QGSFILECONTENTSOURCELINEEDIT_H
43 Q_PROPERTY( QString source READ source WRITE setSource NOTIFY sourceChanged )
70 QString source()
const;
76 void setLastPathSettingsKey(
const QString &key );
88 void setPropertyOverrideToolButtonVisible(
bool visible );
97 void setSource(
const QString &source );
104 void sourceChanged(
const QString &source );
114 virtual QString fileFilter()
const = 0;
119 virtual QString selectFileTitle()
const = 0;
124 virtual QString fileFromUrlTitle()
const = 0;
129 virtual QString fileFromUrlText()
const = 0;
134 virtual QString embedFileTitle()
const = 0;
139 virtual QString extractFileTitle()
const = 0;
144 virtual QString defaultSettingsKey()
const = 0;
154 void mFileLineEdit_textEdited(
const QString &text );
164 Mode mMode = ModeFile;
165 bool mPropertyOverrideButtonVisible =
false;
168 QToolButton *mFileToolButton =
nullptr;
170 QString mLastPathKey;
174 QString defaultPath()
const;
175 QString settingsKey()
const;
227 Format mFormat = Svg;
230 QString fileFilter()
const override;
232 QString selectFileTitle()
const override;
233 QString fileFromUrlTitle()
const override;
234 QString fileFromUrlText()
const override;
235 QString embedFileTitle()
const override;
236 QString extractFileTitle()
const override;
237 QString defaultSettingsKey()
const override;
316 #endif // QGSFILECONTENTSOURCELINEEDIT_H
A line edit widget with toolbutton for setting an animated raster image path.
QLineEdit subclass with built in support for clearing the widget's value and handling custom null val...
void setMode(Format format)
Defines the mode of the source line edit.
QgsPictureSourceLineEditBase(QWidget *parent=nullptr)
Constructor for QgsImageSourceLineEdit, with the specified parent widget.
QgsSvgSourceLineEdit(QWidget *parent=nullptr)
Constructor for QgsSvgSourceLineEdit, with the specified parent widget.
@ AnimatedImage
Animated image (since QGIS 3.26)
Abstract base class for a widgets which allows users to select content from a file,...
QgsImageSourceLineEdit(QWidget *parent=nullptr)
Constructor for QgsImageSourceLineEdit, with the specified parent widget.
A bar for displaying non-blocking messages to the user.
QgsPictureSourceLineEditBase(Format format, QWidget *parent=nullptr)
Constructor for QgsImageSourceLineEdit, with the specified parent widget.
A line edit widget with toolbutton for setting a raster image path.
QgsAnimatedImageSourceLineEdit(QWidget *parent=nullptr)
Constructor for QgsAnimatedImageSourceLineEdit, with the specified parent widget.
Format
Format of source image.
A line edit widget with toolbutton for setting an SVG image path.
A line edit widget with toolbutton for setting a raster image path.
QgsPropertyOverrideButton * propertyOverrideToolButton() const
Returns the property override tool button.