UiLoader¶
Inherited: None
Description¶
The UiLoader class is tasked with loading user interface (UI) data from a buffer (likely an XML or similar format), managing the UI document, applying styles to the UI elements, and maintaining a hierarchy of widgets. This class appears to be part of a larger UI framework that supports widget-based layouts.
Public Methods¶
document () const |
|
void |
|
documentStyle () const |
|
void |
fromBuffer (const TString & buffer) |
void |
setDocument (UiDocument * document) |
void |
setStyleSheet (StyleSheet * style) |
styleSheet () const |
Static Methods¶
None
Methods Description¶
UiDocument * UiLoader::document () const
Returns the UiDocument associated with this UiLoader, which contains the structure of the loaded UI.
See also setDocument().
void UiLoader::documentLoaded ()
Emmits signal when document is loaded.
TString UiLoader::documentStyle () const
Returns the raw document style (as a string), which was parsed from the UI document.
void UiLoader::fromBuffer (TString & buffer)
This function loads the UI data from an XML buffer (likely containing UI element definitions and style information).
void UiLoader::setDocument (UiDocument * document)
Sets the UI document to the provided document pointer and reloads the UI from the document’s data buffer by calling fromBuffer().
See also document().
void UiLoader::setStyleSheet (StyleSheet * style)
Sets a style sheet to the hierarhy of widgets.
See also styleSheet().
StyleSheet * UiLoader::styleSheet () const
Returns the style sheet assigned to the hierarchy of widgets. This contains the visual styles (like colors, margins, fonts, etc.) that should be applied to the widgets.
See also setStyleSheet().