Lumiera  0.pre.03
»edit your freedom«
timeline-widget.hpp
Go to the documentation of this file.
1 /*
2  TIMELINE-WIDGET.hpp - custom widget for timeline display of the project
3 
4  Copyright (C) Lumiera.org
5  2016, 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 
55 #ifndef STAGE_TIMELINE_TIMELINE_WIDGET_H
56 #define STAGE_TIMELINE_TIMELINE_WIDGET_H
57 
58 #include "stage/gtk-base.hpp"
59 //#include "stage/timeline/timeline-controller.hpp" /////TODO possible to push that into the implementation?
60 //#include "stage/timeline/layout-manager.hpp"
61 #include "stage/ctrl/bus-term.hpp"
62 
63 #include "lib/time/timevalue.hpp"
65 #include "lib/nocopy.hpp"
66 
67 //#include <memory>
68 //#include <vector>
69 
70 
71 
72 namespace steam {
73 namespace asset{
74  class Timeline;
75 }}
76 
77 namespace stage {
78 namespace timeline {
79 
80  using ctrl::BusTerm;
81  class TimelineController;
82  class TimelineLayout;
83 
88  : public Gtk::Paned
89  {
90  public:
91  virtual ~TimelinePage() { }
92 
93  virtual cuString getLabel() const =0;
94 
95 
96  TimelinePage()
97  : Gtk::Paned{Gtk::ORIENTATION_HORIZONTAL}
98  { }
99  };
100 
109  : public TimelinePage
111  {
112  std::unique_ptr<TimelineLayout> layout_;
113  std::unique_ptr<TimelineController> control_;
114 
115  public:
135  TimelineWidget (BusTerm::ID identity, BusTerm::ID trackID, BusTerm& nexus);
136 
137  ~TimelineWidget();
138 
139 
140 
141  public: /* ===== Control interface ===== */
142 
144  void buildMutator (lib::diff::TreeMutator::Handle);
145 
146  cuString getLabel() const override;
147 
148  Gtk::WidgetPath getBodyWidgetPath() const;
149 
150 
151  public: /* ===== Signals ===== */
152 
153  private:/* ===== Events ===== */
154 
155  private:/* ===== Internals ===== */
156 
157  };
158 
159 
160 }}// namespace stage::timeline
161 #endif /*STAGE_TIMELINE_TIMELINE_WIDGET_H*/
Interface: GUI page holding a timeline display.
Abstraction or descriptor interface for a data structure exposing the ability for mutation by receivi...
connection point at the UI-Bus.
Definition: bus-term.hpp:105
Any copy and copy construction prohibited.
Definition: nocopy.hpp:46
Steam-Layer implementation namespace root.
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
Core timeline display (custom widget).
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
virtual ~TimelinePage()
this is an interface
a family of time value like entities and their relationships.
The asset subsystem of the Steam-Layer.
Definition: wrapperptr.hpp:44
A set of basic GTK includes for the UI.