16 #ifndef QGSFILECONTENTSOURCELINEEDIT_H 17 #define QGSFILECONTENTSOURCELINEEDIT_H 43 class GUI_EXPORT QgsAbstractFileContentSourceLineEdit :
public QWidget
SIP_ABSTRACT 47 Q_PROPERTY( QString source READ source WRITE setSource NOTIFY sourceChanged )
54 QgsAbstractFileContentSourceLineEdit( QWidget *parent
SIP_TRANSFERTHIS =
nullptr );
74 QString source()
const;
80 void setLastPathSettingsKey(
const QString &key );
89 void setSource(
const QString &source );
96 void sourceChanged(
const QString &source );
106 virtual QString fileFilter()
const = 0;
111 virtual QString selectFileTitle()
const = 0;
116 virtual QString fileFromUrlTitle()
const = 0;
121 virtual QString fileFromUrlText()
const = 0;
126 virtual QString embedFileTitle()
const = 0;
131 virtual QString extractFileTitle()
const = 0;
136 virtual QString defaultSettingsKey()
const = 0;
146 void mFileLineEdit_textEdited(
const QString &text );
156 Mode mMode = ModeFile;
159 QToolButton *mFileToolButton =
nullptr;
160 QString mLastPathKey;
164 QString defaultPath()
const;
165 QString settingsKey()
const;
189 : QgsAbstractFileContentSourceLineEdit( parent )
195 QString fileFilter()
const override;
197 QString selectFileTitle()
const override;
198 QString fileFromUrlTitle()
const override;
199 QString fileFromUrlText()
const override;
200 QString embedFileTitle()
const override;
201 QString extractFileTitle()
const override;
202 QString defaultSettingsKey()
const override;
228 : QgsAbstractFileContentSourceLineEdit( parent )
233 QString fileFilter()
const override;
235 QString selectFileTitle()
const override;
236 QString fileFromUrlTitle()
const override;
237 QString fileFromUrlText()
const override;
238 QString embedFileTitle()
const override;
239 QString extractFileTitle()
const override;
240 QString defaultSettingsKey()
const override;
245 #endif // QGSFILECONTENTSOURCELINEEDIT_H
QgsImageSourceLineEdit(QWidget *parent=nullptr)
Constructor for QgsImageSourceLineEdit, with the specified parent widget.
A bar for displaying non-blocking messages to the user.
QgsSvgSourceLineEdit(QWidget *parent=nullptr)
Constructor for QgsSvgSourceLineEdit, with the specified parent widget.
A line edit widget with toolbutton for setting a raster image path.
Abstract base class for a widgets which allows users to select content from a file, embedding a file, etc.
A line edit widget with toolbutton for setting an SVG image path.
QLineEdit subclass with built in support for clearing the widget's value and handling custom null val...