Lumiera
0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
timeline-zoom-scale.hpp
Go to the documentation of this file.
1
/*
2
TIMELINE-ZOOM-SCALE.hpp - widget to control timeline zoom scale
3
4
Copyright (C)
5
2011, Michael R. Fisher <mfisher31@gmail.com>
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_WIDGET_TIMELINE_ZOOM_SCALE_H
28
#define STAGE_WIDGET_TIMELINE_ZOOM_SCALE_H
29
30
#include "
stage/gtk-base.hpp
"
31
#include "
stage/widget/mini-button.hpp
"
32
33
34
namespace
stage
{
35
namespace
widget {
36
37
class
TimelineZoomScale
38
:
public
Gtk::HBox
39
{
40
public
:
41
TimelineZoomScale
();
42
43
sigc::signal<void, double>
signal_zoom
();
44
45
void
set_value
(
double
val) {
adjustment
->set_value(val); }
46
47
void
wireTimelineState
(
/* TODO what to pass here? */
);
48
49
50
51
private
:
/* ===== Event Handlers ===== */
52
56
void
on_timeline_state_changed
(
/* TODO what to pass here? */
);
57
61
void
on_zoom_in_clicked
();
62
66
void
on_zoom_out_clicked
();
67
71
void
on_zoom
();
72
73
/* Widgets */
74
Glib::RefPtr<Gtk::Adjustment>
adjustment
;
75
Gtk::HScale
slider
;
76
MiniButton
zoomIn
;
77
MiniButton
zoomOut
;
78
79
80
private
:
81
sigc::signal<void, double>
zoomSignal
;
82
const
double
button_step_size
;
83
};
84
85
86
}}
// namespace stage::widget
87
#endif
/*STAGE_WIDGET_TIMELINE_ZOOM_SCALE_H*/
stage::widget::MiniWrapper< Gtk::Button >
stage::widget::TimelineZoomScale
Definition
timeline-zoom-scale.hpp:39
stage::widget::TimelineZoomScale::on_zoom
void on_zoom()
Event handler for when the adjustment value is changed.
Definition
timeline-zoom-scale.cpp:115
stage::widget::TimelineZoomScale::button_step_size
const double button_step_size
Definition
timeline-zoom-scale.hpp:82
stage::widget::TimelineZoomScale::zoomIn
MiniButton zoomIn
Definition
timeline-zoom-scale.hpp:76
stage::widget::TimelineZoomScale::adjustment
Glib::RefPtr< Gtk::Adjustment > adjustment
Definition
timeline-zoom-scale.hpp:74
stage::widget::TimelineZoomScale::slider
Gtk::HScale slider
Definition
timeline-zoom-scale.hpp:75
stage::widget::TimelineZoomScale::wireTimelineState
void wireTimelineState()
Definition
timeline-zoom-scale.cpp:84
stage::widget::TimelineZoomScale::on_zoom_in_clicked
void on_zoom_in_clicked()
Event handler for when the zoomIn Button is clicked.
Definition
timeline-zoom-scale.cpp:99
stage::widget::TimelineZoomScale::signal_zoom
sigc::signal< void, double > signal_zoom()
Definition
timeline-zoom-scale.cpp:122
stage::widget::TimelineZoomScale::TimelineZoomScale
TimelineZoomScale()
A widget to control the timeline zoom state.
Definition
timeline-zoom-scale.cpp:48
stage::widget::TimelineZoomScale::set_value
void set_value(double val)
Definition
timeline-zoom-scale.hpp:45
stage::widget::TimelineZoomScale::zoomOut
MiniButton zoomOut
Definition
timeline-zoom-scale.hpp:77
stage::widget::TimelineZoomScale::on_timeline_state_changed
void on_timeline_state_changed()
Update the slider position when the timeline state is changed.
Definition
timeline-zoom-scale.cpp:92
stage::widget::TimelineZoomScale::zoomSignal
sigc::signal< void, double > zoomSignal
Definition
timeline-zoom-scale.hpp:81
stage::widget::TimelineZoomScale::on_zoom_out_clicked
void on_zoom_out_clicked()
Event handler for when the zoomIn Button is clicked.
Definition
timeline-zoom-scale.cpp:107
gtk-base.hpp
A set of basic GTK includes for the UI.
mini-button.hpp
Adapter to wrap button widgets intended to serve as tool buttons.
stage
Lumiera GTK UI implementation root.
Definition
guifacade.cpp:37
stage
widget
timeline-zoom-scale.hpp
Generated on Fri Nov 7 2025 for Lumiera by
1.9.8