Ardour
9.0-pre0-582-g084a23a80d
jump_distance_widget.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2019 Johannes Mueller <github@johannes-mueller.org>
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
*/
18
19
#ifndef ardour_contourdesign_jump_distance_widget_h
20
#define ardour_contourdesign_jump_distance_widget_h
21
22
#include <
gtkmm/comboboxtext.h
>
23
#include <
gtkmm/box.h
>
24
#include <
gtkmm/adjustment.h
>
25
26
#include "
pbd/signals.h
"
27
28
#include "
contourdesign.h
"
29
30
namespace
ArdourSurface
31
{
32
33
class
JumpDistanceWidget
:
public
Gtk::HBox
34
{
35
public
:
36
JumpDistanceWidget
(
JumpDistance
dist);
37
~JumpDistanceWidget
() {}
38
39
JumpDistance
get_distance
()
const
{
return
_distance
; }
40
void
set_distance
(
JumpDistance
dist);
41
42
sigc::signal<void>
Changed
;
43
44
private
:
45
JumpDistance
_distance
;
46
47
void
update_value
();
48
void
update_unit
();
49
50
Gtk::Adjustment
_value_adj
;
51
Gtk::ComboBoxText
_unit_cb
;
52
};
53
54
}
/* namespace */
55
56
#endif
/* ardour_contourdesign_jump_distance_widget_h */
adjustment.h
ArdourSurface::JumpDistanceWidget
Definition:
jump_distance_widget.h:34
ArdourSurface::JumpDistanceWidget::_distance
JumpDistance _distance
Definition:
jump_distance_widget.h:45
ArdourSurface::JumpDistanceWidget::update_value
void update_value()
ArdourSurface::JumpDistanceWidget::_unit_cb
Gtk::ComboBoxText _unit_cb
Definition:
jump_distance_widget.h:51
ArdourSurface::JumpDistanceWidget::get_distance
JumpDistance get_distance() const
Definition:
jump_distance_widget.h:39
ArdourSurface::JumpDistanceWidget::~JumpDistanceWidget
~JumpDistanceWidget()
Definition:
jump_distance_widget.h:37
ArdourSurface::JumpDistanceWidget::update_unit
void update_unit()
ArdourSurface::JumpDistanceWidget::set_distance
void set_distance(JumpDistance dist)
ArdourSurface::JumpDistanceWidget::JumpDistanceWidget
JumpDistanceWidget(JumpDistance dist)
ArdourSurface::JumpDistanceWidget::_value_adj
Gtk::Adjustment _value_adj
Definition:
jump_distance_widget.h:50
ArdourSurface::JumpDistanceWidget::Changed
sigc::signal< void > Changed
Definition:
jump_distance_widget.h:42
Gtk::Adjustment
Definition:
adjustment.h:63
Gtk::ComboBoxText
Definition:
comboboxtext.h:55
Gtk::HBox
Definition:
tk/ytkmm/ytkmm/gtkmm/box.h:588
comboboxtext.h
contourdesign.h
ArdourSurface
Definition:
cc121.h:71
signals.h
ArdourSurface::JumpDistance
Definition:
contourdesign.h:53
box.h
libs
surfaces
contourdesign
jump_distance_widget.h
Generated on Wed Dec 25 2024 05:44:33 for Ardour by
1.9.1