Class: QgsStyleManagerDialog¶
-
class
qgis.gui.
QgsStyleManagerDialog
(style: QgsStyle, parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags(), readOnly: bool = False)¶ Bases:
PyQt5.QtWidgets.QDialog
Constructor for QgsStyleManagerDialog, with the specified
parent
widget and windowflags
.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 tostyle
. Thestyle
object must last for the lifetime of the dialog.A dialog allowing users to customize and populate a QgsStyle.
Enums
Methods
Raises, unminimizes and activates this window
addColorRamp(self) -> bool add a new color ramp to style
Opens the add color ramp dialog, returning the new color ramp’s name if the ramp has been added.
Add selected symbols to favorites
Triggers the dialog for adding a new item, based on the currently selected item type tab.
Triggers the dialog to add a new smart group.
add a new symbol to style
Triggers the dialog to add a new tag.
Remove all tags from selected symbols
Triggers the dialog for editing the current item.
Triggers the dialog for editing the selected smart group.
Enables or disables the groupTree specific inputs
Enables or disables the groupTree items for grouping mode
Enables or disbables the symbol specific inputs
Triggers the dialog to export items.
Triggers the dialog to export selected items as PNG files.
Triggers the dialog to export selected items as SVG files.
Triggers the dialog to export selected items as images of the specified
format
andsize
.Sets the
filter
string to filter symbols by.Trigerred when the current group (or tag) is changed.
Triggered when a group
item
is renamed.Context menu for the groupTree
Triggers the dialog to import items.
Deprecated since version in: QGIS 3.6 - has no effect and will be removed in QGIS 4.0
Context menu for the listItems ( symbols list )
Closes the dialog
Called when the dialog is going to be closed.
Populates the list view with color ramps of the current type with the given names.
populate the groups
Refreshes the list of items.
Populates the list view with symbols of the current type with the given names.
Populate combo box with known style items (symbols, color ramps).
Deprecated since version in: QGIS 3.6 - has no effect and will be removed in QGIS 4.0
Deprecated since version in: QGIS 3.6 - has no effect and will be removed in QGIS 4.0
Remove selected symbols from favorites
Removes the selected tag or smartgroup.
Removes the current selected item.
Deprecated since version in: QGIS 3.6 - has no effect and will be removed in QGIS 4.0
Perform tasks when the selected symbols change
Sets the base
name
for the style, which is used by the dialog to reflect the original style/XML file name.sets the text of the item with bold font
Sets whether the favorites group should be shown.
Sets whether smart groups should be shown.
Deprecated since version in: QGIS 3.6 - has no effect and will be removed in QGIS 4.0
Opens the associated help
Perform symbol specific tasks when selected
Tag selected symbols using menu item selection
Toggles the interactive item tagging mode.
Signals
Attributes
-
actionEvent
()¶
-
activate
(self)¶ Raises, unminimizes and activates this window
New in version 3.4.
-
addColorRamp
(self, action: QAction) → bool¶ addColorRamp(self) -> bool add a new color ramp to style
-
addColorRampStatic
(parent: QWidget, style: QgsStyle, RampType: str = '') → str¶ Opens the add color ramp dialog, returning the new color ramp’s name if the ramp has been added.
-
addFavoriteSelectedSymbols
(self)¶ Add selected symbols to favorites
-
addItem
(self)¶ Triggers the dialog for adding a new item, based on the currently selected item type tab.
-
addSmartgroup
(self) → int¶ Triggers the dialog to add a new smart group.
-
addSymbol
(self, symbolType: int = -1) → bool¶ add a new symbol to style
-
addTag
(self) → int¶ Triggers the dialog to add a new tag.
-
changeEvent
()¶
-
childEvent
()¶
-
closeEvent
()¶
-
connectNotify
()¶
-
contextMenuEvent
()¶
-
create
()¶
-
currentItemName
(self) → str¶
-
currentItemType
(self) → int¶
-
customEvent
()¶
-
destroy
()¶
-
detagSelectedSymbols
(self)¶ Remove all tags from selected symbols
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
editColorRamp
(self) → bool¶
-
editItem
(self)¶ Triggers the dialog for editing the current item.
-
editSmartgroupAction
(self)¶ Triggers the dialog for editing the selected smart group.
-
editSymbol
(self) → bool¶
-
enableGroupInputs
(self, bool)¶ Enables or disables the groupTree specific inputs
-
enableItemsForGroupingMode
(self, bool)¶ Enables or disables the groupTree items for grouping mode
-
enableSymbolInputs
(self, bool)¶ Enables or disbables the symbol specific inputs
-
enterEvent
()¶
-
event
()¶
-
eventFilter
()¶
-
exportItems
(self)¶ Triggers the dialog to export items.
See also
-
exportItemsPNG
(self)¶ Triggers the dialog to export selected items as PNG files.
See also
See also
-
exportItemsSVG
(self)¶ Triggers the dialog to export selected items as SVG files.
See also
See also
-
exportSelectedItemsImages
(self, dir: str, format: str, size: QSize)¶ Triggers the dialog to export selected items as images of the specified
format
andsize
.See also
See also
-
filterSymbols
(self, filter: str)¶ Sets the
filter
string to filter symbols by.
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
groupChanged
(self, QModelIndex)¶ Trigerred when the current group (or tag) is changed.
-
groupRenamed
(self, item: QStandardItem)¶ Triggered when a group
item
is renamed.
-
grouptreeContextMenu
(self, QPoint)¶ Context menu for the groupTree
-
hideEvent
()¶
-
importItems
(self)¶ Triggers the dialog to import items.
See also
-
initPainter
()¶
-
inputMethodEvent
()¶
-
isSignalConnected
()¶
-
itemChanged
(self, item: QStandardItem)¶ Deprecated since version in: QGIS 3.6 - has no effect and will be removed in QGIS 4.0
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
leaveEvent
()¶
-
listitemsContextMenu
(self, QPoint)¶ Context menu for the listItems ( symbols list )
-
metric
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
onClose
(self)¶ Closes the dialog
-
onFinished
(self)¶ Called when the dialog is going to be closed.
-
paintEvent
()¶
-
populateColorRamps
(self, colorRamps: Iterable[str], checkable: bool = False)¶ Populates the list view with color ramps of the current type with the given names.
Deprecated since version No: longer required in QGIS 3.6, as the model is updated live. Has no effect and will be removed in QGIS 4.0
-
populateGroups
(self)¶ populate the groups
-
populateList
(self)¶ Refreshes the list of items.
-
populateSymbols
(self, symbolNames: Iterable[str], checkable: bool = False)¶ Populates the list view with symbols of the current type with the given names.
Deprecated since version No: longer required in QGIS 3.6, as the model is updated live. Has no effect and will be removed in QGIS 4.0
-
populateTypes
(self)¶ Populate combo box with known style items (symbols, color ramps).
Deprecated since version in: QGIS 3.6 - has no effect and will be removed in QGIS 4.0
-
receivers
()¶
-
regrouped
(self, QStandardItem)¶ Deprecated since version in: QGIS 3.6 - has no effect and will be removed in QGIS 4.0
-
removeColorRamp
(self) → bool¶ Deprecated since version in: QGIS 3.6 - has no effect and will be removed in QGIS 4.0
-
removeFavoriteSelectedSymbols
(self)¶ Remove selected symbols from favorites
-
removeGroup
(self)¶ Removes the selected tag or smartgroup.
-
removeItem
(self)¶ Removes the current selected item.
-
removeSymbol
(self) → bool¶ Deprecated since version in: QGIS 3.6 - has no effect and will be removed in QGIS 4.0
-
resizeEvent
()¶
-
selectedSymbolsChanged
(self, selected: QItemSelection, deselected: QItemSelection)¶ Perform tasks when the selected symbols change
-
sender
()¶
-
senderSignalIndex
()¶
-
setBaseStyleName
(self, name: str)¶ 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”.New in version 3.6.
-
setBold
(self, QStandardItem)¶ sets the text of the item with bold font
-
setFavoritesGroupVisible
(self, show: bool)¶ Sets whether the favorites group should be shown. The default is to show the group.
New in version 3.6.
-
setSmartGroupsVisible
(self, show: bool)¶ Sets whether smart groups should be shown. The default is to show the groups.
New in version 3.6.
-
setSymbolsChecked
(self, Iterable[str])¶ Deprecated since version in: QGIS 3.6 - has no effect and will be removed in QGIS 4.0
-
showEvent
()¶
-
showHelp
(self)¶ Opens the associated help
-
symbolSelected
(self, QModelIndex)¶ Perform symbol specific tasks when selected
-
tabletEvent
()¶
-
tagSelectedSymbols
(self, newTag: bool = False)¶ Tag selected symbols using menu item selection
-
tagSymbolsAction
(self)¶ Toggles the interactive item tagging mode.
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶
-