Skip to content

Commit

Permalink
add placement command to context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwxyz authored and chennes committed Jan 6, 2024
1 parent da05f7c commit f4167b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Gui/Workbench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,21 +595,21 @@ void StdWorkbench::setupContextMenu(const char* recipient, MenuItem* item) const
*measure << "View_Measure_Toggle_All" << "View_Measure_Clear_All";


*item << "Std_ViewFitAll" << "Std_ViewFitSelection" << "Std_DrawStyle"
*item << "Std_ViewFitAll" << "Std_ViewFitSelection" << "Std_DrawStyle"
<< StdViews << measure << "Separator"
<< "Std_ViewDockUndockFullscreen";

if (Gui::Selection().countObjectsOfType(App::DocumentObject::getClassTypeId()) > 0) {
*item << "Separator" << "Std_SetAppearance" << "Std_ToggleVisibility"
<< "Std_ToggleSelectability" << "Std_TreeSelection"
<< "Std_RandomColor" << "Std_ToggleTransparency" << "Separator" << "Std_Delete"
<< "Std_SendToPythonConsole" << "Std_TransformManip";
<< "Std_SendToPythonConsole" << "Std_TransformManip" << "Std_Placement";
}
}
else if (strcmp(recipient,"Tree") == 0)
{
if (Gui::Selection().countObjectsOfType(App::DocumentObject::getClassTypeId()) > 0) {
*item << "Std_ToggleVisibility" << "Std_ShowSelection" << "Std_HideSelection"
*item << "Std_Placement" << "Std_ToggleVisibility" << "Std_ShowSelection" << "Std_HideSelection"
<< "Std_ToggleSelectability" << "Std_TreeSelectAllInstances" << "Separator"
<< "Std_SetAppearance" << "Std_RandomColor" << "Std_ToggleTransparency" << "Separator"
<< "Std_Cut" << "Std_Copy" << "Std_Paste" << "Std_Delete"
Expand Down
3 changes: 2 additions & 1 deletion src/Mod/PartDesign/Gui/Workbench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) con
*item << "PartDesign_MultiTransform";

if (Gui::Selection().countObjectsOfType(App::DocumentObject::getClassTypeId()) > 0) {
*item << "Std_SetAppearance"
*item << "Std_Placement"
<< "Std_SetAppearance"
<< "Std_RandomColor"
<< "Std_Cut"
<< "Std_Copy"
Expand Down

0 comments on commit f4167b4

Please sign in to comment.