Gui: Add alignToSelection() icon and add to toolbar

Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
This commit is contained in:
Bas Ruigrok
2024-05-09 18:01:18 +02:00
parent 3fae3fac63
commit 491f4ea114
4 changed files with 152 additions and 3 deletions

View File

@@ -4079,16 +4079,16 @@ bool StdRecallWorkingView::isActive()
//===========================================================================
// Std_AlignToSelection
//===========================================================================
DEF_STD_CMD_A(StdCmdAlignToSelection)
StdCmdAlignToSelection::StdCmdAlignToSelection()
: Command("Std_AlignToSelection")
{
sGroup = "Standard-View";
sGroup = "View";
sMenuText = QT_TR_NOOP("Align to selection");
sToolTipText = QT_TR_NOOP("Align the view with the selection");
sWhatsThis = "Std_AlignToSelection";
sPixmap = "align-to-selection";
eType = Alter3DView;
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@@ -235,6 +235,7 @@
<file>colors.svg</file>
<file>px.svg</file>
<file>AddonManager.svg</file>
<file>align-to-selection.svg</file>
<file>Group.svg</file>
<file>Geofeaturegroup.svg</file>
<file>Geoassembly.svg</file>

View File

@@ -810,7 +810,7 @@ ToolBarItem* StdWorkbench::setupToolBars() const
// View
auto view = new ToolBarItem( root );
view->setCommand("View");
*view << "Std_ViewFitAll" << "Std_ViewFitSelection" << "Std_ViewGroup"
*view << "Std_ViewFitAll" << "Std_ViewFitSelection" << "Std_ViewGroup" << "Std_AlignToSelection"
<< "Separator" << "Std_DrawStyle" << "Std_TreeViewActions"
<< "Separator" << "Std_MeasureDistance" << "Std_Measure";