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 );
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;
231 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;
Abstract base class for a widgets which allows users to select content from a file,...
void sourceChanged(const QString &source)
Emitted whenever the file source is changed in the widget.
QgsPropertyOverrideButton * propertyOverrideToolButton() const
Returns the property override tool button.
A line edit widget with toolbutton for setting an animated raster image path.
QgsAnimatedImageSourceLineEdit(QWidget *parent=nullptr)
Constructor for QgsAnimatedImageSourceLineEdit, with the specified parent widget.
QLineEdit subclass with built in support for clearing the widget's value and handling custom null val...
A line edit widget with toolbutton for setting a raster image path.
QgsImageSourceLineEdit(QWidget *parent=nullptr)
Constructor for QgsImageSourceLineEdit, with the specified parent widget.
A bar for displaying non-blocking messages to the user.
A line edit widget with toolbutton for setting a raster image path.
QgsPictureSourceLineEditBase(Format format, QWidget *parent=nullptr)
Constructor for QgsImageSourceLineEdit, with the specified parent widget.
void setMode(Format format)
Defines the mode of the source line edit.
Format
Format of source image.
@ AnimatedImage
Animated image (since QGIS 3.26)
QgsPictureSourceLineEditBase(QWidget *parent=nullptr)
Constructor for QgsImageSourceLineEdit, with the specified parent widget.
A line edit widget with toolbutton for setting an SVG image path.
QgsSvgSourceLineEdit(QWidget *parent=nullptr)
Constructor for QgsSvgSourceLineEdit, with the specified parent widget.