|
MT Showcase SDK
|
UserInterface manages dynamically loaded plugins that create Components. More...
#include <UserInterface.hpp>
Public Member Functions | |
| void | init (GraphPtr graph, const GraphNode &node) |
| void | setShowLoadingOverlay (bool showLoadingOverlay) |
| This is used on next UI init. | |
| std::shared_ptr< UIComponent > | stockUIComponent (const QString &componentName) |
| Create a stock ui component of the component with given name. More... | |
UserInterface manages dynamically loaded plugins that create Components.
| void Showcase::UserInterface::init | ( | GraphPtr | graph, |
| const GraphNode & | node | ||
| ) |
ATM root component is hardcoded
Create instance before reading anything from the graph. Otherwise we may miss some events
| std::shared_ptr< UIComponent > Showcase::UserInterface::stockUIComponent | ( | const QString & | componentName | ) |
Create a stock ui component of the component with given name.
The component will stay alive as long as the UserInterface is alive, and will get properties from theme