QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
symbology
qgsstylesavedialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssymbolsavedialog.h
3
-------------------------------------
4
begin : November 2016
5
copyright : (C) 2016 by Mathieu Pellerin
6
email : nirvn dot asia at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSSTYLESAVEDIALOG_H
19
#define QGSSTYLESAVEDIALOG_H
20
21
#include "ui_qgsstylesavedialog.h"
22
23
#include "qgis_gui.h"
24
#include "
qgis_sip.h
"
25
#include "
qgsstyle.h
"
26
27
#include <QDialog>
28
33
class
GUI_EXPORT
QgsStyleSaveDialog
:
public
QDialog,
private
Ui::QgsStyleSaveDialog
34
{
35
Q_OBJECT
36
37
public
:
43
QgsStyleSaveDialog
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
,
QgsStyle::StyleEntity
type =
QgsStyle::SymbolEntity
);
44
48
QString
name
()
const
;
49
55
void
setDefaultTags
(
const
QString &
tags
);
56
60
QString
tags
()
const
;
61
65
bool
isFavorite
()
const
;
66
71
QgsStyle::StyleEntity
selectedType
()
const
;
72
78
QgsStyle
*
destinationStyle
();
79
80
private
:
81
QgsStyle::StyleEntity
mType =
QgsStyle::SymbolEntity
;
82
};
83
84
#endif
// QGSSTYLESAVEDIALOG_H
QgsStyleSaveDialog::isFavorite
bool isFavorite() const
Returns true if the favorite is checked for the symbol.
Definition
qgsstylesavedialog.cpp:168
QgsStyleSaveDialog::name
QString name() const
Returns the entered name for the new symbol.
Definition
qgsstylesavedialog.cpp:153
QgsStyleSaveDialog::selectedType
QgsStyle::StyleEntity selectedType() const
Returns the type of style entity to save.
Definition
qgsstylesavedialog.cpp:173
QgsStyleSaveDialog::setDefaultTags
void setDefaultTags(const QString &tags)
Sets the default tags for the newly created item.
Definition
qgsstylesavedialog.cpp:158
QgsStyleSaveDialog::QgsStyleSaveDialog
QgsStyleSaveDialog(QWidget *parent=nullptr, QgsStyle::StyleEntity type=QgsStyle::SymbolEntity)
Constructor for QgsSymbolSaveDialog.
Definition
qgsstylesavedialog.cpp:35
QgsStyleSaveDialog::tags
QString tags() const
Returns any tags entered for the new symbol (as a comma separated value list).
Definition
qgsstylesavedialog.cpp:163
QgsStyleSaveDialog::destinationStyle
QgsStyle * destinationStyle()
Returns the destination style database.
Definition
qgsstylesavedialog.cpp:181
QgsStyle
A database of saved style entities, including symbols, color ramps, text formats and others.
Definition
qgsstyle.h:91
QgsStyle::StyleEntity
StyleEntity
Enum for Entities involved in a style.
Definition
qgsstyle.h:206
QgsStyle::SymbolEntity
@ SymbolEntity
Symbols.
Definition
qgsstyle.h:207
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
qgsstyle.h
Generated on
for QGIS API Documentation by
1.17.0