Console: rename PascalCase named methods to camelCase
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user