Lumiera  0.pre.03
TrackPresenter Class Reference

#include "gui/timeline/track-presenter.hpp"


WIP-WIP as of 12/2016

Definition at line 73 of file track-presenter.hpp.

Public Member Functions

 TrackPresenter (ID identity, ctrl::BusTerm &nexus)
 ~TrackPresenter ()
virtual void buildMutator (lib::diff::TreeMutator::Handle) override
 set up a binding to respond to mutation messages via UiBus More...
- Public Member Functions inherited from Tangible
virtual ~Tangible ()
 this is an interface More...
void clearErr ()
 invoke the hook to clear error markers More...
void clearMsg ()
 invoke the hook to clear notification messages More...
void installExpander (Expander::ProbeFun, Expander::ChangeFun)
 Configure the (optional) functionality to expand or collapse the UI-Element. More...
void installRevealer (Revealer::RevealeItFun)
 Configure the (optional) functionality to bring the UI-Element into sight. More...
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. More...
template<typename... ARGS>
void invoke (Symbol cmdID, ARGS &&... args)
 convenience shortcut to issue a command with several arguments More...
void mark (GenNode const &)
 generic handler for all incoming "state mark" messages More...
void markErr (string error)
 push an error state tag to the element More...
void markFlash ()
 highlight the element visually to catch the user's attention More...
void markMsg (string message)
 push a notification (or warning) message to the element. More...
 operator ID () const
 operator LuidH () const
void reset ()
 invoke the generic reset hook More...
void slotCollapse ()
 Collapse or minimise this element and remember the collapsed state. More...
void slotExpand ()
 Expand this element and remember the expanded state. More...
void slotReveal ()
 Cause the element to be brought into sight. More...
- Public Member Functions inherited from DiffMutable
virtual ~DiffMutable ()
 this is an interface More...

Private Attributes

TrackBody body_
vector< unique_ptr< ClipPresenter > > clips_
TrackHeadWidget head_
vector< unique_ptr< MarkerWidget > > markers_
vector< unique_ptr< TrackPresenter > > subFork_

Additional Inherited Members

- Public Types inherited from Tangible
using ID = ctrl::BusTerm::ID
using LuidH = lib::hash::LuidH
- Protected Types inherited from Tangible
using GenNode = lib::diff::GenNode
using Rec = lib::diff::Rec
- 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. More...
virtual void doRevealYourself ()
 generic default implementation of the "reveal" functionality. More...
- Protected Attributes inherited from Tangible
Expander expand_
Revealer reveal_
ctrl::BusTerm uiBus_

Constructor & Destructor Documentation

◆ TrackPresenter()

TrackPresenter ( ID  identity,
ctrl::BusTerm nexus 
identityused to refer to a corresponding session::Fork in the Session
nexusa way to connect this Controller to the UI-Bus.

Definition at line 67 of file track-presenter.cpp.

References TrackPresenter::body_, TrackPresenter::clips_, TrackPresenter::head_, TrackPresenter::markers_, and TrackPresenter::subFork_.

◆ ~TrackPresenter()

Definition at line 79 of file track-presenter.cpp.

Member Function Documentation

◆ buildMutator()

void buildMutator ( lib::diff::TreeMutator::Handle  )

set up a binding to respond to mutation messages via UiBus

we distinguish between the contents of our three nested child collections based on the symbolic type field send in the Record type within the diff representation
  • "Marker" designates a Marker object
  • "Clip" designates a Clip placed on this track
  • "Fork" designates a nested sub-track

Implements Tangible.

Definition at line 94 of file track-presenter.cpp.

References TrackPresenter::clips_, GenNode::data, GenNode::idi, TrackPresenter::markers_, DataCap::recordType(), TrackPresenter::subFork_, and Tangible::uiBus_.

+ Here is the call graph for this function:

Member Data Documentation

◆ subFork_

vector<unique_ptr<TrackPresenter> > subFork_

◆ markers_

vector<unique_ptr<MarkerWidget> > markers_

◆ clips_

vector<unique_ptr<ClipPresenter> > clips_

◆ head_

TrackHeadWidget head_

Definition at line 80 of file track-presenter.hpp.

Referenced by TrackPresenter::TrackPresenter().

◆ body_

TrackBody body_

Definition at line 81 of file track-presenter.hpp.

Referenced by TrackPresenter::TrackPresenter().

+ Inheritance diagram for TrackPresenter:
+ Collaboration diagram for TrackPresenter:

The documentation for this class was generated from the following files: