Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
ruler-track.hpp
Go to the documentation of this file.
1/*
2 RULER-TRACK.hpp - track body area to show overview and timecode and markers
3
4 Copyright (C)
5 2018, Hermann Vosseler <Ichthyostega@web.de>
6
7  **Lumiera** is free software; you can redistribute it and/or modify it
8  under the terms of the GNU General Public License as published by the
9  Free Software Foundation; either version 2 of the License, or (at your
10  option) any later version. See the file COPYING for further details.
11
12*/
13
14
35#ifndef STAGE_TIMELINE_RULER_TRACK_H
36#define STAGE_TIMELINE_RULER_TRACK_H
37
38#include "stage/gtk-base.hpp"
40
41//#include "lib/util.hpp"
42
43//#include <memory>
44#include <vector>
45
46
47
48namespace stage {
49namespace timeline {
50
51 class TrackPresenter;
52
55 {
57 };
58
59
67 : public model::Controller
68 {
69 using Scales = std::vector<RulerScale>;
70
74 public:
76
82 RulerTrack (ID id, ctrl::BusTerm& nexus, TrackPresenter& parent);
83
86
88 virtual void buildMutator (lib::diff::TreeMutator::Handle) override;
89
90 private:/* ===== Internals ===== */
91
92 };
93
94
95}}// namespace stage::timeline
96#endif /*STAGE_TIMELINE_RULER_TRACK_H*/
A handle to allow for safe »remote implantation« of an unknown subclass into a given opaque InPlaceBu...
connection point at the UI-Bus.
Definition bus-term.hpp:98
ctrl::BusTerm::ID ID
Definition tangible.hpp:162
Helper to organise and draw the time or content overview ruler at the top of the timeline track displ...
uint calcHeight()
recursively calculate the height in pixels to display this ruler track.
uint getGapHeight()
possibly cause the display of an additional padding gap below this ruler track
std::vector< RulerScale > Scales
virtual void buildMutator(lib::diff::TreeMutator::Handle) override
set up a binding to respond to mutation messages via UiBus
A View-Model entity to represent a timeline track in the UI.
Common Abstraction of all sub-controller, coordinated by the UI-Bus.
A set of basic GTK includes for the UI.
unsigned int uint
Definition integral.hpp:29
Lumiera GTK UI implementation root.
Definition guifacade.cpp:37
uint calcHeight()
get vertical extension of this scale on the time(code) overview ruler