Ardour
9.0-pre0-1467-gc8540a5ad6
solo_safe_control.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2016 Paul Davis <paul@linuxaudiosystems.com>
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
#pragma once
20
21
#include <string>
22
23
#include "
ardour/slavable_automation_control.h
"
24
25
#include "
ardour/libardour_visibility.h
"
26
27
class
XMLNode
;
28
29
namespace
ARDOUR
{
30
31
class
Session;
32
33
class
LIBARDOUR_API
SoloSafeControl
:
public
SlavableAutomationControl
34
{
35
public
:
36
SoloSafeControl
(
Session
& session, std::string
const
&
name
,
Temporal::TimeDomainProvider
const
&);
37
38
double
get_value
()
const
;
39
40
bool
solo_safe
()
const
{
return
_solo_safe; }
41
42
int
set_state
(
XMLNode
const
&,
int
);
43
XMLNode
&
get_state
()
const
;
44
45
protected
:
46
void
actually_set_value
(
double
,
PBD::Controllable::GroupControlDisposition
group_override);
47
48
private
:
49
bool
_solo_safe
;
50
};
51
52
}
/* namespace */
53
ARDOUR::Session
Definition:
session.h:211
ARDOUR::SlavableAutomationControl
Definition:
slavable_automation_control.h:28
ARDOUR::SoloSafeControl
Definition:
solo_safe_control.h:34
ARDOUR::SoloSafeControl::get_state
XMLNode & get_state() const
ARDOUR::SoloSafeControl::SoloSafeControl
SoloSafeControl(Session &session, std::string const &name, Temporal::TimeDomainProvider const &)
ARDOUR::SoloSafeControl::solo_safe
bool solo_safe() const
Definition:
solo_safe_control.h:40
ARDOUR::SoloSafeControl::_solo_safe
bool _solo_safe
Definition:
solo_safe_control.h:49
ARDOUR::SoloSafeControl::get_value
double get_value() const
ARDOUR::SoloSafeControl::set_state
int set_state(XMLNode const &, int)
ARDOUR::SoloSafeControl::actually_set_value
void actually_set_value(double, PBD::Controllable::GroupControlDisposition group_override)
PBD::Controllable::GroupControlDisposition
GroupControlDisposition
Definition:
controllable.h:90
Temporal::TimeDomainProvider
Definition:
domain_provider.h:28
XMLNode
Definition:
xml++.h:114
name
GtkImageIconNameData name
Definition:
gtkimage.h:6
libardour_visibility.h
LIBARDOUR_API
#define LIBARDOUR_API
Definition:
libardour_visibility.h:38
ARDOUR
Definition:
analysis_window.h:44
slavable_automation_control.h
libs
ardour
ardour
solo_safe_control.h
Generated on Fri Aug 1 2025 03:54:40 for Ardour by
1.9.1