Lumiera  0.pre.03
»edit your freedom«
timeline-gui.hpp
Go to the documentation of this file.
1 /*
2  TIMELINE-GUI.hpp - top-level anchor point and placeholder for "the timeline"
3 
4  Copyright (C) Lumiera.org
5  2018, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 
52 #ifndef STAGE_TIMELINE_TIMELINE_GUI_H
53 #define STAGE_TIMELINE_TIMELINE_GUI_H
54 
55 #include "stage/ctrl/bus-term.hpp"
56 #include "stage/model/w-link.hpp"
58 #include "lib/nocopy.hpp"
59 
60 #include <memory>
61 
62 
63 namespace stage {
64 namespace timeline {
65 
66  class TimelinePage;
67  class TimelineWidget;
68  using ctrl::BusTerm;
69 
76  : public model::WLink<TimelineWidget>
77  , public lib::diff::DiffMutable
79  {
80  using ID = BusTerm::ID;
81 
82  ID timelineID_;
83  ID rootTrackID_;
84 
85  public:
86  TimelineGui (ID identity, ID trackID);
87  virtual ~TimelineGui();
88 
89  TimelineGui (TimelineGui const&);
91 
92  ID getID() const { return timelineID_; }
93 
94 
97  std::unique_ptr<TimelinePage> buildTimelineWidget (BusTerm&);
98 
100  void buildMutator (lib::diff::TreeMutator::Handle buffer) override;
101 
102  };
103 
104 
105 }}// namespace stage::timeline
106 #endif /*STAGE_TIMELINE_TIMELINE_GUI_H*/
Abstraction or descriptor interface for a data structure exposing the ability for mutation by receivi...
smart-Handle as anchor point for "the UI representation" of a timeline.
connection point at the UI-Bus.
Definition: bus-term.hpp:105
TimelineGui(ID identity, ID trackID)
Initially, TimelineGui is just an empty placeholder handle.
std::unique_ptr< TimelinePage > buildTimelineWidget(BusTerm &)
actually build a TimelineWidget to enact the role represented by this smart-handle ...
Attachment point to the UI-Bus.
Mix-Ins to allow or prohibit various degrees of copying and cloning.
A handle to allow for safe »remote implantation« of an unknown subclass into a given opaque InPlaceBu...
Definition: record.hpp:113
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
Types marked with this mix-in may be created by copy-construction (or move construction), but may be not reassigned thereafter.
Definition: nocopy.hpp:91
Marker or capability interface: an otherwise not further disclosed data structure, which can be transformed through "tree diff messages".
void buildMutator(lib::diff::TreeMutator::Handle buffer) override
forwarding implementation of the DiffMutable interface, delegating through the referred TimelineWidge...