![]() |
Lumiera 0.pre.04
»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 More... | |
Static Public Attributes | |
| static const int | defaultOffsetY {0} |
| vertical offset below the track start | |
| static const string | defaultName {_("clip")} |
| placeholder name – typically overridden from the model | |
Static Public Member Functions | |
| 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. | |
| static Gtk::Widget & | expect_and_expose_Widget (PDelegate &manager) |
| Wrapper to safely expose the actual clip implementation widget. | |
Public Member Functions | |
| virtual | ~ClipDelegate () |
| this is an interface | |
| ClipDelegate () | |
| virtual Appearance | currentAppearance () const =0 |
| presentation mode and style currently employed | |
| virtual Appearance | changeAppearance (Appearance desired)=0 |
| alter appearance style, to the degree possible for this delegate. | |
| virtual cuString | getClipName () const =0 |
| human readable rendering of the clip's name or identity | |
| virtual void | setClipName (cuString &)=0 |
| virtual TimeVar & | accessStartTime ()=0 |
| virtual TimeVar & | accessDuration ()=0 |
| virtual uint | getVerticalOffset () const =0 |
| virtual WidgetHook & | getCanvas () const =0 |
| virtual void | updatePosition ()=0 |
| virtual uint | calcRequiredHeight () const =0 |
| WidgetHook::Pos | establishHookPoint (WidgetHook *newView) |
| (re)establish current canvas attachment coordinates, thereby possibly switching to a new canvas implementation | |
Private Attributes | |
| TimeSpan | timing_ |
|
virtual |
this is an interface
Definition at line 111 of file clip-widget.cpp.
| ClipDelegate | ( | ) |
Definition at line 110 of file clip-widget.cpp.
| enum Appearance |
desired appearance style for the clip
| Enumerator | |
|---|---|
| PENDING | |
| SYMBOLIC | |
| DEGRADED | |
| ABRIDGED | |
| COMPACT | |
| EXPANDED | |
Definition at line 156 of file clip-widget.hpp.
|
pure virtual |
presentation mode and style currently employed
Implemented in DormantClip, and ClipWidget.
|
pure virtual |
alter appearance style, to the degree possible for this delegate.
Implemented in ClipWidget, and DormantClip.
|
pure virtual |
human readable rendering of the clip's name or identity
Implemented in DormantClip, and ClipWidget.
|
pure virtual |
Implemented in DormantClip, and ClipWidget.
|
pure virtual |
Implemented in DormantClip, and ClipWidget.
|
pure virtual |
Implemented in DormantClip, and ClipWidget.
|
pure virtual |
Implemented in DormantClip, and ClipWidget.
|
pure virtual |
Implemented in DormantClip, and ClipWidget.
| 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 CanvasHook< WID >::hookedAt().
Here is the call graph for this function:
|
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().
Here is the caller graph for this function:
|
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.
References LERR_.
Referenced by ClipPresenter::exposeWidget().
Here is the caller graph for this function:
|
private |
Definition at line 148 of file clip-widget.hpp.
|
static |
vertical offset below the track start
Definition at line 160 of file clip-widget.hpp.
|
static |
placeholder name – typically overridden from the model
Definition at line 163 of file clip-widget.hpp.
Inheritance diagram for ClipDelegate:
Collaboration diagram for ClipDelegate: