QGIS/python/gui/auto_generated/symbology/qgsstylemanagerdialog.sip.in

333 lines
8.1 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/qgsstylemanagerdialog.h *
2017-06-08 15:30:38 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2016-08-06 11:01:42 +02:00
class QgsStyleManagerDialog : QDialog
{
%Docstring
A dialog allowing users to customize and populate a QgsStyle.
%End
2017-06-08 15:30:38 +02:00
%TypeHeaderCode
2017-06-08 15:30:38 +02:00
#include "qgsstylemanagerdialog.h"
%End
public:
QgsStyleManagerDialog( QgsStyle *style, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags(),
bool readOnly = false );
%Docstring
Constructor for QgsStyleManagerDialog, with the specified ``parent`` widget and window ``flags``.
The ``style`` argument specifies the linked QgsStyle database. Symbols and objects contained within
this style will be shown in the dialog, and changes made within the dialog will be applied to ``style``.
The ``style`` object must last for the lifetime of the dialog.
%End
2017-06-08 15:30:38 +02:00
static QString addColorRampStatic( QWidget *parent, QgsStyle *style,
QString RampType = QString() );
2017-06-08 15:30:38 +02:00
%Docstring
Opens the add color ramp dialog, returning the new color ramp's name if the ramp has been added.
%End
void setFavoritesGroupVisible( bool show );
%Docstring
Sets whether the favorites group should be shown. The default is to show the group.
.. versionadded:: 3.6
%End
void setSmartGroupsVisible( bool show );
%Docstring
Sets whether smart groups should be shown. The default is to show the groups.
.. versionadded:: 3.6
%End
void setBaseStyleName( const QString &name );
%Docstring
Sets the base ``name`` for the style, which is used by the dialog to reflect the
original style/XML file name.
``name`` should be stripped of any extensions and folder information, e.g. "transport_styles",
not "d:/stuff/transport_styles.xml".
.. versionadded:: 3.6
2017-06-08 15:30:38 +02:00
%End
public slots:
2019-01-14 15:54:01 +10:00
void activate();
%Docstring
Raises, unminimizes and activates this window
.. versionadded:: 3.4
%End
void addItem();
2019-01-14 15:54:01 +10:00
%Docstring
Triggers the dialog for adding a new item, based on the currently
selected item type tab.
%End
void editItem();
2019-01-14 15:54:01 +10:00
%Docstring
Triggers the dialog for editing the current item.
%End
void removeItem();
2019-01-14 15:54:01 +10:00
%Docstring
Removes the current selected item.
%End
void exportItemsSVG();
2019-01-14 15:54:01 +10:00
%Docstring
Triggers the dialog to export selected items as SVG files.
.. seealso:: :py:func:`exportItemsPNG`
.. seealso:: :py:func:`exportSelectedItemsImages`
%End
void exportItemsPNG();
2019-01-14 15:54:01 +10:00
%Docstring
Triggers the dialog to export selected items as PNG files.
.. seealso:: :py:func:`exportItemsSVG`
.. seealso:: :py:func:`exportSelectedItemsImages`
%End
void exportSelectedItemsImages( const QString &dir, const QString &format, QSize size );
2019-01-14 15:54:01 +10:00
%Docstring
Triggers the dialog to export selected items as images of the specified ``format`` and ``size``.
.. seealso:: :py:func:`exportItemsSVG`
.. seealso:: :py:func:`exportItemsPNG`
%End
void exportItems();
2019-01-14 15:54:01 +10:00
%Docstring
Triggers the dialog to export items.
.. seealso:: :py:func:`importItems`
%End
void importItems();
2019-01-14 15:54:01 +10:00
%Docstring
Triggers the dialog to import items.
.. seealso:: :py:func:`exportItems`
%End
void populateList();
2017-06-08 15:30:38 +02:00
%Docstring
2019-01-14 15:54:01 +10:00
Refreshes the list of items.
2017-06-08 15:30:38 +02:00
%End
void onFinished();
2017-06-08 15:30:38 +02:00
%Docstring
2019-01-14 15:54:01 +10:00
Called when the dialog is going to be closed.
2017-06-08 15:30:38 +02:00
%End
void onClose();
2017-08-16 16:20:38 +02:00
%Docstring
2019-01-14 15:54:01 +10:00
Closes the dialog
2017-08-16 16:20:38 +02:00
%End
void showHelp();
2017-08-16 16:20:38 +02:00
%Docstring
2019-01-14 15:54:01 +10:00
Opens the associated help
2017-08-16 16:20:38 +02:00
%End
void itemChanged( QStandardItem *item ) /Deprecated/;
%Docstring
.. deprecated:: in QGIS 3.6 - has no effect and will be removed in QGIS 4.0
%End
2017-06-08 15:30:38 +02:00
void groupChanged( const QModelIndex & );
2019-01-14 15:54:01 +10:00
%Docstring
Trigerred when the current group (or tag) is changed.
%End
void groupRenamed( QStandardItem *item );
%Docstring
Triggered when a group ``item`` is renamed.
%End
int addTag();
2017-06-08 15:30:38 +02:00
%Docstring
2019-01-14 15:54:01 +10:00
Triggers the dialog to add a new tag.
2017-06-08 15:30:38 +02:00
%End
2019-01-14 15:54:01 +10:00
int addSmartgroup();
2017-06-08 15:30:38 +02:00
%Docstring
2019-01-14 15:54:01 +10:00
Triggers the dialog to add a new smart group.
2017-06-08 15:30:38 +02:00
%End
2019-01-14 15:54:01 +10:00
void removeGroup();
2017-06-08 15:30:38 +02:00
%Docstring
2019-01-14 15:54:01 +10:00
Removes the selected tag or smartgroup.
2017-06-08 15:30:38 +02:00
%End
void tagSymbolsAction();
2017-06-08 15:30:38 +02:00
%Docstring
2019-01-14 15:54:01 +10:00
Toggles the interactive item tagging mode.
2017-06-08 15:30:38 +02:00
%End
void editSmartgroupAction();
2017-06-08 15:30:38 +02:00
%Docstring
2019-01-14 15:54:01 +10:00
Triggers the dialog for editing the selected smart group.
2017-06-08 15:30:38 +02:00
%End
2019-01-14 15:54:01 +10:00
void regrouped( QStandardItem * ) /Deprecated/;
2017-06-08 15:30:38 +02:00
%Docstring
2019-01-14 15:54:01 +10:00
.. deprecated:: in QGIS 3.6 - has no effect and will be removed in QGIS 4.0
2017-06-08 15:30:38 +02:00
%End
2019-01-14 15:54:01 +10:00
void filterSymbols( const QString &filter );
2017-06-08 15:30:38 +02:00
%Docstring
2019-01-14 15:54:01 +10:00
Sets the ``filter`` string to filter symbols by.
2017-06-08 15:30:38 +02:00
%End
2017-06-08 15:30:38 +02:00
void symbolSelected( const QModelIndex & );
%Docstring
Perform symbol specific tasks when selected
%End
void selectedSymbolsChanged( const QItemSelection &selected, const QItemSelection &deselected );
2017-06-08 15:30:38 +02:00
%Docstring
Perform tasks when the selected symbols change
%End
void grouptreeContextMenu( QPoint );
2017-06-08 15:30:38 +02:00
%Docstring
Context menu for the groupTree
%End
void listitemsContextMenu( QPoint );
2017-06-08 15:30:38 +02:00
%Docstring
Context menu for the listItems ( symbols list )
%End
protected slots:
bool addColorRamp( QAction *action );
void addFavoriteSelectedSymbols();
2017-06-08 15:30:38 +02:00
%Docstring
Add selected symbols to favorites
%End
void removeFavoriteSelectedSymbols();
2017-06-08 15:30:38 +02:00
%Docstring
Remove selected symbols from favorites
%End
void tagSelectedSymbols( bool newTag = false );
2017-06-08 15:30:38 +02:00
%Docstring
Tag selected symbols using menu item selection
%End
void detagSelectedSymbols();
2017-06-08 15:30:38 +02:00
%Docstring
Remove all tags from selected symbols
%End
protected:
void populateTypes() /Deprecated/;
2017-06-08 15:30:38 +02:00
%Docstring
Populate combo box with known style items (symbols, color ramps).
.. deprecated:: in QGIS 3.6 - has no effect and will be removed in QGIS 4.0
2017-06-08 15:30:38 +02:00
%End
void populateGroups();
2017-06-08 15:30:38 +02:00
%Docstring
populate the groups
%End
void setSymbolsChecked( const QStringList & ) /Deprecated/;
2017-06-08 15:30:38 +02:00
%Docstring
.. deprecated:: in QGIS 3.6 - has no effect and will be removed in QGIS 4.0
2017-06-08 15:30:38 +02:00
%End
void populateSymbols( const QStringList &symbolNames, bool checkable = false ) /Deprecated/;
2017-06-08 15:30:38 +02:00
%Docstring
Populates the list view with symbols of the current type with the given names.
.. deprecated:: No longer required in QGIS 3.6, as the model is updated live. Has no effect and will be removed in QGIS 4.0
2017-06-08 15:30:38 +02:00
%End
void populateColorRamps( const QStringList &colorRamps, bool checkable = false ) /Deprecated/;
2017-06-08 15:30:38 +02:00
%Docstring
Populates the list view with color ramps of the current type with the given names.
.. deprecated:: No longer required in QGIS 3.6, as the model is updated live. Has no effect and will be removed in QGIS 4.0
2017-06-08 15:30:38 +02:00
%End
int currentItemType();
QString currentItemName();
bool addSymbol( int symbolType = -1 );
2017-06-08 15:30:38 +02:00
%Docstring
add a new symbol to style
%End
bool addColorRamp();
2017-06-08 15:30:38 +02:00
%Docstring
add a new color ramp to style
%End
bool editSymbol();
bool editColorRamp();
bool removeSymbol() /Deprecated/;
%Docstring
.. deprecated:: in QGIS 3.6 - has no effect and will be removed in QGIS 4.0
%End
bool removeColorRamp() /Deprecated/;
%Docstring
.. deprecated:: in QGIS 3.6 - has no effect and will be removed in QGIS 4.0
%End
void enableSymbolInputs( bool );
2017-06-08 15:30:38 +02:00
%Docstring
Enables or disbables the symbol specific inputs
%End
void enableGroupInputs( bool );
2017-06-08 15:30:38 +02:00
%Docstring
Enables or disables the groupTree specific inputs
%End
void enableItemsForGroupingMode( bool );
2017-06-08 15:30:38 +02:00
%Docstring
Enables or disables the groupTree items for grouping mode
%End
void setBold( QStandardItem * );
%Docstring
sets the text of the item with bold font
%End
};
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/qgsstylemanagerdialog.h *
2017-06-08 15:30:38 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/