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

@@ -1795,10 +1795,10 @@ void MainWindowP::restoreWindowState(const QByteArray &windowState)
Base::StateLocker guard(_restoring);
// tmp. disable the report window to suppress some bothering warnings
if (Base::Console().IsMsgTypeEnabled("ReportOutput", Base::ConsoleSingleton::MsgType_Wrn)) {
Base::Console().SetEnabledMsgType("ReportOutput", Base::ConsoleSingleton::MsgType_Wrn, false);
if (Base::Console().isMsgTypeEnabled("ReportOutput", Base::ConsoleSingleton::MsgType_Wrn)) {
Base::Console().setEnabledMsgType("ReportOutput", Base::ConsoleSingleton::MsgType_Wrn, false);
getMainWindow()->restoreState(windowState);
Base::Console().SetEnabledMsgType("ReportOutput", Base::ConsoleSingleton::MsgType_Wrn, true);
Base::Console().setEnabledMsgType("ReportOutput", Base::ConsoleSingleton::MsgType_Wrn, true);
} else
getMainWindow()->restoreState(windowState);
@@ -2099,7 +2099,7 @@ void MainWindow::loadUrls(App::Document* doc, const QList<QUrl>& urls)
files << info.absoluteFilePath();
}
else {
Base::Console().Message("No support to load file '%s'\n",
Base::Console().message("No support to load file '%s'\n",
(const char*)info.absoluteFilePath().toUtf8());
}
}
@@ -2338,7 +2338,7 @@ void MainWindow::setWindowTitle(const QString& string)
msg = QStringLiteral("#statusBar{color: #000000}"); // black
wrn = QStringLiteral("#statusBar{color: #ffaa00}"); // orange
err = QStringLiteral("#statusBar{color: #ff0000}"); // red
Base::Console().AttachObserver(this);
Base::Console().attachObserver(this);
getWindowParameter()->Attach(this);
getWindowParameter()->NotifyAll();
}
@@ -2346,7 +2346,7 @@ void MainWindow::setWindowTitle(const QString& string)
StatusBarObserver::~StatusBarObserver()
{
getWindowParameter()->Detach(this);
Base::Console().DetachObserver(this);
Base::Console().detachObserver(this);
}
void StatusBarObserver::OnChange(Base::Subject<const char*> & rCaller, const char* sReason)
@@ -2372,7 +2372,7 @@ void MainWindow::setWindowTitle(const QString& string)
}
}
void StatusBarObserver::SendLog(const std::string& notifiername,
void StatusBarObserver::sendLog(const std::string& notifiername,
const std::string& msg,
Base::LogStyle level,
Base::IntendedRecipient recipient,