Gui: Add alignToSelection() icon and add to toolbar
Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
148
src/Gui/Icons/align-to-selection.svg
Normal file
148
src/Gui/Icons/align-to-selection.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 5.8 KiB |
@@ -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>
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user