16#ifndef QGSFILECONTENTSOURCELINEEDIT_H
17#define QGSFILECONTENTSOURCELINEEDIT_H
43 Q_PROPERTY( QString source READ source WRITE setSource NOTIFY sourceChanged )
69 QString source()
const;
75 void setLastPathSettingsKey(
const QString &key );
87 void setPropertyOverrideToolButtonVisible(
bool visible );
96 void setSource(
const QString &source );
112 virtual QString fileFilter()
const = 0;
117 virtual QString selectFileTitle()
const = 0;
122 virtual QString fileFromUrlTitle()
const = 0;
127 virtual QString fileFromUrlText()
const = 0;
132 virtual QString embedFileTitle()
const = 0;
137 virtual QString extractFileTitle()
const = 0;
142 virtual QString defaultSettingsKey()
const = 0;
152 void mFileLineEdit_textEdited(
const QString &text );
161 Mode mMode = ModeFile;
162 bool mPropertyOverrideButtonVisible =
false;
165 QToolButton *mFileToolButton =
nullptr;
167 QString mLastPathKey;
171 QString defaultPath()
const;
172 QString settingsKey()
const;
220 Format mFormat = Svg;
224 QString fileFilter()
const override;
225 QString selectFileTitle()
const override;
226 QString fileFromUrlTitle()
const override;
227 QString fileFromUrlText()
const override;
228 QString embedFileTitle()
const override;
229 QString extractFileTitle()
const override;
230 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.
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.