Part: define Part_SectionCut as permanent menu item
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user