Skip to content
Permalink
Browse files

Make cadDockWidget available in python

Followup efcbbfd
  • Loading branch information
m-kuhn committed Oct 19, 2015
1 parent 330d024 commit 11328676229acc46ca7e853b45c8465902e03e62
Showing with 20 additions and 0 deletions.
  1. +5 −0 python/gui/qgisinterface.sip
  2. +6 −0 src/app/qgisappinterface.cpp
  3. +3 −0 src/app/qgisappinterface.h
  4. +6 −0 src/gui/qgisinterface.h
@@ -250,6 +250,11 @@ class QgisInterface : QObject
/** Remove specified dock widget from main window (doesn't delete it). */
virtual void removeDockWidget( QDockWidget * dockwidget ) = 0;

/** Advanced digitizing dock widget
* @note Added in 2.12
*/
virtual QgsAdvancedDigitizingDockWidget* cadDockWidget() = 0;

/** Open layer properties dialog */
virtual void showLayerProperties( QgsMapLayer *l ) = 0;

@@ -427,6 +427,12 @@ void QgisAppInterface::removeDockWidget( QDockWidget * dockwidget )
qgis->removeDockWidget( dockwidget );
}


QgsAdvancedDigitizingDockWidget*QgisAppInterface::cadDockWidget()
{
return qgis->cadDockWidget();
}

void QgisAppInterface::showLayerProperties( QgsMapLayer *l )
{
if ( l && qgis )
@@ -262,6 +262,9 @@ class APP_EXPORT QgisAppInterface : public QgisInterface
/** Remove specified dock widget from main window (doesn't delete it). */
void removeDockWidget( QDockWidget * dockwidget ) override;

//! return CAD dock widget
QgsAdvancedDigitizingDockWidget *cadDockWidget();

/** Show layer properties dialog for layer
* @param l layer to show properties table for
*/
@@ -25,6 +25,7 @@ class QDockWidget;
class QMainWindow;
class QWidget;

class QgsAdvancedDigitizingDockWidget;
class QgsAttributeDialog;
class QgsComposerView;
class QgsFeature;
@@ -302,6 +303,11 @@ class GUI_EXPORT QgisInterface : public QObject
/** Remove specified dock widget from main window (doesn't delete it). */
virtual void removeDockWidget( QDockWidget * dockwidget ) = 0;

/** Advanced digitizing dock widget
* @note Added in 2.12
*/
virtual QgsAdvancedDigitizingDockWidget* cadDockWidget() = 0;

/** Open layer properties dialog */
virtual void showLayerProperties( QgsMapLayer *l ) = 0;

0 comments on commit 1132867

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