Lumiera
0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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
"
31
#include "
stage/timeline/timeline-widget.hpp
"
32
33
34
namespace
stage
{
35
namespace
timeline {
36
37
44
class
TimelineWidgetEmpty
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
:
62
TimelineWidgetEmpty
()
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*/
stage::timeline::TimelinePage
Interface: GUI page holding a timeline display.
Definition
timeline-widget.hpp:80
stage::timeline::TimelineWidgetEmpty
Placeholder to show when no actual Timeline is present.
Definition
timeline-widget-empty.hpp:46
stage::timeline::TimelineWidgetEmpty::quoteText_
Gtk::Label quoteText_
Definition
timeline-widget-empty.hpp:51
stage::timeline::TimelineWidgetEmpty::frame_
Gtk::Frame frame_
Definition
timeline-widget-empty.hpp:48
stage::timeline::TimelineWidgetEmpty::image_
Gtk::Image image_
Definition
timeline-widget-empty.hpp:53
stage::timeline::TimelineWidgetEmpty::content_
Gtk::Box content_
Definition
timeline-widget-empty.hpp:49
stage::timeline::TimelineWidgetEmpty::messageText_
Gtk::Label messageText_
Definition
timeline-widget-empty.hpp:50
stage::timeline::TimelineWidgetEmpty::getLabel
cuString getLabel() const override
Definition
timeline-widget-empty.hpp:56
stage::timeline::TimelineWidgetEmpty::TimelineWidgetEmpty
TimelineWidgetEmpty()
Definition
timeline-widget-empty.hpp:62
gtk-base.hpp
A set of basic GTK includes for the UI.
_
#define _(String)
Definition
gtk-base.hpp:68
Gtk
Definition
cmd-context.hpp:61
stage
Lumiera GTK UI implementation root.
Definition
guifacade.cpp:37
stage::cuString
const uString cuString
Definition
gtk-base.hpp:93
timeline-widget.hpp
This file defines the core component of the Lumiera GUI.
stage
timeline
timeline-widget-empty.hpp
Generated on Thu Dec 11 2025 for Lumiera by
1.9.8