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

@@ -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()",