|
MT Showcase SDK
|
Component instance class for components that create operators. More...
#include <OperatorComponent.hpp>
Public Member Functions | |
| virtual void | removeInstance () override |
| Allows removing component instance when the component is removed. More... | |
| virtual MultiWidgets::OperatorPtr | operatorInstance (MultiWidgets::Widget &host, bool immediate=false) override |
| Assigns the operator to the given widget. More... | |
| virtual void | propertyReceived (const PropertyKey &key, const PropertyValue &value) override |
| Called for each property found for the creator component This function may be called same time from multiple threads. More... | |
| virtual void | propertyLost (const PropertyKey &key, const PropertyValue &value) override |
| Called when a property is unset for the component This function may be called same time from multiple threads. More... | |
Public Member Functions inherited from Showcase::UIComponentInstance | |
| UIComponentInstance (std::shared_ptr< Component > component) | |
| Create a new instance from the given component. More... | |
| virtual void | setContent (const QByteArray &slotName, std::shared_ptr< ContentNode > content) |
| Set a new content set for this instance. More... | |
| virtual void | removeContent (const QByteArray &slotName, std::shared_ptr< ContentNode > content) |
| Remove content set from this instance. More... | |
| virtual void | contentNodeFound (std::shared_ptr< ContentNode > node, std::shared_ptr< ContentNode > parent=nullptr) |
| Called when a new content node is found in a content graph. More... | |
| virtual void | contentNodeLost (std::shared_ptr< ContentNode > node, std::shared_ptr< ContentNode > parent=nullptr) |
| Called when a content node is lost. More... | |
| virtual void | contentNodeLostProperty (std::shared_ptr< ContentNode > contentNode, const Property &prop) |
| Called when a content node has lost a property. More... | |
| virtual void | contentNodeReceivedProperty (std::shared_ptr< ContentNode > contentNode, const Property &prop) |
| Called when a content node has found a property. More... | |
| virtual void | componentAddedToSlot (const QByteArray &slotName, std::shared_ptr< Component > comp) |
| Called when another component is added to a slot of this component. More... | |
| virtual void | componentRemovedFromSlot (const QByteArray &slotName, std::shared_ptr< Component > comp) |
| Called when another component is removed from a slot of this component. More... | |
Public Member Functions inherited from Showcase::ComponentInstance | |
| ComponentInstance (std::shared_ptr< Component > component) | |
| Create a new instance from the given component. More... | |
| virtual | ~ComponentInstance () |
| Each subclass needs to do needed clean up in their own destructors (should be enough to call removeInstance) More... | |
| virtual MultiWidgets::WidgetPtr | widgetInstance () |
| After first call of this, user of the component is required to keep track of the widget. More... | |
| std::shared_ptr< Component > | creator () const |
| An instance is always tied to a component and can't exist without the component that created it. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Showcase::ComponentInstance | |
| void | onDelete () |
| This needs to be set up so that when the actual instance (not this proxy object) is removed this is called (f.ex. More... | |
Component instance class for components that create operators.
|
overridevirtual |
Assigns the operator to the given widget.
ComponentInstance erases the last strong pointer to the operator after this If immediate is set to true, operator is added to the widget during this call, otherwise it's added to the widget in main thread after next update.
Reimplemented from Showcase::ComponentInstance.
|
overridevirtual |
Called when a property is unset for the component This function may be called same time from multiple threads.
| key | identifies the target property |
| value | value for the property |
Reimplemented from Showcase::ComponentInstance.
|
overridevirtual |
Called for each property found for the creator component This function may be called same time from multiple threads.
| key | identifies the target property |
| value | new value set for the property |
Reimplemented from Showcase::ComponentInstance.
|
overridevirtual |
Allows removing component instance when the component is removed.
Implementations must not call instanceDestroyed of the associated component
Reimplemented from Showcase::UIComponentInstance.