Ardour
8.12
binding_proxy.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006 Paul Davis <paul@linuxaudiosystems.com>
3
* Copyright (C) 2017-2019 Robin Gareus <robin@gareus.org>
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License along
16
* with this program; if not, write to the Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*/
19
20
#ifndef _WIDGETS_BINDING_PROXY_
21
#define _WIDGETS_BINDING_PROXY_
22
23
#include <memory>
24
#include <string>
25
26
#include "
pbd/signals.h
"
27
28
#include "
widgets/visibility.h
"
29
30
namespace
PBD
{
31
class
Controllable
;
32
}
33
34
namespace
ArdourWidgets
{
35
class
PopUp;
36
}
37
38
namespace
ArdourWidgets
{
39
40
class
LIBWIDGETS_API
BindingProxy
:
public
sigc::trackable
41
{
42
public
:
43
BindingProxy
(std::shared_ptr<PBD::Controllable>);
44
BindingProxy
();
45
virtual
~BindingProxy
();
46
47
void
set_bind_button_state
(guint button, guint statemask);
48
49
static
bool
is_bind_action
(
GdkEventButton
*);
50
bool
button_press_handler
(
GdkEventButton
*);
51
52
std::shared_ptr<PBD::Controllable>
get_controllable
()
const
{
return
controllable; }
53
void
set_controllable
(std::shared_ptr<PBD::Controllable>);
54
55
protected
:
56
ArdourWidgets::PopUp
*
prompter
;
57
std::shared_ptr<PBD::Controllable>
controllable
;
58
59
static
guint
bind_button
;
60
static
guint
bind_statemask
;
61
62
PBD::ScopedConnection
learning_connection
;
63
PBD::ScopedConnection
_controllable_going_away_connection
;
64
void
learning_finished
();
65
bool
prompter_hiding
(
GdkEventAny
*);
66
};
67
68
}
69
70
#endif
ArdourWidgets::BindingProxy
Definition:
binding_proxy.h:41
ArdourWidgets::BindingProxy::button_press_handler
bool button_press_handler(GdkEventButton *)
ArdourWidgets::BindingProxy::learning_finished
void learning_finished()
ArdourWidgets::BindingProxy::set_controllable
void set_controllable(std::shared_ptr< PBD::Controllable >)
ArdourWidgets::BindingProxy::bind_statemask
static guint bind_statemask
Definition:
binding_proxy.h:60
ArdourWidgets::BindingProxy::get_controllable
std::shared_ptr< PBD::Controllable > get_controllable() const
Definition:
binding_proxy.h:52
ArdourWidgets::BindingProxy::bind_button
static guint bind_button
Definition:
binding_proxy.h:59
ArdourWidgets::BindingProxy::prompter_hiding
bool prompter_hiding(GdkEventAny *)
ArdourWidgets::BindingProxy::~BindingProxy
virtual ~BindingProxy()
ArdourWidgets::BindingProxy::is_bind_action
static bool is_bind_action(GdkEventButton *)
ArdourWidgets::BindingProxy::BindingProxy
BindingProxy()
ArdourWidgets::BindingProxy::prompter
ArdourWidgets::PopUp * prompter
Definition:
binding_proxy.h:56
ArdourWidgets::BindingProxy::set_bind_button_state
void set_bind_button_state(guint button, guint statemask)
ArdourWidgets::BindingProxy::BindingProxy
BindingProxy(std::shared_ptr< PBD::Controllable >)
ArdourWidgets::BindingProxy::_controllable_going_away_connection
PBD::ScopedConnection _controllable_going_away_connection
Definition:
binding_proxy.h:63
ArdourWidgets::BindingProxy::learning_connection
PBD::ScopedConnection learning_connection
Definition:
binding_proxy.h:62
ArdourWidgets::BindingProxy::controllable
std::shared_ptr< PBD::Controllable > controllable
Definition:
binding_proxy.h:57
ArdourWidgets::PopUp
Definition:
popup.h:39
PBD::ScopedConnection
Definition:
signals.h:164
ArdourSurface::Controllable
std::shared_ptr< PBD::Controllable > Controllable
Definition:
console1.h:80
ArdourWidgets
Definition:
ardour_ui.h:192
PBD
Definition:
axis_view.h:42
signals.h
_GdkEventAny
Definition:
gdkevents.h:267
_GdkEventButton
Definition:
gdkevents.h:314
visibility.h
LIBWIDGETS_API
#define LIBWIDGETS_API
Definition:
widgets/widgets/visibility.h:40
libs
widgets
widgets
binding_proxy.h
Generated on Mon Mar 10 2025 20:26:20 for Ardour by
1.9.1