QGIS/python/gui/auto_generated/qgssvgsourcelineedit.sip.in
Nyall Dawson 1a7ade7575 [FEATURE] Better UI for embedding SVG files
Adds a common widget for SVG sources, with a tool button with
some handy options:
- select file (old behaviour), pick a file from disk
- embed file (pick a file from disk, is embedded into project/symbol)
- extract embedded file (for embedded files, allows you to save these
back to a disk based svg file)
- from url (opens a dialog prompting for a url, exposing
the previously hidden functionality that svgs can be retrieved
from a remote url (eg github))

Sponsored by SMEC/SJ
2018-07-24 03:54:44 +10:00

72 lines
2.0 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgssvgsourcelineedit.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsSvgSourceLineEdit : QWidget
{
%Docstring
A line edit widget with toolbutton for setting an SVG image path.
.. versionadded:: 3.4
%End
%TypeHeaderCode
#include "qgssvgsourcelineedit.h"
%End
public:
QgsSvgSourceLineEdit( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsSvgSourceLineEdit, with the specified ``parent`` widget.
%End
QString source() const;
%Docstring
Returns the current SVG source.
.. 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
used path for the SVG source.
%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
Emitted whenever the SVG source is changed in the widget.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgssvgsourcelineedit.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/