16#ifndef QGSFILECONTENTSOURCELINEEDIT_H
17#define QGSFILECONTENTSOURCELINEEDIT_H
88 void setPropertyOverrideToolButtonVisible(
bool visible );
97 void setSource(
const QString &source );
113 virtual QString fileFilter()
const = 0;
118 virtual QString selectFileTitle()
const = 0;
123 virtual QString fileFromUrlTitle()
const = 0;
128 virtual QString fileFromUrlText()
const = 0;
133 virtual QString embedFileTitle()
const = 0;
138 virtual QString extractFileTitle()
const = 0;
143 virtual QString defaultSettingsKey()
const = 0;
153 void mFileLineEdit_textEdited(
const QString &text );
162 Mode mMode = ModeFile;
163 bool mPropertyOverrideButtonVisible =
false;
166 QToolButton *mFileToolButton =
nullptr;
168 QString mLastPathKey;
172 QString defaultPath()
const;
173 QString settingsKey()
const;
221 Format mFormat = Svg;
225 QString fileFilter()
const override;
226 QString selectFileTitle()
const override;
227 QString fileFromUrlTitle()
const override;
228 QString fileFromUrlText()
const override;
229 QString embedFileTitle()
const override;
230 QString extractFileTitle()
const override;
231 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.