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