PartDesign/Gui: rename some fonctions in ReferenceSelection.cpp

e.g. getPythonStr -> buildLinkListPythonStr etc
This commit is contained in:
Alexander Golubev
2015-08-17 10:44:04 +03:00
committed by Stefan Tröger
parent dfeb2e3f42
commit 771c2b2fce
9 changed files with 85 additions and 46 deletions

View File

@@ -388,12 +388,9 @@ void TaskPolarPatternParameters::apply()
std::vector<std::string> axes;
App::DocumentObject* obj;
getAxis(obj, axes);
std::string axis = getPythonStr(obj, axes);
if (!axis.empty() && obj) {
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Axis = %s", name.c_str(), axis.c_str());
} else {
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Axis = None", name.c_str());
}
std::string axis = buildLinkSingleSubPythonStr(obj, axes);
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Axis = %s", name.c_str(), axis.c_str());
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Reversed = %u",name.c_str(),getReverse());
ui->polarAngle->apply();
ui->spinOccurrences->apply();