![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "stage/timeline/timeline-controller.hpp"
Controller to supervise the timeline display.
As a tangible element, it is attached to the UI-Bus.
Definition at line 78 of file timeline-controller.hpp.
Public Member Functions | |
| TimelineController (ID identity, ID trackID, ctrl::BusTerm &nexus, TimelineLayout &) | |
| ~TimelineController () | |
| virtual void | buildMutator (lib::diff::TreeMutator::Handle) override |
| set up a binding to respond to mutation messages via UiBus | |
| string const & | getName () const |
Public Member Functions inherited from Controller | |
| Tangible (ID identity, ctrl::BusTerm &nexus) | |
Public Member Functions inherited from Tangible | |
| virtual | ~Tangible () |
| this is an interface | |
| operator string () const | |
| diagnostic representation. | |
| operator LuidH () const | |
| ID | getID () const |
| void | reset () |
| invoke the generic reset hook | |
| void | clearMsg () |
| invoke the hook to clear notification messages | |
| void | clearErr () |
| invoke the hook to clear error markers | |
| template<typename... ARGS> | |
| void | invoke (Symbol cmdID, ARGS &&...) |
| void | invoke (Symbol cmdID, Rec &&arguments) |
| Perform a command or action, once the execution context has been established. | |
| void | slotExpand () |
| Expand this element and remember the expanded state. | |
| void | slotCollapse () |
| Collapse or minimise this element and remember the collapsed state. | |
| void | slotReveal () |
| Cause the element to be brought into sight. | |
| void | markFlash () |
| highlight the element visually to catch the user's attention | |
| void | markMsg (string message) |
| push a notification (or warning) message to the element. | |
| void | markErr (string error) |
| push an error state tag to the element | |
| void | mark (GenNode const &) |
| generic handler for all incoming "state mark" messages | |
| void | installExpander (Expander::ProbeFun, Expander::ChangeFun) |
| Configure the (optional) functionality to expand or collapse the UI-Element. | |
| void | installRevealer (Revealer::RevealeItFun) |
| Configure the (optional) functionality to bring the UI-Element into sight. | |
| template<typename... ARGS> | |
| void | invoke (Symbol cmdID, ARGS &&... args) |
| convenience shortcut to issue a command with several arguments | |
Public Member Functions inherited from DiffMutable | |
| virtual | ~DiffMutable () |
| this is an interface | |
Private Attributes | |
| string | name_ |
| vector< unique_ptr< MarkerWidget > > | markers_ |
| std::unique_ptr< TrackPresenter > | fork_ |
Additional Inherited Members | |
Public Types inherited from Tangible | |
| using | ID = ctrl::BusTerm::ID |
| using | LuidH = lib::hash::LuidH |
Protected Types inherited from Tangible | |
| using | Rec = lib::diff::Rec |
| using | GenNode = lib::diff::GenNode |
Protected Member Functions inherited from Controller | |
| virtual void | doMark (GenNode const &mark) override |
| default handler for all generic mark messages. | |
Protected Member Functions inherited from Tangible | |
| Tangible (ID identity, ctrl::BusTerm &nexus) | |
| virtual bool | doExpand (bool yes) |
| generic default implementation of the expand/collapse functionality. | |
| virtual void | doReveal () |
| generic default implementation of the "reveal" functionality. | |
Protected Attributes inherited from Tangible | |
| ctrl::BusTerm | uiBus_ |
| Expander | expand_ |
| Revealer | reveal_ |
| TimelineController | ( | ID | identity, |
| ID | trackID, | ||
| ctrl::BusTerm & | nexus, | ||
| TimelineLayout & | layoutManager | ||
| ) |
| identity | used to refer to a corresponding timeline element in the Session |
| trackID | the mandatory root track used in the associated Sequence |
| nexus | some established connection to the UI-Bus, used for registration. |
Definition at line 76 of file timeline-controller.cpp.
References TimelineController::fork_, and TimelineLayout::setupStructure().
Here is the call graph for this function:| ~TimelineController | ( | ) |
Definition at line 86 of file timeline-controller.cpp.
|
overridevirtual |
set up a binding to respond to mutation messages via UiBus
this method is invoked by the UI-Bus when dispatching a MutationMessage...
.buildChildMutator binding could have been omitted here, since it is precisely the default, which will be provided for a DiffMutable target object automatically (the TimelineController is a stage::model::Tangible, and thus implements the DiffMutable interface, with abstract buildMutator method. Implements Tangible.
Definition at line 133 of file timeline-controller.cpp.
References stage::ATTR_name, TreeMutator::build(), GenNode::data, PlantingHandle< BA, DEFAULT >::emplace(), TimelineController::fork_, GenNode::idi, DataCap::isNested(), TimelineController::markers_, and TimelineController::name_.
Here is the call graph for this function:
|
inline |
Definition at line 105 of file timeline-controller.hpp.
References TimelineController::name_.
|
private |
Definition at line 81 of file timeline-controller.hpp.
Referenced by TimelineController::buildMutator(), and TimelineController::getName().
|
private |
Definition at line 83 of file timeline-controller.hpp.
Referenced by TimelineController::buildMutator().
|
private |
Definition at line 84 of file timeline-controller.hpp.
Referenced by TimelineController::TimelineController(), and TimelineController::buildMutator().
Inheritance diagram for TimelineController:
Collaboration diagram for TimelineController: