2018-07-18 15:48:42 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2018-12-05 18:22:44 +10:00
|
|
|
* src/gui/qgsfilecontentsourcelineedit.h *
|
2018-07-18 15:48:42 +10:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-12-05 18:22:44 +10:00
|
|
|
class QgsAbstractFileContentSourceLineEdit : QWidget /Abstract/
|
2018-07-18 15:48:42 +10:00
|
|
|
{
|
2021-03-22 21:13:52 +01:00
|
|
|
%Docstring(signature="appended")
|
2018-12-05 18:22:44 +10:00
|
|
|
Abstract base class for a widgets which allows users to select content from a file, embedding a file, etc.
|
2018-07-18 15:48:42 +10:00
|
|
|
|
2021-01-30 09:16:35 +10:00
|
|
|
This class is designed to be used by content which is managed by a :py:class:`QgsAbstractContentCache`,
|
2018-12-05 18:22:44 +10:00
|
|
|
i.e. it can handle either direct file paths, base64 encoded contents, or remote HTTP
|
|
|
|
urls.
|
|
|
|
|
|
|
|
.. versionadded:: 3.6
|
2018-07-18 15:48:42 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
2018-12-05 18:22:44 +10:00
|
|
|
#include "qgsfilecontentsourcelineedit.h"
|
2018-07-18 15:48:42 +10:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2018-12-05 18:22:44 +10:00
|
|
|
QgsAbstractFileContentSourceLineEdit( QWidget *parent /TransferThis/ = 0 );
|
2018-07-18 15:48:42 +10:00
|
|
|
%Docstring
|
2018-12-05 18:22:44 +10:00
|
|
|
Constructor for QgsAbstractFileContentSourceLineEdit, with the specified ``parent`` widget.
|
2018-12-06 13:01:50 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
void setMessageBar( QgsMessageBar *bar );
|
|
|
|
%Docstring
|
|
|
|
Sets the message ``bar`` associated with the widget. This allows the widget to push feedback messages
|
|
|
|
to the appropriate message bar.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`messageBar`
|
|
|
|
%End
|
|
|
|
|
|
|
|
QgsMessageBar *messageBar() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the message bar associated with the widget.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`setMessageBar`
|
2018-07-18 15:48:42 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
QString source() const;
|
|
|
|
%Docstring
|
2018-12-05 18:22:44 +10:00
|
|
|
Returns the current file source.
|
2018-07-18 15:48:42 +10:00
|
|
|
|
|
|
|
.. seealso:: :py:func:`setSource`
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`sourceChanged`
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setLastPathSettingsKey( const QString &key );
|
|
|
|
%Docstring
|
|
|
|
Sets a specific settings ``key`` to use when storing the last
|
2018-12-05 18:22:44 +10:00
|
|
|
used path for the file source.
|
2020-10-16 15:48:31 +02:00
|
|
|
%End
|
|
|
|
|
2020-10-21 12:17:01 +02:00
|
|
|
QgsPropertyOverrideButton *propertyOverrideToolButton() const;
|
2020-10-16 15:48:31 +02:00
|
|
|
%Docstring
|
2020-10-21 12:17:01 +02:00
|
|
|
Returns the property override tool button
|
|
|
|
|
|
|
|
.. versionadded:: 3.16
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setPropertyOverrideToolButtonVisible( bool visible );
|
|
|
|
%Docstring
|
|
|
|
Sets the visibility of the property override tool button
|
2020-10-16 15:48:31 +02:00
|
|
|
|
|
|
|
.. versionadded:: 3.16
|
2018-07-18 15:48:42 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
void setSource( const QString &source );
|
|
|
|
%Docstring
|
|
|
|
Sets a new ``source`` to show in the widget.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`source`
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`sourceChanged`
|
|
|
|
%End
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
void sourceChanged( const QString &source );
|
|
|
|
%Docstring
|
2018-12-05 18:22:44 +10:00
|
|
|
Emitted whenever the file source is changed in the widget.
|
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2021-05-07 13:54:34 +02:00
|
|
|
|
|
|
|
|
2021-05-10 13:35:04 +02:00
|
|
|
class QgsPictureSourceLineEditBase : QgsAbstractFileContentSourceLineEdit
|
2021-05-07 13:54:34 +02:00
|
|
|
{
|
|
|
|
%Docstring(signature="appended")
|
|
|
|
A line edit widget with toolbutton for setting a raster image path.
|
|
|
|
|
|
|
|
.. seealso:: :py:class:`QgsSvgSourceLineEdit`
|
|
|
|
|
|
|
|
.. versionadded:: 3.20
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsfilecontentsourcelineedit.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
enum Format
|
|
|
|
{
|
|
|
|
Svg,
|
|
|
|
Image,
|
2022-04-03 07:16:26 +10:00
|
|
|
AnimatedImage,
|
2021-05-07 13:54:34 +02:00
|
|
|
};
|
|
|
|
|
2021-05-10 13:35:04 +02:00
|
|
|
QgsPictureSourceLineEditBase( QWidget *parent /TransferThis/ = 0 );
|
2021-05-07 13:54:34 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor for :py:class:`QgsImageSourceLineEdit`, with the specified ``parent`` widget.
|
2021-05-10 13:35:04 +02:00
|
|
|
The default format is SVG.
|
2021-05-07 13:54:34 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
void setMode( Format format );
|
|
|
|
%Docstring
|
|
|
|
Defines the mode of the source line edit
|
|
|
|
%End
|
|
|
|
|
2021-10-19 23:30:56 +02:00
|
|
|
protected:
|
2021-05-07 13:54:34 +02:00
|
|
|
|
2021-05-10 13:35:04 +02:00
|
|
|
QgsPictureSourceLineEditBase( Format format, QWidget *parent /TransferThis/ = 0 );
|
2021-05-07 13:54:34 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor for :py:class:`QgsImageSourceLineEdit`, with the specified ``parent`` widget.
|
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-05-10 13:35:04 +02:00
|
|
|
class QgsSvgSourceLineEdit : QgsPictureSourceLineEditBase
|
2018-12-05 18:22:44 +10:00
|
|
|
{
|
2021-03-22 21:13:52 +01:00
|
|
|
%Docstring(signature="appended")
|
2018-12-05 18:22:44 +10:00
|
|
|
A line edit widget with toolbutton for setting an SVG image path.
|
|
|
|
|
|
|
|
Designed for use with :py:class:`QgsSvgCache`.
|
|
|
|
|
|
|
|
.. seealso:: :py:class:`QgsImageSourceLineEdit`
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsfilecontentsourcelineedit.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsSvgSourceLineEdit( QWidget *parent /TransferThis/ = 0 );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsSvgSourceLineEdit, with the specified ``parent`` widget.
|
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
2021-05-10 13:35:04 +02:00
|
|
|
class QgsImageSourceLineEdit : QgsPictureSourceLineEditBase
|
2018-12-05 18:22:44 +10:00
|
|
|
{
|
2021-03-22 21:13:52 +01:00
|
|
|
%Docstring(signature="appended")
|
2018-12-05 18:22:44 +10:00
|
|
|
A line edit widget with toolbutton for setting a raster image path.
|
|
|
|
|
|
|
|
Designed for use with :py:class:`QgsImageCache`.
|
|
|
|
|
|
|
|
.. seealso:: :py:class:`QgsSvgSourceLineEdit`
|
|
|
|
|
|
|
|
.. versionadded:: 3.6
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsfilecontentsourcelineedit.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsImageSourceLineEdit( QWidget *parent /TransferThis/ = 0 );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsImageSourceLineEdit, with the specified ``parent`` widget.
|
2018-07-18 15:48:42 +10:00
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
2022-04-03 07:16:26 +10:00
|
|
|
|
|
|
|
class QgsAnimatedImageSourceLineEdit : QgsPictureSourceLineEditBase
|
|
|
|
{
|
|
|
|
%Docstring(signature="appended")
|
|
|
|
A line edit widget with toolbutton for setting an animated raster image path.
|
|
|
|
|
|
|
|
Designed for use with :py:class:`QgsImageCache`.
|
|
|
|
|
|
|
|
.. seealso:: :py:class:`QgsImageSourceLineEdit`
|
|
|
|
|
|
|
|
.. versionadded:: 3.26
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsfilecontentsourcelineedit.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsAnimatedImageSourceLineEdit( QWidget *parent /TransferThis/ = 0 );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsAnimatedImageSourceLineEdit, with the specified ``parent`` widget.
|
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
2018-07-18 15:48:42 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2018-12-05 18:22:44 +10:00
|
|
|
* src/gui/qgsfilecontentsourcelineedit.h *
|
2018-07-18 15:48:42 +10:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|