Applied patch from Andrej Krutak - added removeDockWidget() to interface.

git-svn-id: http://svn.osgeo.org/qgis/trunk@10286 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2009-03-16 14:22:07 +00:00
parent c6d2f05bdf
commit 71b1fc7d77
4 changed files with 14 additions and 0 deletions

View File

@ -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;

View File

@ -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() )

View File

@ -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

View File

@ -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;