QGIS API Documentation
2.14.0-Essen
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
gui
symbology-ng
qgslayerpropertieswidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslayerpropertieswidget.h
3
---------------------
4
begin : June 2012
5
copyright : (C) 2012 by Martin Dobias
6
email : aruntheguy at gmail.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
16
#ifndef QGSLAYERPROPERTIESWIDGET_H
17
#define QGSLAYERPROPERTIESWIDGET_H
18
19
#include "ui_widget_layerproperties.h"
20
21
class
QgsSymbolV2
;
22
class
QgsSymbolLayerV2
;
23
class
QgsSymbolLayerV2Widget
;
24
class
QgsVectorLayer
;
25
class
QgsMapCanvas
;
26
27
class
SymbolLayerItem;
28
29
#include <QMap>
30
#include <QStandardItemModel>
31
32
33
class
GUI_EXPORT
QgsLayerPropertiesWidget
:
public
QWidget
,
private
Ui::LayerPropertiesWidget
34
{
35
Q_OBJECT
36
37
public
:
38
QgsLayerPropertiesWidget
(
QgsSymbolLayerV2
* layer,
const
QgsSymbolV2
* symbol,
const
QgsVectorLayer
* vl,
QWidget
* parent =
nullptr
);
39
46
QgsExpressionContext
*
expressionContext
()
const
{
return
mPresetExpressionContext; }
47
53
virtual
void
setMapCanvas(
QgsMapCanvas
* canvas );
54
55
public
slots:
56
void
layerTypeChanged();
57
void
emitSignalChanged();
58
67
void
setExpressionContext(
QgsExpressionContext
* context );
68
69
signals:
70
void
changed();
71
void
changeLayer(
QgsSymbolLayerV2
* );
72
73
protected
:
74
void
populateLayerTypes();
75
void
updateSymbolLayerWidget(
QgsSymbolLayerV2
* layer );
76
77
protected
:
// data
78
QgsSymbolLayerV2
*
mLayer
;
79
80
const
QgsSymbolV2
*
mSymbol
;
81
const
QgsVectorLayer
*
mVectorLayer
;
82
83
private
slots:
84
void
reloadLayer();
85
86
private
:
87
QgsExpressionContext
* mPresetExpressionContext;
88
QgsMapCanvas
* mMapCanvas;
89
90
};
91
92
#endif //QGSLAYERPROPERTIESWIDGET_H
QWidget
QgsLayerPropertiesWidget::mSymbol
const QgsSymbolV2 * mSymbol
Definition:
qgslayerpropertieswidget.h:80
QgsSymbolLayerV2
Definition:
qgssymbollayerv2.h:47
QgsLayerPropertiesWidget::mLayer
QgsSymbolLayerV2 * mLayer
Definition:
qgslayerpropertieswidget.h:78
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition:
qgsmapcanvas.h:105
QgsLayerPropertiesWidget
Definition:
qgslayerpropertieswidget.h:33
QgsExpressionContext
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Definition:
qgsexpressioncontext.h:240
QgsSymbolLayerV2Widget
Definition:
qgssymbollayerv2widget.h:29
QgsSymbolV2
Definition:
qgssymbolv2.h:52
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition:
qgsvectorlayer.h:386
QgsLayerPropertiesWidget::expressionContext
QgsExpressionContext * expressionContext() const
Returns the expression context used for the widget, if set.
Definition:
qgslayerpropertieswidget.h:46
QgsLayerPropertiesWidget::mVectorLayer
const QgsVectorLayer * mVectorLayer
Definition:
qgslayerpropertieswidget.h:81
Generated on Sat Feb 27 2016 18:33:25 for QGIS API Documentation by
1.8.11