Console: rename PascalCase named methods to camelCase
This commit is contained in:
@@ -308,10 +308,10 @@ void StartupPostProcess::checkOpenGL()
|
||||
if (context.create()) {
|
||||
context.makeCurrent(&window);
|
||||
if (!context.functions()->hasOpenGLFeature(QOpenGLFunctions::Framebuffers)) {
|
||||
Base::Console().Log("This system does not support framebuffer objects\n");
|
||||
Base::Console().log("This system does not support framebuffer objects\n");
|
||||
}
|
||||
if (!context.functions()->hasOpenGLFeature(QOpenGLFunctions::NPOTTextures)) {
|
||||
Base::Console().Log("This system does not support NPOT textures\n");
|
||||
Base::Console().log("This system does not support NPOT textures\n");
|
||||
}
|
||||
|
||||
int major = context.format().majorVersion();
|
||||
@@ -328,7 +328,7 @@ void StartupPostProcess::checkOpenGL()
|
||||
.arg(major)
|
||||
.arg(minor)
|
||||
+ QStringLiteral("\n");
|
||||
Base::Console().Warning(message.toStdString().c_str());
|
||||
Base::Console().warning(message.toStdString().c_str());
|
||||
Dialog::DlgCheckableMessageBox::showMessage(
|
||||
QCoreApplication::applicationName() + QStringLiteral(" - ")
|
||||
+ QObject::tr("Invalid OpenGL Version"),
|
||||
@@ -336,7 +336,7 @@ void StartupPostProcess::checkOpenGL()
|
||||
}
|
||||
#endif
|
||||
const char* glVersion = reinterpret_cast<const char*>(glGetString(GL_VERSION));
|
||||
Base::Console().Log("OpenGL version is: %d.%d (%s)\n", major, minor, glVersion);
|
||||
Base::Console().log("OpenGL version is: %d.%d (%s)\n", major, minor, glVersion);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -411,12 +411,12 @@ void StartupPostProcess::showMainWindow()
|
||||
|
||||
// running the GUI init script
|
||||
try {
|
||||
Base::Console().Log("Run Gui init script\n");
|
||||
Base::Console().log("Run Gui init script\n");
|
||||
Application::runInitGuiScript();
|
||||
setImportImageFormats();
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
Base::Console().Error("Error in FreeCADGuiInit.py: %s\n", e.what());
|
||||
Base::Console().error("Error in FreeCADGuiInit.py: %s\n", e.what());
|
||||
mainWindow->stopSplasher();
|
||||
throw;
|
||||
|
||||
@@ -432,7 +432,7 @@ void StartupPostProcess::activateWorkbench()
|
||||
{
|
||||
// Activate the correct workbench
|
||||
std::string start = App::Application::Config()["StartWorkbench"];
|
||||
Base::Console().Log("Init: Activating default workbench %s\n", start.c_str());
|
||||
Base::Console().log("Init: Activating default workbench %s\n", start.c_str());
|
||||
std::string autoload =
|
||||
App::GetApplication()
|
||||
.GetParameterGroupByPath("User parameter:BaseApp/Preferences/General")
|
||||
@@ -469,7 +469,7 @@ void StartupPostProcess::activateWorkbench()
|
||||
|
||||
// show the main window
|
||||
if (!Application::hiddenMainWindow()) {
|
||||
Base::Console().Log("Init: Showing main window\n");
|
||||
Base::Console().log("Init: Showing main window\n");
|
||||
mainWindow->loadWindowSettings();
|
||||
}
|
||||
|
||||
@@ -528,11 +528,11 @@ void StartupPostProcess::autoloadModules(const QStringList& wb)
|
||||
void StartupPostProcess::checkParameters()
|
||||
{
|
||||
if (App::GetApplication().GetSystemParameter().IgnoreSave()) {
|
||||
Base::Console().Warning("System parameter file couldn't be opened.\n"
|
||||
Base::Console().warning("System parameter file couldn't be opened.\n"
|
||||
"Continue with an empty configuration that won't be saved.\n");
|
||||
}
|
||||
if (App::GetApplication().GetUserParameter().IgnoreSave()) {
|
||||
Base::Console().Warning("User parameter file couldn't be opened.\n"
|
||||
Base::Console().warning("User parameter file couldn't be opened.\n"
|
||||
"Continue with an empty configuration that won't be saved.\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user