|
QGIS API Documentation 3.99.0-Master (7d2ca374f2d)
|
A reusable dialog which allows users to select stored layer styles and categories to load for a map layer. More...
#include <qgsmaplayerloadstyledialog.h>

Public Slots | |
| void | accept () override |
Public Member Functions | |
| QgsMapLayerLoadStyleDialog (QgsMapLayer *layer, QWidget *parent=nullptr) | |
| Constructor for QgsMapLayerLoadStyleDialog, associated with the specified map layer. | |
| void | allowLoadingOnlyFromFiles () |
| Do not allow loading styles from databases, only from files. | |
| QgsLayerPropertiesDialog::StyleType | currentStyleType () const |
| Returns the selected style type. | |
| QString | fileExtension () const |
| Returns the file extension for the selected layer style source file. | |
| QString | filePath () const |
| Returns the full path to the selected layer style source file. | |
| void | initializeLists (const QStringList &ids, const QStringList &names, const QStringList &descriptions, int sectionLimit) |
| Initialize list of database stored styles. | |
| QString | selectedStyleId () |
| Returns the ID of the selected database stored style. | |
| QgsMapLayer::StyleCategories | styleCategories () const |
| Returns the list of selected style categories the user has opted to load. | |
A reusable dialog which allows users to select stored layer styles and categories to load for a map layer.
Currently supports
Definition at line 43 of file qgsmaplayerloadstyledialog.h.
|
explicit |
Constructor for QgsMapLayerLoadStyleDialog, associated with the specified map layer.
Definition at line 34 of file qgsmaplayerloadstyledialog.cpp.
|
overrideslot |
Definition at line 304 of file qgsmaplayerloadstyledialog.cpp.
| void QgsMapLayerLoadStyleDialog::allowLoadingOnlyFromFiles | ( | ) |
Do not allow loading styles from databases, only from files.
Sets the dialog accordingly, disable style type selection combo box and set it to file.
Definition at line 361 of file qgsmaplayerloadstyledialog.cpp.
| QgsLayerPropertiesDialog::StyleType QgsMapLayerLoadStyleDialog::currentStyleType | ( | ) | const |
Returns the selected style type.
Definition at line 183 of file qgsmaplayerloadstyledialog.cpp.
| QString QgsMapLayerLoadStyleDialog::fileExtension | ( | ) | const |
Returns the file extension for the selected layer style source file.
Definition at line 195 of file qgsmaplayerloadstyledialog.cpp.
| QString QgsMapLayerLoadStyleDialog::filePath | ( | ) | const |
Returns the full path to the selected layer style source file.
Definition at line 200 of file qgsmaplayerloadstyledialog.cpp.
| void QgsMapLayerLoadStyleDialog::initializeLists | ( | const QStringList & | ids, |
| const QStringList & | names, | ||
| const QStringList & | descriptions, | ||
| int | sectionLimit ) |
Initialize list of database stored styles.
Definition at line 205 of file qgsmaplayerloadstyledialog.cpp.
| QString QgsMapLayerLoadStyleDialog::selectedStyleId | ( | ) |
Returns the ID of the selected database stored style.
Definition at line 245 of file qgsmaplayerloadstyledialog.cpp.
| QgsMapLayer::StyleCategories QgsMapLayerLoadStyleDialog::styleCategories | ( | ) | const |
Returns the list of selected style categories the user has opted to load.
Definition at line 178 of file qgsmaplayerloadstyledialog.cpp.