Skip to content
Permalink
Browse files

- Rename "Advanced Shape Digitize Toolbar" -> "Shape Digitize Toolbar"

- Rewrite ui_defaults.h
  • Loading branch information
lbartoletti committed Feb 21, 2018
1 parent 55aa0b5 commit 88a5e3204b59673156c2d9028ac4b03aa8c4c751
@@ -191,7 +191,7 @@ Advanced digitizing dock widget
virtual QToolBar *mapNavToolToolBar() = 0;
virtual QToolBar *digitizeToolBar() = 0;
virtual QToolBar *advancedDigitizeToolBar() = 0;
virtual QToolBar *advancedShapeDigitizeToolBar() = 0;
virtual QToolBar *shapeDigitizeToolBar() = 0;
virtual QToolBar *attributesToolBar() = 0;
virtual QToolBar *pluginToolBar() = 0;
virtual QToolBar *helpToolBar() = 0;
@@ -2394,7 +2394,7 @@ void QgisApp::createToolBars()
<< mLayerToolBar
<< mDigitizeToolBar
<< mAdvancedDigitizeToolBar
<< mAdvancedShapeDigitizeToolBar
<< mShapeDigitizeToolBar
<< mMapNavToolBar
<< mAttributesToolBar
<< mPluginToolBar
@@ -2681,16 +2681,16 @@ void QgisApp::createToolBars()
}

//circular string digitize tool button
QToolButton *tbAddCircularString = new QToolButton( mAdvancedShapeDigitizeToolBar );
QToolButton *tbAddCircularString = new QToolButton( mShapeDigitizeToolBar );
tbAddCircularString->setPopupMode( QToolButton::MenuButtonPopup );
tbAddCircularString->addAction( mActionCircularStringCurvePoint );
tbAddCircularString->addAction( mActionCircularStringRadius );
tbAddCircularString->setDefaultAction( mActionCircularStringCurvePoint );
connect( tbAddCircularString, &QToolButton::triggered, this, &QgisApp::toolButtonActionTriggered );
mAdvancedShapeDigitizeToolBar->insertWidget( mActionVertexTool, tbAddCircularString );
mShapeDigitizeToolBar->insertWidget( mActionVertexTool, tbAddCircularString );

//circle digitize tool button
QToolButton *tbAddCircle = new QToolButton( mAdvancedShapeDigitizeToolBar );
QToolButton *tbAddCircle = new QToolButton( mShapeDigitizeToolBar );
tbAddCircle->setPopupMode( QToolButton::MenuButtonPopup );
tbAddCircle->addAction( mActionCircle2Points );
tbAddCircle->addAction( mActionCircle3Points );
@@ -2699,38 +2699,38 @@ void QgisApp::createToolBars()
tbAddCircle->addAction( mActionCircleCenterPoint );
tbAddCircle->setDefaultAction( mActionCircle2Points );
connect( tbAddCircle, &QToolButton::triggered, this, &QgisApp::toolButtonActionTriggered );
mAdvancedShapeDigitizeToolBar->insertWidget( mActionVertexTool, tbAddCircle );
mShapeDigitizeToolBar->insertWidget( mActionVertexTool, tbAddCircle );

//ellipse digitize tool button
QToolButton *tbAddEllipse = new QToolButton( mAdvancedShapeDigitizeToolBar );
QToolButton *tbAddEllipse = new QToolButton( mShapeDigitizeToolBar );
tbAddEllipse->setPopupMode( QToolButton::MenuButtonPopup );
tbAddEllipse->addAction( mActionEllipseCenter2Points );
tbAddEllipse->addAction( mActionEllipseCenterPoint );
tbAddEllipse->addAction( mActionEllipseExtent );
tbAddEllipse->addAction( mActionEllipseFoci );
tbAddEllipse->setDefaultAction( mActionEllipseCenter2Points );
connect( tbAddEllipse, &QToolButton::triggered, this, &QgisApp::toolButtonActionTriggered );
mAdvancedShapeDigitizeToolBar->insertWidget( mActionVertexTool, tbAddEllipse );
mShapeDigitizeToolBar->insertWidget( mActionVertexTool, tbAddEllipse );

