PartDesign: move common code for TaskDlg{SketcherBased,DressUp}Parameters into new base class
Added a new class: TaskDlgFeatureBased which currently contains common code for TaskDlgSketcherBasedParameters::reject() as well as the same methode for TaskDlgDressUpParameters. It's likely that other Feature task dialogs will inherit this class too.
This commit is contained in:
committed by
Stefan Tröger
parent
ebfd298baf
commit
6778c548f4
@@ -247,7 +247,7 @@ bool TaskDlgThicknessParameters::accept()
|
||||
|
||||
TaskThicknessParameters* draftparameter = static_cast<TaskThicknessParameters*>(parameter);
|
||||
|
||||
std::string name = DressUpView->getObject()->getNameInDocument();
|
||||
std::string name = vp->getObject()->getNameInDocument();
|
||||
|
||||
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Value = %f",name.c_str(),draftparameter->getValue());
|
||||
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Reversed = %u",name.c_str(),draftparameter->getReversed());
|
||||
|
||||
Reference in New Issue
Block a user