Console: rename PascalCase named methods to camelCase
This commit is contained in:
@@ -55,7 +55,7 @@ PyMOD_INIT_FUNC(AssemblyApp)
|
||||
}
|
||||
|
||||
PyObject* mod = Assembly::initModule();
|
||||
Base::Console().Log("Loading Assembly module... done\n");
|
||||
Base::Console().log("Loading Assembly module... done\n");
|
||||
|
||||
|
||||
// NOTE: To finish the initialization of our own type objects we must
|
||||
|
||||
@@ -197,7 +197,7 @@ int AssemblyObject::generateSimulation(App::DocumentObject* sim)
|
||||
mbdAssembly->runKINEMATIC();
|
||||
}
|
||||
catch (...) {
|
||||
Base::Console().Error("Generation of simulation failed\n");
|
||||
Base::Console().error("Generation of simulation failed\n");
|
||||
motions.clear();
|
||||
return -1;
|
||||
}
|
||||
@@ -367,7 +367,7 @@ bool AssemblyObject::validateNewPlacements()
|
||||
}
|
||||
|
||||
if (!oldPlc.isSame(newPlacement)) {
|
||||
Base::Console().Warning(
|
||||
Base::Console().warning(
|
||||
"Assembly : Ignoring bad solve, a grounded object (%s) moved.\n",
|
||||
obj->getFullLabel());
|
||||
return false;
|
||||
@@ -940,7 +940,7 @@ void AssemblyObject::removeUnconnectedJoints(std::vector<App::DocumentObject*>&
|
||||
App::DocumentObject* obj2 = getMovingPartFromRef(this, joint, "Reference2");
|
||||
if (!isObjInSetOfObjRefs(obj1, connectedParts)
|
||||
|| !isObjInSetOfObjRefs(obj2, connectedParts)) {
|
||||
Base::Console().Warning(
|
||||
Base::Console().warning(
|
||||
"%s is unconnected to a grounded part so it is ignored.\n",
|
||||
joint->getFullName());
|
||||
return true; // Remove joint if any connected object is not in connectedParts
|
||||
@@ -1550,7 +1550,7 @@ std::string AssemblyObject::handleOneSideOfJoint(App::DocumentObject* joint,
|
||||
App::DocumentObject* obj = getObjFromRef(joint, propRefName);
|
||||
|
||||
if (!part || !obj) {
|
||||
Base::Console().Warning("The property %s of Joint %s is bad.",
|
||||
Base::Console().warning("The property %s of Joint %s is bad.",
|
||||
propRefName,
|
||||
joint->getFullName());
|
||||
return "";
|
||||
@@ -1614,7 +1614,7 @@ void AssemblyObject::getRackPinionMarkers(App::DocumentObject* joint,
|
||||
Base::Placement plc2 = getPlacementFromProp(joint, "Placement2");
|
||||
|
||||
if (!part1 || !obj1) {
|
||||
Base::Console().Warning("Reference1 of Joint %s is bad.", joint->getFullName());
|
||||
Base::Console().warning("Reference1 of Joint %s is bad.", joint->getFullName());
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ void BomObject::saveCustomColumnData()
|
||||
std::string columnName = getText(0, i);
|
||||
if (columnName != "Index" && columnName != "Name" && columnName != "Quantity"
|
||||
&& columnName != "File Name") {
|
||||
// Base::Console().Warning("row col %d %d\n", row, col);
|
||||
// Base::Console().warning("row col %d %d\n", row, col);
|
||||
// save custom data if any.
|
||||
std::string text = getText(row, col);
|
||||
if (text != "") {
|
||||
@@ -268,7 +268,7 @@ std::string BomObject::getBomPropertyValue(App::DocumentObject* obj, const std::
|
||||
App::Property* prop = obj->getPropertyByName(baseName.c_str());
|
||||
|
||||
if (!prop) {
|
||||
Base::Console().Warning("Property not found: %s\n", baseName.c_str());
|
||||
Base::Console().warning("Property not found: %s\n", baseName.c_str());
|
||||
return QObject::tr("N/A").toStdString();
|
||||
}
|
||||
|
||||
@@ -292,7 +292,7 @@ std::string BomObject::getBomPropertyValue(App::DocumentObject* obj, const std::
|
||||
return propBool->getValue() ? "True" : "False";
|
||||
}
|
||||
|
||||
Base::Console().Warning("Property type not supported for: %s\n", prop->getName());
|
||||
Base::Console().warning("Property type not supported for: %s\n", prop->getName());
|
||||
return QObject::tr("Not supported").toStdString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user