//Rectangle digitize tool button
QToolButton *tbAddRectangle = new QToolButton( mAdvancedShapeDigitizeToolBar );
QToolButton *tbAddRectangle = new QToolButton( mShapeDigitizeToolBar );
tbAddRectangle->setPopupMode( QToolButton::MenuButtonPopup );
tbAddRectangle->addAction( mActionRectangleCenterPoint );
tbAddRectangle->addAction( mActionRectangleExtent );
tbAddRectangle->addAction( mActionRectangle3Points );
tbAddRectangle->setDefaultAction( mActionRectangleCenterPoint );
connect( tbAddRectangle, &QToolButton::triggered, this, &QgisApp::toolButtonActionTriggered );
mAdvancedShapeDigitizeToolBar->insertWidget( mActionVertexTool, tbAddRectangle );
mShapeDigitizeToolBar->insertWidget( mActionVertexTool, tbAddRectangle );

//Regular polygon digitize tool button
QToolButton *tbAddRegularPolygon = new QToolButton( mAdvancedShapeDigitizeToolBar );
QToolButton *tbAddRegularPolygon = new QToolButton( mShapeDigitizeToolBar );
tbAddRegularPolygon->setPopupMode( QToolButton::MenuButtonPopup );
tbAddRegularPolygon->addAction( mActionRegularPolygon2Points );
tbAddRegularPolygon->addAction( mActionRegularPolygonCenterPoint );
tbAddRegularPolygon->addAction( mActionRegularPolygonCenterCorner );
tbAddRegularPolygon->setDefaultAction( mActionRegularPolygon2Points );
connect( tbAddRegularPolygon, &QToolButton::triggered, this, &QgisApp::toolButtonActionTriggered );
mAdvancedShapeDigitizeToolBar->insertWidget( mActionVertexTool, tbAddRegularPolygon );
mShapeDigitizeToolBar->insertWidget( mActionVertexTool, tbAddRegularPolygon );

// move feature tool button
QToolButton *moveFeatureButton = new QToolButton( mDigitizeToolBar );
@@ -2915,7 +2915,7 @@ void QgisApp::createStatusBar()
QList< QWidget *> actionObjects;
actionObjects << menuBar()
<< mAdvancedDigitizeToolBar
<< mAdvancedShapeDigitizeToolBar
<< mShapeDigitizeToolBar
<< mFileToolBar
<< mDataSourceManagerToolBar
<< mLayerToolBar
@@ -584,7 +584,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
QToolBar *mapNavToolToolBar() { return mMapNavToolBar; }
QToolBar *digitizeToolBar() { return mDigitizeToolBar; }
QToolBar *advancedDigitizeToolBar() { return mAdvancedDigitizeToolBar; }
QToolBar *advancedShapeDigitizeToolBar() { return mAdvancedShapeDigitizeToolBar; }
QToolBar *shapeDigitizeToolBar() { return mShapeDigitizeToolBar; }
QToolBar *attributesToolBar() { return mAttributesToolBar; }
QToolBar *pluginToolBar() { return mPluginToolBar; }
QToolBar *helpToolBar() { return mHelpToolBar; }
@@ -572,7 +572,7 @@ QToolBar *QgisAppInterface::layerToolBar() { return qgis->layerToolBar(); }
QToolBar *QgisAppInterface::mapNavToolToolBar() { return qgis->mapNavToolToolBar(); }
QToolBar *QgisAppInterface::digitizeToolBar() { return qgis->digitizeToolBar(); }
QToolBar *QgisAppInterface::advancedDigitizeToolBar() { return qgis->advancedDigitizeToolBar(); }
QToolBar *QgisAppInterface::advancedShapeDigitizeToolBar() { return qgis->advancedShapeDigitizeToolBar(); }
QToolBar *QgisAppInterface::shapeDigitizeToolBar() { return qgis->shapeDigitizeToolBar(); }
QToolBar *QgisAppInterface::attributesToolBar() { return qgis->attributesToolBar(); }
QToolBar *QgisAppInterface::pluginToolBar() { return qgis->pluginToolBar(); }
QToolBar *QgisAppInterface::helpToolBar() { return qgis->helpToolBar(); }
@@ -371,7 +371,7 @@ class APP_EXPORT QgisAppInterface : public QgisInterface
QToolBar *mapNavToolToolBar() override;
QToolBar *digitizeToolBar() override;
QToolBar *advancedDigitizeToolBar() override;
QToolBar *advancedShapeDigitizeToolBar() override;
QToolBar *shapeDigitizeToolBar() override;
QToolBar *attributesToolBar() override;
QToolBar *pluginToolBar() override;
QToolBar *helpToolBar() override;

0 comments on commit 88a5e32

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