Skip to content

Commit

Permalink
Make cadDockWidget available in python
Browse files Browse the repository at this point in the history
Followup efcbbfd
  • Loading branch information
m-kuhn committed Oct 19, 2015
1 parent 330d024 commit 1132867
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/gui/qgisinterface.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 6 additions & 0 deletions src/app/qgisappinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
3 changes: 3 additions & 0 deletions src/app/qgisappinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
6 changes: 6 additions & 0 deletions src/gui/qgisinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class QDockWidget;
class QMainWindow;
class QWidget;

class QgsAdvancedDigitizingDockWidget;
class QgsAttributeDialog;
class QgsComposerView;
class QgsFeature;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 1132867

Please sign in to comment.