Lumiera  0.pre.03
»edit your freedom«
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 
48 namespace stage {
49 namespace timeline {
50 
51  class TrackPresenter;
52 
54  struct RulerScale
55  {
56  uint calcHeight();
57  };
58 
59 
66  class RulerTrack
67  : public model::Controller
68  {
69  using Scales = std::vector<RulerScale>;
70 
71  TrackPresenter& track_;
72  Scales scales_;
74  public:
75  ~RulerTrack();
76 
82  RulerTrack (ID id, ctrl::BusTerm& nexus, TrackPresenter& parent);
83 
84  uint calcHeight();
85  uint getGapHeight();
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*/
Helper to organise and draw the time or content overview ruler at the top of the timeline track displ...
Definition: ruler-track.hpp:66
connection point at the UI-Bus.
Definition: bus-term.hpp:96
uint calcHeight()
get vertical extension of this scale on the time(code) overview ruler
A View-Model entity to represent a timeline track in the UI.
A handle to allow for safe »remote implantation« of an unknown subclass into a given opaque InPlaceBu...
Definition: record.hpp:104
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:37
Common Abstraction of all sub-controller, coordinated by the UI-Bus.
A set of basic GTK includes for the UI.