Skip to content

Commit

Permalink
Python bindings for symbology-ng
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/branches/symbology-ng-branch@10780 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed May 13, 2009
1 parent b5d6a9e commit 22cfaa3
Show file tree
Hide file tree
Showing 7 changed files with 630 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/configure.py.in
Expand Up @@ -141,6 +141,7 @@ for mk in [ makefile_core, makefile_gui ]:
src_path+"/src/core/renderer",
src_path+"/src/core/spatialindex",
src_path+"/src/core/symbology",
src_path+"/src/core/symbology-ng",
build_path, # qgsconfig.h, qgssvnversion.h
gdal_inc_dir,
geos_inc_dir]
Expand All @@ -150,6 +151,7 @@ for mk in [ makefile_core, makefile_gui ]:
makefile_gui.extra_libs.append("qgis_gui")
makefile_gui.extra_lib_dirs.append(build_path+"/src/gui"+intdir)
makefile_gui.extra_include_dirs.append(src_path+"/src/gui")
makefile_gui.extra_include_dirs.append(src_path+"/src/gui/symbology-ng")
makefile_gui.extra_include_dirs.append(build_path+"/src/gui")
makefile_gui.extra_include_dirs.append(build_path+"/src/ui")
makefile_gui.extra_include_dirs.append(src_path+"/src/plugins") # because of qgisplugin.h TODO: sort out
Expand Down
1 change: 1 addition & 0 deletions python/core/core.sip
Expand Up @@ -71,3 +71,4 @@
%Include qgsvectorfilewriter.sip
%Include qgsvectorlayer.sip

%Include symbology-ng-core.sip
6 changes: 6 additions & 0 deletions python/core/qgsapplication.sip
Expand Up @@ -137,6 +137,12 @@ static void qtgui_UpdatePyArgv(PyObject *argvlist, int argc, char **argv)
//! Returns the path to the svg directory.
static const QString svgPath();

//! Returns the path to user's style. Added in QGIS 1.2
static const QString userStyleV2Path();

//! Returns the path to default style (works as a starting point). Added in QGIS 1.2
static const QString defaultStyleV2Path();

//! Returns the path to the application prefix directory.
static const QString prefixPath();

Expand Down
9 changes: 9 additions & 0 deletions python/core/qgsvectorlayer.sip
Expand Up @@ -97,6 +97,15 @@ public:
/** Sets the renderer. If a renderer is already present, it is deleted */
void setRenderer(QgsRenderer * r /Transfer/);

/** Return renderer V2. Added in QGIS 1.2 */
QgsFeatureRendererV2* rendererV2();
/** Set renderer V2. Added in QGIS 1.2 */
void setRendererV2(QgsFeatureRendererV2* r);
/** Return whether using renderer V2. Added in QGIS 1.2 */
bool isUsingRendererV2();
/** set whether to use renderer V2 for drawing. Added in QGIS 1.2 */
void setUsingRendererV2(bool usingRendererV2);

/** Returns point, line or polygon */
QGis::GeometryType geometryType() const;

Expand Down

0 comments on commit 22cfaa3

Please sign in to comment.