Console: rename PascalCase named methods to camelCase

This commit is contained in:
bofdahof
2025-03-30 00:50:27 +10:00
committed by Kacper Donat
parent 1dbc0638c3
commit ba2c2ca5ad
497 changed files with 2423 additions and 2425 deletions

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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();
}

View File

@@ -54,7 +54,7 @@ PyMOD_INIT_FUNC(AssemblyGui)
}
PyObject* mod = AssemblyGui::initModule();
Base::Console().Log("Loading AssemblyGui module... done\n");
Base::Console().log("Loading AssemblyGui module... done\n");
// NOTE: To finish the initialization of our own type objects we must

View File

@@ -85,7 +85,7 @@ void printPlacement(Base::Placement plc, const char* name)
double angle;
Base::Rotation rot = plc.getRotation();
rot.getRawValue(axis, angle);
Base::Console().Warning(
Base::Console().warning(
"placement %s : position (%.1f, %.1f, %.1f) - axis (%.1f, %.1f, %.1f) angle %.1f\n",
name,
pos.x,
@@ -340,7 +340,7 @@ bool ViewProviderAssembly::mouseMove(const SbVec2s& cursorPos, Gui::View3DInvent
return tryMouseMove(cursorPos, viewer);
}
catch (const Base::Exception& e) {
Base::Console().Warning("%s\n", e.what());
Base::Console().warning("%s\n", e.what());
return false;
}
}
@@ -822,7 +822,7 @@ void ViewProviderAssembly::initMove(const SbVec2s& cursorPos, Gui::View3DInvento
tryInitMove(cursorPos, viewer);
}
catch (const Base::Exception& e) {
Base::Console().Warning("%s\n", e.what());
Base::Console().warning("%s\n", e.what());
}
}

View File

@@ -76,7 +76,7 @@ bool ViewProviderAssemblyLink::setEdit(int mode)
auto* assemblyLink = dynamic_cast<Assembly::AssemblyLink*>(getObject());
if (!assemblyLink->isRigid() && mode == (int)ViewProvider::Transform) {
Base::Console().UserTranslatedNotification(
Base::Console().userTranslatedNotification(
"Flexible sub-assemblies cannot be transformed.");
return true;
}
@@ -106,7 +106,7 @@ bool ViewProviderAssemblyLink::onDelete(const std::vector<std::string>& subNames
{
Q_UNUSED(subNames)
Base::Console().Warning("onDelete\n");
Base::Console().warning("onDelete\n");
Gui::Command::doCommand(Gui::Command::Doc,
"App.getDocument(\"%s\").getObject(\"%s\").removeObjectsFromDocument()",