16 #ifndef QGSVECTORLAYERSAVESTYLEDIALOG_H
17 #define QGSVECTORLAYERSAVESTYLEDIALOG_H
23 #include "ui_qgsvectorlayersavestyledialog.h"
38 class GUI_EXPORT QgsVectorLayerSaveStyleDialog :
public QDialog,
private Ui::QgsVectorLayerSaveStyleDialog
53 explicit QgsVectorLayerSaveStyleDialog(
QgsVectorLayer *layer, QWidget *parent =
nullptr );
56 QString outputFilePath()
const;
57 QgsMapLayer::StyleCategories styleCategories()
const;
61 bool saveOnlyCurrentStyle()
const;
62 void setSaveOnlyCurrentStyle(
bool saveCurrentStyle );
64 const QListWidget *stylesWidget( );
67 void accept()
override;
70 void updateSaveButtonState();
72 void readUiFileContent(
const QString &filePath );
75 void setupMultipleStyles();
76 void populateStyleComboBox();
79 QString mUiFileContent;
80 bool mSaveOnlyCurrentStyle =
true;
83 #endif // QGSVECTORLAYERSAVESTYLE_H