Lumiera  0.pre.03
»edit your freedom«
timeline-widget-empty.hpp
Go to the documentation of this file.
1 /*
2  TIMELINE-WIDGET-EMPTY.hpp - placeholder widget for a missing timeline
3 
4  Copyright (C)
5  2016, 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 
27 #ifndef STAGE_TIMELINE_TIMELINE_WIDGET_EMPTY_H
28 #define STAGE_TIMELINE_TIMELINE_WIDGET_EMPTY_H
29 
30 #include "stage/gtk-base.hpp"
32 
33 
34 namespace stage {
35 namespace timeline {
36 
37 
45  : public TimelinePage
46  {
47 
48  Gtk::Frame frame_;
49  Gtk::Box content_;
50  Gtk::Label messageText_;
51  Gtk::Label quoteText_;
52 
53  Gtk::Image image_;
54 
55  cuString
56  getLabel() const override
57  {
58  return _("[virgin]");
59  }
60 
61  public:
63  : TimelinePage{}
64  , content_{Gtk::ORIENTATION_VERTICAL}
65  , image_{Gtk::StockID{"track_enabled"}, Gtk::ICON_SIZE_LARGE_TOOLBAR}
66  {
67  messageText_.set_markup("To be or not to be that is the question...");
68  messageText_.set_max_width_chars(80);
69  messageText_.set_line_wrap();
70  messageText_.set_halign(Gtk::ALIGN_FILL);
71  messageText_.set_valign(Gtk::ALIGN_FILL);
72  quoteText_.set_markup ("<i>-- the great actor Joseph Tura</i>");
73  quoteText_.set_halign(Gtk::ALIGN_END);
74  quoteText_.set_valign(Gtk::ALIGN_START);
75  content_.pack_start (messageText_, Gtk::PACK_SHRINK);
76  content_.pack_start (quoteText_, Gtk::PACK_EXPAND_PADDING);
77  frame_.add(content_);
78  frame_.set_border_width(5);
79  frame_.set_halign(Gtk::ALIGN_END);
80  frame_.set_valign(Gtk::ALIGN_START);
81 
82  Gtk::Paned::add1 (image_);
83  Gtk::Paned::add2 (frame_);
84  }
85  };
86 
87 
88 }}// namespace stage::timeline
89 #endif /*STAGE_TIMELINE_TIMELINE_WIDGET_EMPTY_H*/
Interface: GUI page holding a timeline display.
Placeholder to show when no actual Timeline is present.
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:37
A set of basic GTK includes for the UI.
This file defines the core component of the Lumiera GUI.