QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
Classes | Public Slots | Public Member Functions | List of all members
QgsMapLayerSaveStyleDialog Class Reference

The QgsMapLayerSaveStyleDialog class provides the UI to save the current style or multiple styles into different storage containers (QML, SLD and DB). More...

#include <qgsmaplayersavestyledialog.h>

Inheritance diagram for QgsMapLayerSaveStyleDialog:
Inheritance graph
[legend]

Classes

struct  SaveToDbSettings
 

Public Slots

void accept () override
 

Public Member Functions

 QgsMapLayerSaveStyleDialog (QgsMapLayer *layer, QWidget *parent=nullptr)
 Constructor.
 
QgsLayerPropertiesDialog::StyleType currentStyleType () const
 Returns the selected style storage type.
 
QString outputFilePath () const
 Returns the selected file output path.
 
bool saveOnlyCurrentStyle () const
 Returns whether the user only allowed to save the current style.
 
SaveToDbSettings saveToDbSettings () const
 Returns the database settings for saving the style in the DB.
 
void setSaveOnlyCurrentStyle (bool saveCurrentStyle)
 Sets whether the user only allowed to save the current style.
 
Qgis::SldExportOptions sldExportOptions () const
 Returns the SLD export options.
 
QgsMapLayer::StyleCategories styleCategories () const
 Returns the available style categories.
 
const QListWidget * stylesWidget ()
 Returns the styles list widget.
 

Detailed Description

The QgsMapLayerSaveStyleDialog class provides the UI to save the current style or multiple styles into different storage containers (QML, SLD and DB).

The user can select what categories must be saved.

Since
QGIS 3.34

Definition at line 40 of file qgsmaplayersavestyledialog.h.

Constructor & Destructor Documentation

◆ QgsMapLayerSaveStyleDialog()

QgsMapLayerSaveStyleDialog::QgsMapLayerSaveStyleDialog ( QgsMapLayer layer,
QWidget *  parent = nullptr 
)
explicit

Constructor.

Definition at line 28 of file qgsmaplayersavestyledialog.cpp.

Member Function Documentation

◆ accept

void QgsMapLayerSaveStyleDialog::accept ( )
overrideslot

Definition at line 134 of file qgsmaplayersavestyledialog.cpp.

◆ currentStyleType()

QgsLayerPropertiesDialog::StyleType QgsMapLayerSaveStyleDialog::currentStyleType ( ) const

Returns the selected style storage type.

Definition at line 187 of file qgsmaplayersavestyledialog.cpp.

◆ outputFilePath()

QString QgsMapLayerSaveStyleDialog::outputFilePath ( ) const

Returns the selected file output path.

Definition at line 177 of file qgsmaplayersavestyledialog.cpp.

◆ saveOnlyCurrentStyle()

bool QgsMapLayerSaveStyleDialog::saveOnlyCurrentStyle ( ) const

Returns whether the user only allowed to save the current style.

See also
setSaveOnlyCurrentStyle()

Definition at line 261 of file qgsmaplayersavestyledialog.cpp.

◆ saveToDbSettings()

QgsMapLayerSaveStyleDialog::SaveToDbSettings QgsMapLayerSaveStyleDialog::saveToDbSettings ( ) const

Returns the database settings for saving the style in the DB.

Definition at line 167 of file qgsmaplayersavestyledialog.cpp.

◆ setSaveOnlyCurrentStyle()

void QgsMapLayerSaveStyleDialog::setSaveOnlyCurrentStyle ( bool  saveCurrentStyle)

Sets whether the user only allowed to save the current style.

See also
saveOnlyCurrentStyle()

Definition at line 266 of file qgsmaplayersavestyledialog.cpp.

◆ sldExportOptions()

Qgis::SldExportOptions QgsMapLayerSaveStyleDialog::sldExportOptions ( ) const

Returns the SLD export options.

Since
QGIS 3.30

Definition at line 280 of file qgsmaplayersavestyledialog.cpp.

◆ styleCategories()

QgsMapLayer::StyleCategories QgsMapLayerSaveStyleDialog::styleCategories ( ) const

Returns the available style categories.

Definition at line 182 of file qgsmaplayersavestyledialog.cpp.

◆ stylesWidget()

const QListWidget * QgsMapLayerSaveStyleDialog::stylesWidget ( )

Returns the styles list widget.

Definition at line 275 of file qgsmaplayersavestyledialog.cpp.


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