Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added an interface class for renderer plugins and a type QgisPlugin::…
…RENDERER git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5310 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
mhugent
committed
Apr 19, 2006
1 parent
564e82d
commit 6e88af2
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/*************************************************************************** | ||
qgsrendererplugin.h - description | ||
------------------- | ||
begin : April 2006 | ||
copyright : (C) 2006 by Marco Hugentobler | ||
email : marco dot hugentobler at karto dot baug dot ethz dot ch | ||
***************************************************************************/ | ||
|
||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#ifndef QGSRENDERERPLUGIN_H | ||
#define QGSRENDERERPLUGIN_H | ||
|
||
#include "qgisplugin.h" | ||
|
||
class QgsRenderer; | ||
class QDialog; | ||
class QString; | ||
|
||
/**Interface class for renderer plugins. This kind of plugins is of plugin type QgisPlugin::RENDERER | ||
and is capable to return a pointer to a concrete renderer and a dialog which can be embedded into the | ||
vector layer properties dialog in the main qgis application*/ | ||
class QgsRendererPlugin: public QgisPlugin | ||
{ | ||
public: | ||
QgsRendererPlugin(const QString& name, const QString& description, const QString& version): QgisPlugin(name, description, version, QgisPlugin::RENDERER) {} | ||
virtual QDialog* rendererDialog() = 0; | ||
virtual QgsRenderer* renderer() = 0; | ||
}; | ||
|
||
#endif |