MT Showcase SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Showcase::UserInterface Class Reference

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< UIComponentstockUIComponent (const QString &componentName)
 Create a stock ui component of the component with given name. More...
 

Detailed Description

UserInterface manages dynamically loaded plugins that create Components.

Member Function Documentation

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