Lumiera  0.pre.03
»edit your freedom«
marker-widget.hpp
Go to the documentation of this file.
1 /*
2  MARKER-WIDGET.hpp - display of a marker in timeline or within clips
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 
38 #ifndef STAGE_TIMELINE_MARKER_WIDGET_H
39 #define STAGE_TIMELINE_MARKER_WIDGET_H
40 
41 #include "stage/gtk-base.hpp"
42 #include "stage/model/widget.hpp"
44 
45 //#include "lib/util.hpp"
46 
47 //#include <memory>
48 #include <string>
49 
50 
51 
52 namespace stage {
53 namespace timeline {
54 
55  using std::string;
56 
57  enum MarkerKind {
58  MARK,
59  LOOP
60  };
61 
62 
68  : public model::Widget
70  {
71  MarkerKind kind_;
72  string name_;
73 
74  public:
79  MarkerWidget (ID identity, ctrl::BusTerm& nexus);
80 
81  ~MarkerWidget();
82 
83 
85  virtual void buildMutator (lib::diff::TreeMutator::Handle) override;
86 
87  void relink();
88 
89  private:/* ===== Internals ===== */
90  };
91 
92 
93 }}// namespace stage::timeline
94 #endif /*STAGE_TIMELINE_MARKER_WIDGET_H*/
Common Abstraction of all UIBus connected widget elements.
connection point at the UI-Bus.
Definition: bus-term.hpp:105
A basic building block of the Lumiera UI.
Widget to render an ID label with associated icon.
void relink()
update and re-attach the presentation widget into its presentation context.
MarkerWidget(ID identity, ctrl::BusTerm &nexus)
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
virtual void buildMutator(lib::diff::TreeMutator::Handle) override
set up a binding to respond to mutation messages via UiBus
A set of basic GTK includes for the UI.