Skip to content

Commit

Permalink
[ui] fix circular string button location and relocate undo/redo butto…
Browse files Browse the repository at this point in the history
…ns (#3845)
  • Loading branch information
nirvn authored Dec 8, 2016
1 parent 01f2c44 commit c32be64
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
18 changes: 9 additions & 9 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2339,6 +2339,15 @@ void QgisApp::createToolBars()
layout->itemAt( i )->setAlignment( Qt::AlignLeft );
}

//circular string digitize tool button
QToolButton* tbAddCircularString = new QToolButton( mDigitizeToolBar );
tbAddCircularString->setPopupMode( QToolButton::MenuButtonPopup );
tbAddCircularString->addAction( mActionCircularStringCurvePoint );
tbAddCircularString->addAction( mActionCircularStringRadius );
tbAddCircularString->setDefaultAction( mActionCircularStringCurvePoint );
connect( tbAddCircularString, SIGNAL( triggered( QAction * ) ), this, SLOT( toolButtonActionTriggered( QAction * ) ) );
mDigitizeToolBar->insertWidget( mActionNodeTool, tbAddCircularString );

// move feature tool button
QToolButton* moveFeatureButton = new QToolButton( mDigitizeToolBar );
moveFeatureButton->setPopupMode( QToolButton::MenuButtonPopup );
Expand All @@ -2358,15 +2367,6 @@ void QgisApp::createToolBars()
connect( moveFeatureButton, SIGNAL( triggered( QAction * ) ), this, SLOT( toolButtonActionTriggered( QAction * ) ) );
mDigitizeToolBar->insertWidget( mActionNodeTool, moveFeatureButton );

//circular string digitize tool button
QToolButton* tbAddCircularString = new QToolButton( mDigitizeToolBar );
tbAddCircularString->setPopupMode( QToolButton::MenuButtonPopup );
tbAddCircularString->addAction( mActionCircularStringCurvePoint );
tbAddCircularString->addAction( mActionCircularStringRadius );
tbAddCircularString->setDefaultAction( mActionCircularStringCurvePoint );
connect( tbAddCircularString, SIGNAL( triggered( QAction * ) ), this, SLOT( toolButtonActionTriggered( QAction * ) ) );
mDigitizeToolBar->insertWidget( mActionMoveFeature, tbAddCircularString );

bt = new QToolButton();
bt->setPopupMode( QToolButton::MenuButtonPopup );
bt->addAction( mActionRotatePointSymbols );
Expand Down
5 changes: 2 additions & 3 deletions src/ui/qgisapp.ui
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@
<addaction name="mActionCutFeatures"/>
<addaction name="mActionCopyFeatures"/>
<addaction name="mActionPasteFeatures"/>
<addaction name="mActionUndo"/>
<addaction name="mActionRedo"/>
</widget>
<widget class="QToolBar" name="mAdvancedDigitizeToolBar">
<property name="windowTitle">
Expand All @@ -388,9 +390,6 @@
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="mActionEnableTracing"/>
<addaction name="mActionUndo"/>
<addaction name="mActionRedo"/>
<addaction name="mActionRotateFeature"/>
<addaction name="mActionSimplifyFeature"/>
<addaction name="mActionAddRing"/>
Expand Down

0 comments on commit c32be64

Please sign in to comment.