QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
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>
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. | |
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.
Definition at line 40 of file qgsmaplayersavestyledialog.h.
|
explicit |
Constructor.
Definition at line 28 of file qgsmaplayersavestyledialog.cpp.
|
overrideslot |
Definition at line 98 of file qgsmaplayersavestyledialog.cpp.
QgsLayerPropertiesDialog::StyleType QgsMapLayerSaveStyleDialog::currentStyleType | ( | ) | const |
Returns the selected style storage type.
Definition at line 151 of file qgsmaplayersavestyledialog.cpp.
QString QgsMapLayerSaveStyleDialog::outputFilePath | ( | ) | const |
Returns the selected file output path.
Definition at line 141 of file qgsmaplayersavestyledialog.cpp.
bool QgsMapLayerSaveStyleDialog::saveOnlyCurrentStyle | ( | ) | const |
Returns whether the user only allowed to save the current style.
Definition at line 225 of file qgsmaplayersavestyledialog.cpp.
QgsMapLayerSaveStyleDialog::SaveToDbSettings QgsMapLayerSaveStyleDialog::saveToDbSettings | ( | ) | const |
Returns the database settings for saving the style in the DB.
Definition at line 131 of file qgsmaplayersavestyledialog.cpp.
void QgsMapLayerSaveStyleDialog::setSaveOnlyCurrentStyle | ( | bool | saveCurrentStyle | ) |
Sets whether the user only allowed to save the current style.
Definition at line 230 of file qgsmaplayersavestyledialog.cpp.
Qgis::SldExportOptions QgsMapLayerSaveStyleDialog::sldExportOptions | ( | ) | const |
Returns the SLD export options.
Definition at line 244 of file qgsmaplayersavestyledialog.cpp.
QgsMapLayer::StyleCategories QgsMapLayerSaveStyleDialog::styleCategories | ( | ) | const |
Returns the available style categories.
Definition at line 146 of file qgsmaplayersavestyledialog.cpp.
const QListWidget * QgsMapLayerSaveStyleDialog::stylesWidget | ( | ) |
Returns the styles list widget.
Definition at line 239 of file qgsmaplayersavestyledialog.cpp.