16#ifndef QGSFILECONTENTSOURCELINEEDIT_H
17#define QGSFILECONTENTSOURCELINEEDIT_H
89 void setPropertyOverrideToolButtonVisible(
bool visible );
98 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 );
163 Mode mMode = ModeFile;
164 bool mPropertyOverrideButtonVisible =
false;
167 QToolButton *mFileToolButton =
nullptr;
169 QString mLastPathKey;
173 QString defaultPath()
const;
174 QString settingsKey()
const;
224 Format mFormat = Svg;
228 QString fileFilter()
const override;
229 QString selectFileTitle()
const override;
230 QString fileFromUrlTitle()
const override;
231 QString fileFromUrlText()
const override;
232 QString embedFileTitle()
const override;
233 QString extractFileTitle()
const override;
234 QString defaultSettingsKey()
const override;
void setLastPathSettingsKey(const QString &key)
Sets a specific settings key to use when storing the last used path for the file source.
void sourceChanged(const QString &source)
Emitted whenever the file source is changed in the widget.
void setMessageBar(QgsMessageBar *bar)
Sets the message bar associated with the widget.
QgsMessageBar * messageBar() const
Returns the message bar associated with the widget.
QgsPropertyOverrideButton * propertyOverrideToolButton() const
Returns the property override tool button.
void setSource(const QString &source)
Sets a new source to show in the widget.
QgsAbstractFileContentSourceLineEdit(QWidget *parent=nullptr)
Constructor for QgsAbstractFileContentSourceLineEdit, with the specified parent widget.
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...
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.
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.
QgsSvgSourceLineEdit(QWidget *parent=nullptr)
Constructor for QgsSvgSourceLineEdit, with the specified parent widget.