From 57b59ae9c74c9695fbb64c3b583c81a549ec150d Mon Sep 17 00:00:00 2001 From: wonder Date: Wed, 9 Jan 2008 22:40:21 +0000 Subject: [PATCH] removed QgisPlugin from the bindings (not used anyway) git-svn-id: http://svn.osgeo.org/qgis/trunk@7895 c8812cc2-4d05-0410-92ff-de0c093fc19c --- python/gui/gui.sip | 1 - python/gui/qgisplugin.sip | 64 --------------------------------------- 2 files changed, 65 deletions(-) delete mode 100644 python/gui/qgisplugin.sip diff --git a/python/gui/gui.sip b/python/gui/gui.sip index fa8644852c9..baef64fa82d 100644 --- a/python/gui/gui.sip +++ b/python/gui/gui.sip @@ -9,7 +9,6 @@ %Include qgisinterface.sip -%Include qgisplugin.sip %Include qgslayerprojectionselector.sip %Include qgsmapcanvas.sip %Include qgsmapcanvasitem.sip diff --git a/python/gui/qgisplugin.sip b/python/gui/qgisplugin.sip deleted file mode 100644 index 524d0a34317..00000000000 --- a/python/gui/qgisplugin.sip +++ /dev/null @@ -1,64 +0,0 @@ - -/*! \class QgisPlugin - * \brief Abstract base class from which all plugins must inherit - * - */ -class QgisPlugin -{ -%TypeHeaderCode -#include -%End - - public: - - //! Interface to gui element collection object - //virtual QgisPluginGui *gui()=0; - //! Element types that can be added to the interface - /* enum ELEMENTS { - MENU, - MENU_ITEM, - TOOLBAR, - TOOLBAR_BUTTON, - }; - - @todo XXX this may be a hint that there should be subclasses - */ - - enum PLUGINTYPE - { - UI = 1, - MAPLAYER, - RENDERER - }; - - - -// TODO: needs %MethodCode - QgisPlugin ( const QString & name = "", - const QString & description = "", - const QString & version = "", - PLUGINTYPE type = MAPLAYER ); - - virtual ~QgisPlugin(); - - //! Get the name of the plugin - QString & name(); - - //! Version of the plugin - QString & version(); - - //! A brief description of the plugin - QString & description(); - - //! Plugin type, either UI or map layer - PLUGINTYPE type(); - - /// function to initialize connection to GUI - virtual void initGui() = 0; - - //! Unload the plugin and cleanup the GUI - virtual void unload() = 0; - -}; // class QgisPlugin - -