Skip to content
Permalink
Browse files

Applied patch from Andrej Krutak - added removeDockWidget() to interf…

…ace.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10286 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Mar 16, 2009
1 parent 66e2ae6 commit 8962a737d954c3037caf76ac4529cb1d19c5fa53
Showing with 14 additions and 0 deletions.
  1. +3 −0 python/gui/qgisinterface.sip
  2. +5 −0 src/app/qgisappinterface.cpp
  3. +3 −0 src/app/qgisappinterface.h
  4. +3 −0 src/gui/qgisinterface.h
@@ -87,6 +87,9 @@ class QgisInterface : QObject
/** Add a dock widget to the main window */
virtual void addDockWidget ( Qt::DockWidgetArea area, QDockWidget * dockwidget )=0;

/** Remove specified dock widget from main window (doesn't delete it). Added in QGIS 1.1. */
virtual void removeDockWidget ( QDockWidget * dockwidget )=0;

/** refresh legend of a layer */
virtual void refreshLegend( QgsMapLayer * layer )=0;

@@ -162,6 +162,11 @@ void QgisAppInterface::addDockWidget( Qt::DockWidgetArea area, QDockWidget * doc
qgis->addDockWidget( area, dockwidget );
}

void QgisAppInterface::removeDockWidget( QDockWidget * dockwidget )
{
qgis->removeDockWidget( dockwidget );
}

void QgisAppInterface::refreshLegend( QgsMapLayer *l )
{
if ( l && qgis && qgis->legend() )
@@ -102,6 +102,9 @@ class QgisAppInterface : public QgisInterface
/** Add a dock widget to the main window */
void addDockWidget( Qt::DockWidgetArea area, QDockWidget * dockwidget );

/** Remove specified dock widget from main window (doesn't delete it). Added in QGIS 1.1. */
void removeDockWidget ( QDockWidget * dockwidget );

virtual void refreshLegend( QgsMapLayer *l );

/** Add window to Window menu. The action title is the window title
@@ -118,6 +118,9 @@ class GUI_EXPORT QgisInterface : public QObject
/** Add a dock widget to the main window */
virtual void addDockWidget( Qt::DockWidgetArea area, QDockWidget * dockwidget ) = 0;

/** Remove specified dock widget from main window (doesn't delete it). Added in QGIS 1.1. */
virtual void removeDockWidget ( QDockWidget * dockwidget )=0;

/** refresh the legend of a layer */
virtual void refreshLegend( QgsMapLayer *l ) = 0;

0 comments on commit 8962a73

Please sign in to comment.
You can’t perform that action at this time.