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

@@ -62,6 +62,6 @@ PyMOD_INIT_FUNC(Spreadsheet)
Spreadsheet::SheetPython::init();
PyObject* mod = Spreadsheet::initModule();
Base::Console().Log("Loading Spreadsheet module... done\n");
Base::Console().log("Loading Spreadsheet module... done\n");
PyMOD_Return(mod);
}

View File

@@ -116,7 +116,7 @@ Sheet::~Sheet()
}
catch (...) {
// Don't let an exception propagate out of a destructor (calls terminate())
Base::Console().Error(
Base::Console().error(
"clearAll() resulted in an exception when deleting the spreadsheet : %s\n",
getNameInDocument());
}
@@ -1159,7 +1159,7 @@ DocumentObjectExecReturn* Sheet::execute()
}
catch (std::exception&) { // TODO: evaluate using a more specific exception (not_a_dag)
// Cycle detected; flag all with errors
Base::Console().Error("Cyclic dependency detected in spreadsheet : %s\n",
Base::Console().error("Cyclic dependency detected in spreadsheet : %s\n",
getNameInDocument());
std::ostringstream ss;
ss << "Cyclic dependency";

View File

@@ -152,6 +152,6 @@ PyMOD_INIT_FUNC(SpreadsheetGui)
loadSpreadsheetResource();
PyObject* mod = SpreadsheetGui::initModule();
Base::Console().Log("Loading GUI of Spreadsheet module... done\n");
Base::Console().log("Loading GUI of Spreadsheet module... done\n");
PyMOD_Return(mod);
}

View File

@@ -212,7 +212,7 @@ void CmdSpreadsheetImport::activated(int iMsg)
sheet->execute();
}
else {
Base::Console().Error(errMsg.c_str());
Base::Console().error(errMsg.c_str());
return;
}
}

View File

@@ -56,13 +56,13 @@ void LineEdit::setDocumentObject(const App::DocumentObject* currentDocObj, bool
QPointer<Gui::MDIView> active_view = Gui::MainWindow::getInstance()->activeWindow();
if (!active_view) {
Base::Console().DeveloperWarning("LineEdit::setDocumentObject",
Base::Console().developerWarning("LineEdit::setDocumentObject",
"The active view is not Spreadsheet");
return;
}
QPointer<ZoomableView> zv = active_view->findChild<ZoomableView*>();
if (!zv) {
Base::Console().DeveloperWarning("LineEdit::setDocumentObject", "ZoomableView not found");
Base::Console().developerWarning("LineEdit::setDocumentObject", "ZoomableView not found");
return;
}

View File

@@ -450,7 +450,7 @@ void SheetView::confirmAliasChanged(const QString& text)
std::string current_alias;
(void)cell->getAlias(current_alias);
if (text != QString::fromUtf8(current_alias.c_str())) {
Base::Console().Error("Unable to set alias: %s\n", text.toStdString().c_str());
Base::Console().error("Unable to set alias: %s\n", text.toStdString().c_str());
}
}
else {

View File

@@ -122,7 +122,7 @@ void ViewProviderSheet::exportAsFile()
sheet->exportToFile(fileName.toStdString(), delim, quote, escape);
}
else {
Base::Console().Error(errMsg.c_str());
Base::Console().error(errMsg.c_str());
}
}
}

View File

@@ -33,14 +33,14 @@ ZoomableView::ZoomableView(Ui::Sheet* ui)
, stv {ui->cells}
{
if (!stv) {
Base::Console().DeveloperWarning("ZoomableView", "Failed to find a SheetTableView object");
Base::Console().developerWarning("ZoomableView", "Failed to find a SheetTableView object");
deleteLater();
return;
}
else {
QLayoutItem* li_stv = stv->parentWidget()->layout()->replaceWidget(stv, this);
if (li_stv == nullptr) {
Base::Console().DeveloperWarning("ZoomableView",
Base::Console().developerWarning("ZoomableView",
"Failed to replace the SheetTableView object");
deleteLater();
return;
@@ -67,7 +67,7 @@ ZoomableView::ZoomableView(Ui::Sheet* ui)
dummySB_v {stv->verticalScrollBar()}, realSB_h {ui->realSB_h}, realSB_v {ui->realSB_v};
if (!dummySB_h || !dummySB_v || !realSB_h || !realSB_v) {
Base::Console().DeveloperWarning("ZoomableView", "Failed to identify the scrollbars");
Base::Console().developerWarning("ZoomableView", "Failed to identify the scrollbars");
deleteLater();
return;
}