Skip to content

Commit 22cfaa3

Browse files
author
wonder
committed
Python bindings for symbology-ng
git-svn-id: http://svn.osgeo.org/qgis/branches/symbology-ng-branch@10780 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent b5d6a9e commit 22cfaa3

7 files changed

+630
-0
lines changed

python/configure.py.in

+2
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ for mk in [ makefile_core, makefile_gui ]:
141141
src_path+"/src/core/renderer",
142142
src_path+"/src/core/spatialindex",
143143
src_path+"/src/core/symbology",
144+
src_path+"/src/core/symbology-ng",
144145
build_path, # qgsconfig.h, qgssvnversion.h
145146
gdal_inc_dir,
146147
geos_inc_dir]
@@ -150,6 +151,7 @@ for mk in [ makefile_core, makefile_gui ]:
150151
makefile_gui.extra_libs.append("qgis_gui")
151152
makefile_gui.extra_lib_dirs.append(build_path+"/src/gui"+intdir)
152153
makefile_gui.extra_include_dirs.append(src_path+"/src/gui")
154+
makefile_gui.extra_include_dirs.append(src_path+"/src/gui/symbology-ng")
153155
makefile_gui.extra_include_dirs.append(build_path+"/src/gui")
154156
makefile_gui.extra_include_dirs.append(build_path+"/src/ui")
155157
makefile_gui.extra_include_dirs.append(src_path+"/src/plugins") # because of qgisplugin.h TODO: sort out

python/core/core.sip

+1
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@
7171
%Include qgsvectorfilewriter.sip
7272
%Include qgsvectorlayer.sip
7373

74+
%Include symbology-ng-core.sip

python/core/qgsapplication.sip

+6
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ static void qtgui_UpdatePyArgv(PyObject *argvlist, int argc, char **argv)
137137
//! Returns the path to the svg directory.
138138
static const QString svgPath();
139139

140+
//! Returns the path to user's style. Added in QGIS 1.2
141+
static const QString userStyleV2Path();
142+
143+
//! Returns the path to default style (works as a starting point). Added in QGIS 1.2
144+
static const QString defaultStyleV2Path();
145+
140146
//! Returns the path to the application prefix directory.
141147
static const QString prefixPath();
142148

python/core/qgsvectorlayer.sip

+9
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ public:
9797
/** Sets the renderer. If a renderer is already present, it is deleted */
9898
void setRenderer(QgsRenderer * r /Transfer/);
9999

100+
/** Return renderer V2. Added in QGIS 1.2 */
101+
QgsFeatureRendererV2* rendererV2();
102+
/** Set renderer V2. Added in QGIS 1.2 */
103+
void setRendererV2(QgsFeatureRendererV2* r);
104+
/** Return whether using renderer V2. Added in QGIS 1.2 */
105+
bool isUsingRendererV2();
106+
/** set whether to use renderer V2 for drawing. Added in QGIS 1.2 */
107+
void setUsingRendererV2(bool usingRendererV2);
108+
100109
/** Returns point, line or polygon */
101110
QGis::GeometryType geometryType() const;
102111

0 commit comments

Comments
 (0)