QGIS API Documentation
3.43.0-Master (b60ef06885e)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Functions
a
b
c
d
f
g
h
i
l
m
n
o
p
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
e
f
g
h
i
l
n
o
p
q
r
s
t
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
gui
qgsmaplayersavestyledialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmaplayersavestyledialog.h
3
--------------------------------------
4
Date : September 2018
5
Copyright : (C) 2018 by Denis Rouzaud
6
Email : denis@opengis.ch
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSMAPLAYERSAVESTYLEDIALOG_H
17
#define QGSMAPLAYERSAVESTYLEDIALOG_H
18
19
// We don't want to expose this in the public API
20
#define SIP_NO_FILE
21
22
#include <QDialog>
23
#include "ui_qgsmaplayersavestyledialog.h"
24
#include "
qgsmaplayer.h
"
25
#include "
qgslayerpropertiesdialog.h
"
26
#include "qgis_gui.h"
27
28
class
QgsMapLayerStyleCategoriesModel
;
29
43
class
GUI_EXPORT
QgsMapLayerSaveStyleDialog
:
public
QDialog,
private
Ui::QgsMapLayerSaveStyleDialog
44
{
45
Q_OBJECT
46
47
public
:
48
struct
SaveToDbSettings
49
{
50
public
:
51
QString
uiFileContent
;
52
QString
name
;
53
QString
description
;
54
bool
isDefault
;
55
};
48
struct
SaveToDbSettings
{
…
};
56
60
explicit
QgsMapLayerSaveStyleDialog
(
QgsMapLayer
*layer, QWidget *parent =
nullptr
);
61
65
SaveToDbSettings
saveToDbSettings()
const
;
66
70
QString outputFilePath()
const
;
71
75
QgsMapLayer::StyleCategories
styleCategories()
const
;
76
80
QgsLayerPropertiesDialog::StyleType
currentStyleType()
const
;
81
87
bool
saveOnlyCurrentStyle()
const
;
88
94
void
setSaveOnlyCurrentStyle(
bool
saveCurrentStyle );
95
99
const
QListWidget *stylesWidget();
100
105
Qgis::SldExportOptions
sldExportOptions()
const
;
106
107
public
slots:
108
void
accept()
override
;
109
110
private
slots:
111
void
updateSaveButtonState();
112
void
showHelp();
113
void
readUiFileContent(
const
QString &filePath );
114
void
selectAll();
115
void
deselectAll();
116
void
invertSelection();
117
118
private
:
119
void
setupMultipleStyles();
120
void
populateStyleComboBox();
121
QgsMapLayer
*mLayer =
nullptr
;
122
QgsMapLayerStyleCategoriesModel
*mModel;
123
QString mUiFileContent;
124
bool
mSaveOnlyCurrentStyle =
true
;
125
};
43
class
GUI_EXPORT
QgsMapLayerSaveStyleDialog
:
public
QDialog,
private
Ui::QgsMapLayerSaveStyleDialog {
…
};
126
127
#endif
// QGSMAPLAYERSAVESTYLEDIALOG_H
Qgis::SldExportOptions
QFlags< SldExportOption > SldExportOptions
Definition
qgis.h:666
QgsLayerPropertiesDialog::StyleType
StyleType
Style storage type.
Definition
qgslayerpropertiesdialog.h:50
QgsMapLayerSaveStyleDialog
A dialog which allows saving map layer styles.
Definition
qgsmaplayersavestyledialog.h:44
QgsMapLayerStyleCategoriesModel
Model for layer style categories.
Definition
qgsmaplayerstylecategoriesmodel.h:33
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:77
QgsMapLayer::StyleCategories
QFlags< StyleCategory > StyleCategories
Definition
qgsmaplayer.h:193
qgslayerpropertiesdialog.h
qgsmaplayer.h
QgsMapLayerSaveStyleDialog::SaveToDbSettings
Definition
qgsmaplayersavestyledialog.h:49
QgsMapLayerSaveStyleDialog::SaveToDbSettings::description
QString description
Definition
qgsmaplayersavestyledialog.h:53
QgsMapLayerSaveStyleDialog::SaveToDbSettings::name
QString name
Definition
qgsmaplayersavestyledialog.h:52
QgsMapLayerSaveStyleDialog::SaveToDbSettings::isDefault
bool isDefault
Definition
qgsmaplayersavestyledialog.h:54
QgsMapLayerSaveStyleDialog::SaveToDbSettings::uiFileContent
QString uiFileContent
Definition
qgsmaplayersavestyledialog.h:51
Generated on Sun Apr 6 2025 18:57:15 for QGIS API Documentation by
1.9.8