Part: define Part_SectionCut as permanent menu item

This commit is contained in:
wmayer
2022-02-14 16:48:09 +01:00
parent 327ed41fd0
commit a769aee8b3
3 changed files with 2 additions and 10 deletions

View File

@@ -230,6 +230,8 @@ PyMOD_INIT_FUNC(PartGui)
// add resources and reloads the translators
loadPartResource();
Gui::Workbench::addPermanentMenuItem("Part_SectionCut", "Std_ToggleClipPlane");
// register bitmaps
// Gui::BitmapFactoryInst& rclBmpFactory = Gui::BitmapFactory();
// rclBmpFactory.addXPM("Part_Feature",(const char**) PartFeature_xpm);

View File

@@ -164,11 +164,6 @@ Gui::MenuItem* Workbench::setupMenuBar() const
Gui::MenuItem* face = new Gui::MenuItem();
face->setCommand("Part_ColorPerFace");
view->insertItem(appr, face);
appr = view->findItem("Std_ToggleClipPlane");
appr = view->afterItem(appr);
Gui::MenuItem* cut = new Gui::MenuItem();
cut->setCommand("Part_SectionCut");
view->insertItem(appr, cut);
}
return root;

View File

@@ -588,11 +588,6 @@ Gui::MenuItem* Workbench::setupMenuBar() const
Gui::MenuItem* face = new Gui::MenuItem();
face->setCommand("Part_ColorPerFace");
view->insertItem(appr, face);
appr = view->findItem("Std_ToggleClipPlane");
appr = view->afterItem(appr);
Gui::MenuItem* cut = new Gui::MenuItem();
cut->setCommand("Part_SectionCut");
view->insertItem(appr, cut);
}
// For 0.13 a couple of python packages like numpy, matplotlib and others