Lumiera  0.pre.03
»edityourfreedom«
ClipPresenter Class Reference

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

Description

Todo:
WIP-WIP as of 12/2016

Definition at line 78 of file clip-presenter.hpp.

Public Member Functions

 ClipPresenter (ID identity, ctrl::BusTerm &nexus)
 
 ~ClipPresenter ()
 
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

vector< unique_ptr< ClipPresenter > > channels_
 
vector< unique_ptr< ClipPresenter > > effects_
 
vector< unique_ptr< MarkerWidget > > markers_
 
ClipWidget widget_
 

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 Controller
virtual void doMark (GenNode const &mark) override
 default handler for all generic mark messages. More...
 
- 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 doReveal ()
 generic default implementation of the "reveal" functionality. More...
 
- Protected Attributes inherited from Tangible
Expander expand_
 
Revealer reveal_
 
ctrl::BusTerm uiBus_
 

Constructor & Destructor Documentation

◆ ClipPresenter()

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

Definition at line 68 of file clip-presenter.cpp.

References ClipPresenter::channels_, ClipPresenter::effects_, ClipPresenter::markers_, and ClipPresenter::widget_.

◆ ~ClipPresenter()

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

Member Function Documentation

◆ buildMutator()

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

set up a binding to respond to mutation messages via UiBus

Implements Tangible.

Definition at line 87 of file clip-presenter.cpp.

References ClipPresenter::channels_, GenNode::data, ClipPresenter::effects_, GenNode::idi, ClipPresenter::markers_, DataCap::recordType(), gui::TYPE_Channel, gui::TYPE_Effect, gui::TYPE_Marker, and Tangible::uiBus_.

+ Here is the call graph for this function:

Member Data Documentation

◆ channels_

vector<unique_ptr<ClipPresenter> > channels_
private

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

Referenced by ClipPresenter::buildMutator(), and ClipPresenter::ClipPresenter().

◆ effects_

vector<unique_ptr<ClipPresenter> > effects_
private

Definition at line 82 of file clip-presenter.hpp.

Referenced by ClipPresenter::buildMutator(), and ClipPresenter::ClipPresenter().

◆ markers_

vector<unique_ptr<MarkerWidget> > markers_
private

Definition at line 83 of file clip-presenter.hpp.

Referenced by ClipPresenter::buildMutator(), and ClipPresenter::ClipPresenter().

◆ widget_

ClipWidget widget_
private

Definition at line 85 of file clip-presenter.hpp.

Referenced by ClipPresenter::ClipPresenter().

+ Inheritance diagram for ClipPresenter:
+ Collaboration diagram for ClipPresenter:

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