QGIS API Documentation  3.6.0-Noosa (5873452)
Public Types | Public Slots | Public Member Functions | List of all members
QgsStyleExportImportDialog Class Reference

#include <qgsstyleexportimportdialog.h>

Inheritance diagram for QgsStyleExportImportDialog:
Inheritance graph
[legend]

Public Types

enum  Mode { Export, Import }
 Dialog modes. More...
 

Public Slots

void clearSelection ()
 clearSelection deselects all symbols More...
 
void deselectSmartgroup (const QString &groupName)
 deselectSmartgroup deselects all symbols from a smart group More...
 
void deselectTag (const QString &tagName)
 Deselect the symbols belonging to the given tag. More...
 
void doExportImport ()
 
void importTypeChanged (int)
 
void selectAll ()
 selectAll selects all symbols More...
 
void selectByGroup ()
 selectByGroup open select by group dialog More...
 
void selectSmartgroup (const QString &groupName)
 selectSmartgroup selects all symbols from a smart group More...
 
void selectTag (const QString &tagName)
 Select the symbols belonging to the given tag. More...
 

Public Member Functions

 QgsStyleExportImportDialog (QgsStyle *style, QWidget *parent=nullptr, Mode mode=Export)
 Constructor for QgsStyleExportImportDialog, with the specified parent widget. More...
 
 ~QgsStyleExportImportDialog () override
 
void deselectSymbols (const QStringList &symbolNames)
 deselectSymbols deselect symbols by name More...
 
void selectSymbols (const QStringList &symbolNames)
 selectSymbols select symbols by name More...
 
void setImportFilePath (const QString &path)
 Sets the initial path to use for importing files, when the dialog is in a Import mode. More...
 

Detailed Description

Definition at line 44 of file qgsstyleexportimportdialog.h.

Member Enumeration Documentation

◆ Mode

Dialog modes.

Enumerator
Export 

Export existing symbols mode.

Import 

Import xml file mode.

Definition at line 51 of file qgsstyleexportimportdialog.h.

Constructor & Destructor Documentation

◆ QgsStyleExportImportDialog()

QgsStyleExportImportDialog::QgsStyleExportImportDialog ( QgsStyle style,
QWidget *  parent = nullptr,
Mode  mode = Export 
)

Constructor for QgsStyleExportImportDialog, with the specified parent widget.

Creates a dialog for importing symbols into the given style, or exporting symbols from the style. The mode argument dictates whether the dialog is to be used for exporting or importing symbols.

Definition at line 40 of file qgsstyleexportimportdialog.cpp.

◆ ~QgsStyleExportImportDialog()

QgsStyleExportImportDialog::~QgsStyleExportImportDialog ( )
override

Definition at line 232 of file qgsstyleexportimportdialog.cpp.

Member Function Documentation

◆ clearSelection

void QgsStyleExportImportDialog::clearSelection ( )
slot

clearSelection deselects all symbols

Definition at line 248 of file qgsstyleexportimportdialog.cpp.

◆ deselectSmartgroup

void QgsStyleExportImportDialog::deselectSmartgroup ( const QString &  groupName)
slot

deselectSmartgroup deselects all symbols from a smart group

Parameters
groupName

Definition at line 298 of file qgsstyleexportimportdialog.cpp.

◆ deselectSymbols()

void QgsStyleExportImportDialog::deselectSymbols ( const QStringList &  symbolNames)

deselectSymbols deselect symbols by name

Parameters
symbolNameslist of symbol names

Definition at line 265 of file qgsstyleexportimportdialog.cpp.

◆ deselectTag

void QgsStyleExportImportDialog::deselectTag ( const QString &  tagName)
slot

Deselect the symbols belonging to the given tag.

Parameters
tagNamethe name of the group to be deselected

Definition at line 284 of file qgsstyleexportimportdialog.cpp.

◆ doExportImport

void QgsStyleExportImportDialog::doExportImport ( )
slot

Definition at line 137 of file qgsstyleexportimportdialog.cpp.

◆ importTypeChanged

void QgsStyleExportImportDialog::importTypeChanged ( int  index)
slot

Definition at line 324 of file qgsstyleexportimportdialog.cpp.

◆ selectAll

void QgsStyleExportImportDialog::selectAll ( )
slot

selectAll selects all symbols

Definition at line 243 of file qgsstyleexportimportdialog.cpp.

◆ selectByGroup

void QgsStyleExportImportDialog::selectByGroup ( )
slot

selectByGroup open select by group dialog

Definition at line 306 of file qgsstyleexportimportdialog.cpp.

◆ selectSmartgroup

void QgsStyleExportImportDialog::selectSmartgroup ( const QString &  groupName)
slot

selectSmartgroup selects all symbols from a smart group

Parameters
groupName

Definition at line 290 of file qgsstyleexportimportdialog.cpp.

◆ selectSymbols()

void QgsStyleExportImportDialog::selectSymbols ( const QStringList &  symbolNames)

selectSymbols select symbols by name

Parameters
symbolNameslist of symbol names

Definition at line 253 of file qgsstyleexportimportdialog.cpp.

◆ selectTag

void QgsStyleExportImportDialog::selectTag ( const QString &  tagName)
slot

Select the symbols belonging to the given tag.

Parameters
tagNamethe name of the group to be selected

Definition at line 278 of file qgsstyleexportimportdialog.cpp.

◆ setImportFilePath()

void QgsStyleExportImportDialog::setImportFilePath ( const QString &  path)

Sets the initial path to use for importing files, when the dialog is in a Import mode.

Since
QGIS 3.6

Definition at line 238 of file qgsstyleexportimportdialog.cpp.


The documentation for this class was generated from the following files: