16#ifndef QGSMAPLAYERLOADSTYLEDIALOG_H
17#define QGSMAPLAYERLOADSTYLEDIALOG_H
22#include "ui_qgsvectorlayerloadstyledialog.h"
78 void initializeLists(
const QStringList &ids,
const QStringList &names,
const QStringList &descriptions,
int sectionLimit );
89 void updateLoadButtonState();
90 void onRelatedTableSelectionChanged();
91 void onOthersTableSelectionChanged();
92 void deleteStyleFromDB();
96 void invertSelection();
99 void selectionChanged( QTableWidget *styleTable );
103 QString mSelectedStyleId;
104 QString mSelectedStyleName;
105 int mSectionLimit = 0;
106 QPushButton *mDeleteButton =
nullptr;
107 QPushButton *mLoadButton =
nullptr;
108 QPushButton *mCancelButton =
nullptr;
StyleType
Style storage type.
QgsMapLayer::StyleCategories styleCategories() const
Returns the list of selected style categories the user has opted to load.
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.
QgsMapLayerLoadStyleDialog(QgsMapLayer *layer, QWidget *parent=nullptr)
Constructor for QgsMapLayerLoadStyleDialog, associated with the specified map layer.
QString filePath() const
Returns the full path to the selected layer style source file.
QString fileExtension() const
Returns the file extension for the selected layer style source file.
QgsLayerPropertiesDialog::StyleType currentStyleType() const
Returns the selected style type.
Model for layer style categories.
Base class for all map layer types.
QFlags< StyleCategory > StyleCategories