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

@@ -395,12 +395,9 @@ void TaskLinearPatternParameters::apply()
std::vector<std::string> directions;
App::DocumentObject* obj;
getDirection(obj, directions);
std::string direction = getPythonStr(obj, directions);
if (!direction.empty() && obj) {
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Direction = %s", name.c_str(), direction.c_str());
} else {
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Direction = None", name.c_str());
}
std::string direction = buildLinkSingleSubPythonStr(obj, directions);
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Direction = %s", name.c_str(), direction.c_str());
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Reversed = %u",name.c_str(),getReverse());
ui->spinLength->apply();