55 const uint DEFAULT_OVERVIEW_HEIGHT_px = 20;
57 const uint TIMERULER_SCALE_HEIGHT_px = 20;
58 const uint TIMERULER_LARGE_TICK_WEIGHT_px = 2;
59 const uint TIMERULER_SMALL_TICK_WEIGHT_px = 2;
60 const uint TIMERULE_GAP_BELOW_px = 5;
67 : Controller{id, nexus}
73 RulerTrack::~RulerTrack() { }
78 UNIMPLEMENTED (
"what can actually be manipulated on a RulerTrack by diff message?");
97 return DEFAULT_OVERVIEW_HEIGHT_px;
100 uint combinedScaleHeight = 0;
101 for (
auto& scale : scales_)
102 combinedScaleHeight += scale.calcHeight();
103 return combinedScaleHeight;
115 if (not isnil (scales_))
116 return TIMERULE_GAP_BELOW_px;
129 return TIMERULER_SCALE_HEIGHT_px;
connection point at the UI-Bus.
uint calcHeight()
recursively calculate the height in pixels to display this ruler track.
uint calcHeight()
get vertical extension of this scale on the time(code) overview ruler
uint getGapHeight()
possibly cause the display of an additional padding gap below this ruler track
A View-Model entity to represent a timeline track in the UI.
RulerTrack(ID id, ctrl::BusTerm &nexus, TrackPresenter &parent)
A handle to allow for safe »remote implantation« of an unknown subclass into a given opaque InPlaceBu...
Lumiera GTK UI implementation root.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
virtual void buildMutator(lib::diff::TreeMutator::Handle) override
set up a binding to respond to mutation messages via UiBus
Timeline presentation helper to organise drawing of the overview rulers.
Definition of access keys for uniform UI styling.
A set of basic GTK includes for the UI.
Customisable intermediary to abstract mutating operations on arbitrary, hierarchical object-like data...