16#ifndef QGSMAPLAYERLOADSTYLEDIALOG_H
17#define QGSMAPLAYERLOADSTYLEDIALOG_H
21#include "ui_qgsvectorlayerloadstyledialog.h"
79 void initializeLists(
const QStringList &ids,
const QStringList &names,
const QStringList &descriptions,
int sectionLimit );
97 void updateLoadButtonState();
98 void onRelatedTableSelectionChanged();
99 void onOthersTableSelectionChanged();
100 void deleteStyleFromDB();
104 void invertSelection();
107 void selectionChanged( QTableWidget *styleTable );
111 QString mSelectedStyleId;
112 QString mSelectedStyleName;
113 int mSectionLimit = 0;
114 QPushButton *mDeleteButton =
nullptr;
115 QPushButton *mLoadButton =
nullptr;
116 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.
void allowLoadingOnlyFromFiles()
Do not allow loading styles from databases, only from files.
QgsLayerPropertiesDialog::StyleType currentStyleType() const
Returns the selected style type.
Model for layer style categories.
Base class for all map layer types.
QFlags< StyleCategory > StyleCategories