[Part] allow to edit helices via a dialog
+ add class ViewProviderPrimitive to avoid to re-implement setEdit/unsetEdit methods for each sub-class separately + avoid using global variables + when editing a feature directly pass it to the dialogs + when editing a feature then do not use active document as this could point to the wrong object + fix undo/redo message + re-add '3D View' button to location dialog
This commit is contained in:
@@ -35,7 +35,7 @@ using namespace std;
|
||||
//**************************************************************************
|
||||
// Construction/Destruction
|
||||
|
||||
PROPERTY_SOURCE(PartGui::ViewProviderPrism, PartGui::ViewProviderPart)
|
||||
PROPERTY_SOURCE(PartGui::ViewProviderPrism, PartGui::ViewProviderPrimitive)
|
||||
|
||||
|
||||
ViewProviderPrism::ViewProviderPrism()
|
||||
@@ -67,7 +67,7 @@ std::vector<std::string> ViewProviderPrism::getDisplayModes(void) const
|
||||
//**************************************************************************
|
||||
// Construction/Destruction
|
||||
|
||||
PROPERTY_SOURCE(PartGui::ViewProviderWedge, PartGui::ViewProviderPart)
|
||||
PROPERTY_SOURCE(PartGui::ViewProviderWedge, PartGui::ViewProviderPrimitive)
|
||||
|
||||
|
||||
ViewProviderWedge::ViewProviderWedge()
|
||||
|
||||
Reference in New Issue
Block a user