Uranium
Application Framework
 All Classes Namespaces Files Functions Variables Pages
UM.Qt.QtApplication.QtApplication Class Reference

Application subclass that provides a Qt application object. More...

Inheritance diagram for UM.Qt.QtApplication.QtApplication:
UM.Application.Application

Public Member Functions

def __init__
 
def run
 
def hideMessage
 
def showMessage
 
def setMainQml
 
def initializeEngine
 
def isShuttingDown
 
def registerObjects
 
def getRenderer
 
def addCommandLineOptions
 
def getMainWindow
 
def setMainWindow
 
def getTheme
 
def functionEvent
 
def event
 
def windowClosed
 
def loadQtTranslation
 Load a Qt translation catalog. More...
 
def showSplashMessage
 Display text on the splash screen. More...
 
def closeSplash
 Close the splash screen after the application has started. More...
 
- Public Member Functions inherited from UM.Application.Application
def __init__
 Init method. More...
 
def getContainerRegistry
 
def setGlobalContainerStack
 
def getGlobalContainerStack
 
def hideMessage
 
def showMessage
 
def getVersion
 Get the version of the application. More...
 
def getStaticVersion
 
def getBuildType
 Get the buildtype of the application. More...
 
def hideMessageById
 Remove a message from the visible message list so it will no longer be displayed. More...
 
def getVisibleMessages
 Get list of all visible messages. More...
 
def getCommandLineOption
 
def getApplicationName
 Get name of the application. More...
 
def getApplicationLanguage
 
def getRequiredPlugins
 Application has a list of plugins that it must have. More...
 
def setRequiredPlugins
 Set the plugins that the application must have in order to function. More...
 
def setBackend
 Set the backend of the application (the program that does the heavy lifting). More...
 
def getBackend
 Get the backend of the application (the program that does the heavy lifting). More...
 
def getPluginRegistry
 Get the PluginRegistry of this application. More...
 
def getController
 Get the Controller of this application. More...
 
def getMeshFileHandler
 Get the MeshFileHandler of this application. More...
 
def getWorkspaceFileHandler
 
def getOperationStack
 
def getOutputDeviceManager
 
def run
 Run the main event loop. More...
 
def getRenderer
 Return an application-specific Renderer object. More...
 
def functionEvent
 Post a function event onto the event loop. More...
 
def callLater
 Call a function the next time the event loop runs. More...
 
def getMainThread
 Get the application"s main thread. More...
 
def getInstance
 Return the singleton instance of the application object.
 
def parseCommandLine
 
def addCommandLineOptions
 Can be overridden to add additional command line options to the parser. More...
 
def addExtension
 
def getExtensions
 

Static Public Attributes

tuple engineCreatedSignal = Signal()
 
tuple mainWindowChanged = Signal()
 
- Static Public Attributes inherited from UM.Application.Application
tuple applicationShuttingDown = Signal()
 Emitted when the application window was closed and we need to shut down the application.
 
tuple showMessageSignal = Signal()
 
tuple hideMessageSignal = Signal()
 
tuple globalContainerStackChanged = Signal()
 
tuple visibleMessageAdded = Signal()
 Add a message to the visible message list so it will be displayed. More...
 
tuple visibleMessageRemoved = Signal()
 

Additional Inherited Members

- Static Public Member Functions inherited from UM.Application.Application
def getInstallPrefix
 

Detailed Description

Application subclass that provides a Qt application object.

Member Function Documentation

def UM.Qt.QtApplication.QtApplication.closeSplash (   self)

Close the splash screen after the application has started.

def UM.Qt.QtApplication.QtApplication.loadQtTranslation (   self,
  file,
  language = "default" 
)

Load a Qt translation catalog.

This method will locate, load and install a Qt message catalog that can be used by Qt's translation system, like qsTr() in QML files.

Parameters
fileThe file name to load, without extension. It will be searched for in the i18nLocation Resources directory. If it can not be found a warning will be logged but no error will be thrown.
languageThe language to load translations for. This can be any valid language code or 'default' in which case the language is looked up based on system locale. If the specified language can not be found, this method will fall back to loading the english translations file.
Note
When language is default, the language to load can be changed with the environment variable "LANGUAGE".
def UM.Qt.QtApplication.QtApplication.showSplashMessage (   self,
  message 
)

Display text on the splash screen.


The documentation for this class was generated from the following file: