294 warning.replace("&", "&").replace(">", ">").replace("<", "<") |
294 warning.replace("&", "&").replace(">", ">").replace("<", "<") |
295 ) |
295 ) |
296 qWarning(warning) |
296 qWarning(warning) |
297 else: |
297 else: |
298 warning = notice + msg + versionInfo |
298 warning = notice + msg + versionInfo |
299 print(warning) # __IGNORE_WARNING_M801__ |
299 print(warning) # __IGNORE_WARNING_M-801__ |
300 |
300 |
301 |
301 |
302 def uiStartUp(): |
302 def uiStartUp(): |
303 """ |
303 """ |
304 Global function to finalize the start up of the main UI. |
304 Global function to finalize the start up of the main UI. |
357 QWebEngineUrlScheme.registerScheme(scheme) |
357 QWebEngineUrlScheme.registerScheme(scheme) |
358 |
358 |
359 app = EricApplication(args) |
359 app = EricApplication(args) |
360 |
360 |
361 logging.getLogger(__name__).debug("Importing Preferences") |
361 logging.getLogger(__name__).debug("Importing Preferences") |
362 from eric7 import Preferences # __IGNORE_WARNING_I101__ |
362 from eric7 import Preferences # __IGNORE_WARNING_I-101__ |
363 |
363 |
364 if Preferences.getUI("SingleApplicationMode"): |
364 if Preferences.getUI("SingleApplicationMode"): |
365 handleSingleApplication() |
365 handleSingleApplication() |
366 |
366 |
367 # set the application style sheet |
367 # set the application style sheet |
400 |
400 |
401 # Load translation files and install them |
401 # Load translation files and install them |
402 loc = Startup.loadTranslators(qtTransDir, app, ("qscintilla",)) |
402 loc = Startup.loadTranslators(qtTransDir, app, ("qscintilla",)) |
403 |
403 |
404 # generate a graphical error handler |
404 # generate a graphical error handler |
405 from eric7.EricWidgets import EricErrorMessage # __IGNORE_WARNING_I101__ |
405 from eric7.EricWidgets import EricErrorMessage # __IGNORE_WARNING_I-101__ |
406 |
406 |
407 eMsg = EricErrorMessage.qtHandler( |
407 eMsg = EricErrorMessage.qtHandler( |
408 minSeverity=Preferences.getUI("MinimumMessageTypeSeverity") |
408 minSeverity=Preferences.getUI("MinimumMessageTypeSeverity") |
409 ) |
409 ) |
410 eMsg.setMinimumSize(600, 400) |
410 eMsg.setMinimumSize(600, 400) |
411 |
411 |
412 # Initialize SSL stuff |
412 # Initialize SSL stuff |
413 from eric7.EricNetwork.EricSslUtilities import initSSL # __IGNORE_WARNING_I101__ |
413 from eric7.EricNetwork.EricSslUtilities import initSSL # __IGNORE_WARNING_I-101__ |
414 |
414 |
415 initSSL() |
415 initSSL() |
416 |
416 |
417 splash.showMessage(QCoreApplication.translate("eric7_ide", "Starting...")) |
417 splash.showMessage(QCoreApplication.translate("eric7_ide", "Starting...")) |
418 logging.getLogger(__name__).debug("Starting...") |
418 logging.getLogger(__name__).debug("Starting...") |
419 |
419 |
420 # We can only import these after creating the EricApplication because they |
420 # We can only import these after creating the EricApplication because they |
421 # make Qt calls that need the EricApplication to exist. |
421 # make Qt calls that need the EricApplication to exist. |
422 from eric7.UI.UserInterface import UserInterface # __IGNORE_WARNING_I101__ |
422 from eric7.UI.UserInterface import UserInterface # __IGNORE_WARNING_I-101__ |
423 |
423 |
424 splash.showMessage( |
424 splash.showMessage( |
425 QCoreApplication.translate("eric7_ide", "Generating Main Window...") |
425 QCoreApplication.translate("eric7_ide", "Generating Main Window...") |
426 ) |
426 ) |
427 logging.getLogger(__name__).debug("Generating Main Window...") |
427 logging.getLogger(__name__).debug("Generating Main Window...") |