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

@@ -209,12 +209,12 @@ public:
&Module::new_DocumentObjectProtector,
"DocumentObjectProtector(DocumentObject)");
initialize("This module is the Sandbox module"); // register with Python
Py::Dict d( moduleDictionary() );
Py::Object x( Sandbox::PythonBaseClass::type() );
d["PythonBaseClass"] = x;
}
virtual ~Module() {}
private:
@@ -253,6 +253,6 @@ PyMOD_INIT_FUNC(Sandbox)
// the following constructor call registers our extension module
// with the Python runtime system
PyObject* mod = Sandbox::initModule();
Base::Console().Log("Loading Sandbox module... done\n");
Base::Console().log("Loading Sandbox module... done\n");
PyMOD_Return(mod);
}

View File

@@ -133,7 +133,7 @@ void PythonThread::run()
#endif
}
catch (const Base::PyException& e) {
Base::Console().Error(e.what());
Base::Console().error(e.what());
}
}
@@ -181,26 +181,26 @@ short SandboxObject::mustExecute(void) const
App::DocumentObjectExecReturn *SandboxObject::execute(void)
{
Base::Console().Message("SandboxObject::execute()\n");
Base::Console().message("SandboxObject::execute()\n");
return 0;
}
void SandboxObject::onChanged(const App::Property* prop)
{
if (prop == &Integer)
Base::Console().Message("SandboxObject::onChanged(%d)\n", Integer.getValue());
Base::Console().message("SandboxObject::onChanged(%d)\n", Integer.getValue());
App::DocumentObject::onChanged(prop);
}
void SandboxObject::setIntValue(int v)
{
Base::Console().Message("SandboxObject::setIntValue(%d)\n", v);
Base::Console().message("SandboxObject::setIntValue(%d)\n", v);
Integer.setValue(v);
}
void SandboxObject::resetValue()
{
Base::Console().Message("SandboxObject::resetValue()\n");
Base::Console().message("SandboxObject::resetValue()\n");
Integer.setValue(4711);
}
@@ -215,7 +215,7 @@ DocumentTestThread::~DocumentTestThread()
void DocumentTestThread::run()
{
Base::Console().Message("DocumentTestThread::run()\n");
Base::Console().message("DocumentTestThread::run()\n");
App::Document* doc = App::GetApplication().getActiveDocument();
DocumentProtector dp(doc);
SandboxObject* obj = dp.addObject<SandboxObject>();

View File

@@ -107,17 +107,17 @@ private:
coords->point.set1Value(1, (float)m2.x,(float)m2.y,(float)m2.z);
coords->point.set1Value(2, (float)s2.x,(float)s2.y,(float)s2.z);
Base::Console().Message("M1=<%.4f,%.4f>\n", m1.x,m1.y);
Base::Console().Message("M2=<%.4f,%.4f>\n", m2.x,m2.y);
Base::Console().Message("S1=<%.4f,%.4f>\n", s1.x,s1.y);
Base::Console().Message("S2=<%.4f,%.4f>\n", s2.x,s2.y);
Base::Console().Message("P=<%.4f,%.4f>\n", a3.x,a3.y);
Base::Console().Message("Q=<%.4f,%.4f>\n", l2.x,l2.y);
Base::Console().Message("\n");
Base::Console().message("M1=<%.4f,%.4f>\n", m1.x,m1.y);
Base::Console().message("M2=<%.4f,%.4f>\n", m2.x,m2.y);
Base::Console().message("S1=<%.4f,%.4f>\n", s1.x,s1.y);
Base::Console().message("S2=<%.4f,%.4f>\n", s2.x,s2.y);
Base::Console().message("P=<%.4f,%.4f>\n", a3.x,a3.y);
Base::Console().message("Q=<%.4f,%.4f>\n", l2.x,l2.y);
Base::Console().message("\n");
}
catch (Py::Exception&) {
Base::PyException e; // extract the Python error text
Base::Console().Error("%s\n", e.what());
Base::Console().error("%s\n", e.what());
}
}
#else
@@ -144,7 +144,7 @@ public:
"Read XML");
initialize("This module is the SandboxGui module"); // register with Python
}
virtual ~Module() {}
private:
@@ -215,6 +215,6 @@ PyMOD_INIT_FUNC(SandboxGui)
// the following constructor call registers our extension module
// with the Python runtime system
PyObject* mod = SandboxGui::initModule();
Base::Console().Log("Loading GUI of Sandbox module... done\n");
Base::Console().log("Loading GUI of Sandbox module... done\n");
PyMOD_Return(mod);
}

View File

@@ -533,7 +533,7 @@ void CmdSandboxEventLoop::activated(int)
timer.start(5000); // 5s timeout
loop.exec();
Base::Console().Message("CmdSandboxEventLoop: timeout\n");
Base::Console().message("CmdSandboxEventLoop: timeout\n");
}
bool CmdSandboxEventLoop::isActive(void)
@@ -758,7 +758,7 @@ public:
kernel = myMesh->getKernel();
for (std::vector<Mesh::MeshObjectConstRef>::iterator it = meshes.begin(); it != meshes.end(); ++it) {
if (*it != myMesh) {
Base::Console().Message("MeshTestJob::run() in thread: %p\n", QThread::currentThreadId());
Base::Console().message("MeshTestJob::run() in thread: %p\n", QThread::currentThreadId());
}
}
@@ -822,7 +822,7 @@ void CmdSandboxMeshTestJob::activated(int)
}
// run the actual multi-threaded mesh test
Base::Console().Message("Mesh test (step %d)...\n",iteration++);
Base::Console().message("Mesh test (step %d)...\n",iteration++);
MeshTestJob meshJob;
QFuture<Mesh::MeshObject*> mesh_future = QtConcurrent::mapped
(mesh_groups, boost::bind(&MeshTestJob::run, &meshJob, bp::_1));
@@ -840,7 +840,7 @@ void CmdSandboxMeshTestJob::activated(int)
}
if (meshes.empty()) {
Base::Console().Error("The mesh test failed to create a valid mesh.\n");
Base::Console().error("The mesh test failed to create a valid mesh.\n");
return;
}
}
@@ -905,9 +905,9 @@ void CmdSandboxMeshTestRef::activated(int)
Mesh::MeshObject* ptr = (Mesh::MeshObject*)mesh;
if (!ptr)
Base::Console().Error("Object deleted\n");
Base::Console().error("Object deleted\n");
if (num != mesh.getRefCount())
Base::Console().Error("Reference count is %d\n",mesh.getRefCount());
Base::Console().error("Reference count is %d\n",mesh.getRefCount());
}
bool CmdSandboxMeshTestRef::isActive(void)