QGIS/python/gui/symbology/qgssvgselectorwidget.sip

132 lines
3.7 KiB
Plaintext
Raw Normal View History

2017-06-08 15:30:38 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
2017-08-06 13:39:03 +02:00
* src/gui/symbology/qgssvgselectorwidget.h *
2017-06-08 15:30:38 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsSvgSelectorListModel : QAbstractListModel
{
2017-06-08 15:30:38 +02:00
%Docstring
A model for displaying SVG files with a preview icon. Population of the model is performed in
a background thread to ensure that initial creation of the model is responsive and does
not block the GUI.
%End
%TypeHeaderCode
2017-06-08 15:30:38 +02:00
#include "qgssvgselectorwidget.h"
%End
public:
2017-06-08 15:30:38 +02:00
QgsSvgSelectorListModel( QObject *parent /TransferThis/, int iconSize = 30 );
2017-06-08 15:30:38 +02:00
%Docstring
Constructor for QgsSvgSelectorListModel. All SVGs in folders from the application SVG
search paths will be shown.
\param parent parent object
\param iconSize desired size of SVG icons to create
2017-06-08 15:30:38 +02:00
%End
QgsSvgSelectorListModel( QObject *parent /TransferThis/, const QString &path, int iconSize = 30 );
2017-06-08 15:30:38 +02:00
%Docstring
Constructor for creating a model for SVG files in a specific path.
\param parent parent object
\param path initial path, which is recursively searched
\param iconSize desired size of SVG icons to create
2017-06-08 15:30:38 +02:00
%End
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;
2017-06-08 15:30:38 +02:00
virtual QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const;
protected:
};
2017-06-08 15:30:38 +02:00
class QgsSvgSelectorGroupsModel : QStandardItemModel
{
2017-06-08 15:30:38 +02:00
%Docstring
A model for displaying SVG search paths. Population of the model is performed in
a background thread to ensure that initial creation of the model is responsive and does
not block the GUI.
%End
%TypeHeaderCode
2017-06-08 15:30:38 +02:00
#include "qgssvgselectorwidget.h"
%End
public:
QgsSvgSelectorGroupsModel( QObject *parent /TransferThis/ );
2017-06-08 15:30:38 +02:00
~QgsSvgSelectorGroupsModel();
2017-06-08 15:30:38 +02:00
};
class QgsSvgSelectorWidget : QWidget
{
2017-06-08 15:30:38 +02:00
%TypeHeaderCode
2017-06-08 15:30:38 +02:00
#include "qgssvgselectorwidget.h"
%End
public:
QgsSvgSelectorWidget( QWidget *parent /TransferThis/ = 0 );
~QgsSvgSelectorWidget();
QString currentSvgPath() const;
2017-06-08 15:30:38 +02:00
%Docstring
:rtype: str
%End
public slots:
void setSvgPath( const QString &svgPath );
2017-06-08 15:30:38 +02:00
%Docstring
Accepts absolute paths
%End
signals:
void svgSelected( const QString &path );
protected:
void populateList();
2017-06-08 15:30:38 +02:00
};
class QgsSvgSelectorDialog : QDialog
{
2017-06-08 15:30:38 +02:00
%TypeHeaderCode
2017-06-08 15:30:38 +02:00
#include "qgssvgselectorwidget.h"
%End
public:
2017-06-08 15:30:38 +02:00
QgsSvgSelectorDialog( QWidget *parent /TransferThis/ = 0,
Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags,
QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Close | QDialogButtonBox::Ok,
Qt::Orientation orientation = Qt::Horizontal );
2017-06-08 15:30:38 +02:00
%Docstring
Constructor for QgsSvgSelectorDialog.
%End
~QgsSvgSelectorDialog();
QgsSvgSelectorWidget *svgSelector();
2017-06-08 15:30:38 +02:00
%Docstring
Returns pointer to the embedded SVG selector widget
:rtype: QgsSvgSelectorWidget
%End
2017-06-08 15:30:38 +02:00
protected:
};
2017-06-08 15:30:38 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
2017-08-06 13:39:03 +02:00
* src/gui/symbology/qgssvgselectorwidget.h *
2017-06-08 15:30:38 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/