Skip to content

Commit

Permalink
[Gui] Update View and Structure toolbars using conditional defs
Browse files Browse the repository at this point in the history
  • Loading branch information
Syres916 authored Dec 22, 2024
1 parent e1648b7 commit d463a57
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Gui/Workbench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,14 @@ ToolBarItem* StdWorkbench::setupToolBars() const
auto view = new ToolBarItem( root );
view->setCommand("View");
*view << "Std_ViewFitAll" << "Std_ViewFitSelection" << "Std_ViewGroup" << "Std_AlignToSelection"
<< "Separator" << "Std_DrawStyle" << "Std_TreeViewActions";
<< "Separator" << "Std_DrawStyle";
#ifdef BUILD_PART
*view << "Part_SelectFilter";
#endif
*view << "Std_TreeViewActions";
#ifdef BUILD_MEASURE
*view << "Std_Measure";
#endif

// Individual views
auto individualViews = new ToolBarItem(root, ToolBarItem::DefaultVisibility::Hidden);
Expand All @@ -819,6 +826,9 @@ ToolBarItem* StdWorkbench::setupToolBars() const
// Structure
auto structure = new ToolBarItem( root );
structure->setCommand("Structure");
#ifdef BUILD_PART
*structure << "Part_Datums";
#endif
*structure << "Std_Part" << "Std_Group" << "Std_LinkActions" << "Std_VarSet";

// Help
Expand Down

0 comments on commit d463a57

Please sign in to comment.