QGIS API Documentation
3.14.0-Pi (9f7028fd23)
src
gui
symbology
qgssinglesymbolrendererwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssinglesymbolrendererwidget.h
3
---------------------
4
begin : November 2009
5
copyright : (C) 2009 by Martin Dobias
6
email : wonder dot sk at gmail dot com
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
#ifndef QGSSINGLESYMBOLRENDERERWIDGET_H
16
#define QGSSINGLESYMBOLRENDERERWIDGET_H
17
18
#include "
qgsrendererwidget.h
"
19
#include "
qgis_sip.h
"
20
#include "qgis_gui.h"
21
22
class
QgsSingleSymbolRenderer
;
23
class
QgsSymbolSelectorWidget
;
24
25
class
QMenu;
26
31
class
GUI_EXPORT
QgsSingleSymbolRendererWidget
:
public
QgsRendererWidget
32
{
33
Q_OBJECT
34
35
public
:
36
static
QgsRendererWidget
*create(
QgsVectorLayer
*layer,
QgsStyle
*style,
QgsFeatureRenderer
*renderer )
SIP_FACTORY
;
37
38
QgsSingleSymbolRendererWidget
(
QgsVectorLayer
*layer,
QgsStyle
*style,
QgsFeatureRenderer
*renderer );
39
~
QgsSingleSymbolRendererWidget
()
override
;
40
41
QgsFeatureRenderer
*
renderer
()
override
;
42
43
void
setContext
(
const
QgsSymbolWidgetContext
&context )
override
;
44
50
void
setDockMode
(
bool
dockMode )
override
;
51
52
private
slots:
53
void
changeSingleSymbol();
54
55
void
showSymbolLevels();
56
57
void
dataDefinedSizeLegend();
58
59
private
:
60
61
QgsSingleSymbolRenderer
*mRenderer =
nullptr
;
62
QgsSymbolSelectorWidget
*mSelector =
nullptr
;
63
QgsSymbol
*mSingleSymbol =
nullptr
;
64
};
65
66
67
#endif // QGSSINGLESYMBOLRENDERERWIDGET_H
QgsRendererWidget::renderer
virtual QgsFeatureRenderer * renderer()=0
Returns pointer to the renderer (no transfer of ownership)
QgsSingleSymbolRendererWidget
Definition:
qgssinglesymbolrendererwidget.h:31
QgsSymbolWidgetContext
Definition:
qgssymbolwidgetcontext.h:35
QgsSingleSymbolRenderer
Definition:
qgssinglesymbolrenderer.h:29
QgsSymbolSelectorWidget
Definition:
qgssymbolselectordialog.h:87
QgsSymbol
Definition:
qgssymbol.h:63
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
qgis_sip.h
QgsRendererWidget::setDockMode
void setDockMode(bool dockMode) override
Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs.
Definition:
qgsrendererwidget.cpp:352
QgsRendererWidget
Definition:
qgsrendererwidget.h:44
QgsFeatureRenderer
Definition:
qgsrenderer.h:102
QgsStyle
Definition:
qgsstyle.h:159
QgsVectorLayer
Definition:
qgsvectorlayer.h:385
qgsrendererwidget.h
QgsRendererWidget::setContext
virtual void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the renderer widget is shown, e.g., the associated map canvas and expressio...
Definition:
qgsrendererwidget.cpp:337
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17