Lumiera
0.pre.03
»edit your freedom«
|
#include "stage/timeline/clip-widget.hpp"
Definition at line 146 of file clip-widget.hpp.
Public Types | |
enum | Appearance { PENDING, SYMBOLIC, DEGRADED, ABRIDGED, COMPACT, EXPANDED } |
desired appearance style for the clip | |
Public Member Functions | |
virtual | ~ClipDelegate () |
this is an interface | |
virtual TimeVar & | accessDuration ()=0 |
virtual TimeVar & | accessStartTime ()=0 |
virtual uint | calcRequiredHeight () const =0 |
virtual Appearance | changeAppearance (Appearance desired)=0 |
alter appearance style, to the degree possible for this delegate. More... | |
virtual Appearance | currentAppearance () const =0 |
presentation mode and style currently employed | |
WidgetHook::Pos | establishHookPoint (WidgetHook *newView) |
(re)establish current canvas attachment coordinates, thereby possibly switching to a new canvas implementation More... | |
virtual WidgetHook & | getCanvas () const =0 |
virtual cuString | getClipName () const =0 |
human readable rendering of the clip's name or identity | |
virtual uint | getVerticalOffset () const =0 |
virtual void | setClipName (cuString &)=0 |
virtual void | updatePosition ()=0 |
Static Public Member Functions | |
static Gtk::Widget & | expect_and_expose_Widget (PDelegate &manager) |
Wrapper to safely expose the actual clip implementation widget. More... | |
static Appearance | selectAppearance (PDelegate &existing, Appearance desired=PENDING, WidgetHook *newView=nullptr, optional< TimeSpan > const &timing=nullopt) |
request to change the clip delegate's appearance style, if possible. More... | |
Static Public Attributes | |
static const string | defaultName {_("clip")} |
placeholder name – typically overridden from the model | |
static const int | defaultOffsetY {0} |
vertical offset below the track start | |
Private Attributes | |
TimeSpan | timing_ |
|
pure virtual |
alter appearance style, to the degree possible for this delegate.
Implemented in ClipWidget, and DormantClip.
WidgetHook::Pos establishHookPoint | ( | WidgetHook * | newView | ) |
(re)establish current canvas attachment coordinates, thereby possibly switching to a new canvas implementation
newView | (optional) new canvas; use existing if not given |
Definition at line 432 of file clip-widget.cpp.
References ClipDelegate::defaultOffsetY.
Referenced by ClipWidget::getClipName().
|
static |
request to change the clip delegate's appearance style, if possible.
existing | entity to hold and maintain this specific appearance state. |
desired | (optionally) the intended style or mode to acquire |
newView | (optionally) a different view to hook up the delegate. |
timing | position and duration of the clip, required when existing is empty |
SYMBOLIC
, we need to know the temporal extension of the clip. If such requirements can not be fulfilled, presentation stays or drops to the most elaborate state possible with the current configuration. existing
smart-ptr is empty. However, in this case it is mandatory to pass newView
PENDING
, which turns the delegate into a mere data record without visual representation. Definition at line 408 of file clip-widget.cpp.
Referenced by ClipPresenter::establishAppearance().
|
static |
Wrapper to safely expose the actual clip implementation widget.
error::State | if the current presentation / appearance style does not actually use a dedicated clip widget. |
Definition at line 441 of file clip-widget.cpp.
Referenced by ClipPresenter::exposeWidget().