mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-06 00:05:02 -05:00
Better reflects what this namespace contains, and replaces the non-standard Qgis prefix with the Qgs standard
63 lines
1.6 KiB
Plaintext
63 lines
1.6 KiB
Plaintext
class QgsSvgSelectorListModel : QAbstractListModel
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgssvgselectorwidget.h>
|
|
%End
|
|
public:
|
|
QgsSvgSelectorListModel( QObject *parent /TransferThis/ );
|
|
|
|
// Constructor to create model for icons in a specific path
|
|
QgsSvgSelectorListModel( QObject *parent /TransferThis/, const QString &path );
|
|
|
|
int rowCount( const QModelIndex &parent = QModelIndex() ) const;
|
|
|
|
QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const;
|
|
};
|
|
|
|
class QgsSvgSelectorGroupsModel : QStandardItemModel
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgssvgselectorwidget.h>
|
|
%End
|
|
public:
|
|
QgsSvgSelectorGroupsModel( QObject *parent /TransferThis/ );
|
|
};
|
|
|
|
|
|
class QgsSvgSelectorWidget : QWidget
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgssvgselectorwidget.h>
|
|
%End
|
|
public:
|
|
QgsSvgSelectorWidget( QWidget *parent /TransferThis/ = 0 );
|
|
~QgsSvgSelectorWidget();
|
|
|
|
QString currentSvgPath() const;
|
|
|
|
public slots:
|
|
void setSvgPath( const QString &svgPath );
|
|
|
|
signals:
|
|
void svgSelected( const QString &path );
|
|
|
|
protected:
|
|
void populateList();
|
|
};
|
|
|
|
class QgsSvgSelectorDialog : QDialog
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgssvgselectorwidget.h>
|
|
%End
|
|
public:
|
|
QgsSvgSelectorDialog( QWidget* parent /TransferThis/ = 0, const Qt::WindowFlags& fl = QgsGuiUtils::ModalDialogFlags,
|
|
QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Close | QDialogButtonBox::Ok,
|
|
Qt::Orientation orientation = Qt::Horizontal );
|
|
~QgsSvgSelectorDialog();
|
|
|
|
//! Returns pointer to the embedded SVG selector widget
|
|
QgsSvgSelectorWidget *svgSelector();
|
|
|
|
};
|