QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
Classes | Public Slots | Public Member Functions | List of all members
QgsVectorLayerSaveStyleDialog Class Reference

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

#include <qgsvectorlayersavestyledialog.h>

Inheritance diagram for QgsVectorLayerSaveStyleDialog:
Inheritance graph
[legend]

Classes

struct  SaveToDbSettings
 

Public Slots

void accept () override
 

Public Member Functions

 QgsVectorLayerSaveStyleDialog (QgsVectorLayer *layer, QWidget *parent=nullptr)
 
QgsVectorLayerProperties::StyleType currentStyleType () const
 
QString outputFilePath () const
 
bool saveOnlyCurrentStyle () const
 
SaveToDbSettings saveToDbSettings () const
 
void setSaveOnlyCurrentStyle (bool saveCurrentStyle)
 
Qgis::SldExportOptions sldExportOptions () const
 Returns the SLD export options. More...
 
QgsMapLayer::StyleCategories styleCategories () const
 
const QListWidget * stylesWidget ()
 

Detailed Description

The QgsVectorLayerSaveStyleDialog 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.

Definition at line 38 of file qgsvectorlayersavestyledialog.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerSaveStyleDialog()

QgsVectorLayerSaveStyleDialog::QgsVectorLayerSaveStyleDialog ( QgsVectorLayer layer,
QWidget *  parent = nullptr 
)
explicit

Definition at line 27 of file qgsvectorlayersavestyledialog.cpp.

Member Function Documentation

◆ accept

void QgsVectorLayerSaveStyleDialog::accept ( )
overrideslot

Definition at line 105 of file qgsvectorlayersavestyledialog.cpp.

◆ currentStyleType()

QgsVectorLayerProperties::StyleType QgsVectorLayerSaveStyleDialog::currentStyleType ( ) const

Definition at line 158 of file qgsvectorlayersavestyledialog.cpp.

◆ outputFilePath()

QString QgsVectorLayerSaveStyleDialog::outputFilePath ( ) const

Definition at line 148 of file qgsvectorlayersavestyledialog.cpp.

◆ saveOnlyCurrentStyle()

bool QgsVectorLayerSaveStyleDialog::saveOnlyCurrentStyle ( ) const

Definition at line 232 of file qgsvectorlayersavestyledialog.cpp.

◆ saveToDbSettings()

QgsVectorLayerSaveStyleDialog::SaveToDbSettings QgsVectorLayerSaveStyleDialog::saveToDbSettings ( ) const

Definition at line 138 of file qgsvectorlayersavestyledialog.cpp.

◆ setSaveOnlyCurrentStyle()

void QgsVectorLayerSaveStyleDialog::setSaveOnlyCurrentStyle ( bool  saveCurrentStyle)

Definition at line 237 of file qgsvectorlayersavestyledialog.cpp.

◆ sldExportOptions()

Qgis::SldExportOptions QgsVectorLayerSaveStyleDialog::sldExportOptions ( ) const

Returns the SLD export options.

Since
QGIS 3.30

Definition at line 251 of file qgsvectorlayersavestyledialog.cpp.

◆ styleCategories()

QgsMapLayer::StyleCategories QgsVectorLayerSaveStyleDialog::styleCategories ( ) const

Definition at line 153 of file qgsvectorlayersavestyledialog.cpp.

◆ stylesWidget()

const QListWidget * QgsVectorLayerSaveStyleDialog::stylesWidget ( )

Definition at line 246 of file qgsvectorlayersavestyledialog.cpp.


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