64 const uint DEFAULT_OVERVIEW_HEIGHT_px = 20;
66 const uint TIMERULER_SCALE_HEIGHT_px = 20;
67 const uint TIMERULER_LARGE_TICK_WEIGHT_px = 2;
68 const uint TIMERULER_SMALL_TICK_WEIGHT_px = 2;
69 const uint TIMERULE_GAP_BELOW_px = 5;
76 : Controller{id, nexus}
82 RulerTrack::~RulerTrack() { }
87 UNIMPLEMENTED (
"what can actually be manipulated on a RulerTrack by diff message?");
106 return DEFAULT_OVERVIEW_HEIGHT_px;
109 uint combinedScaleHeight = 0;
110 for (
auto& scale : scales_)
111 combinedScaleHeight += scale.calcHeight();
112 return combinedScaleHeight;
124 if (not isnil (scales_))
125 return TIMERULE_GAP_BELOW_px;
138 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...