Ardour
8.12
gtk2_ardour/selectable.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-2016 Paul Davis <paul@linuxaudiosystems.com>
3
* Copyright (C) 2008-2009 David Robillard <d@drobilla.net>
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 __ardour_gtk_selectable_h__
21
#define __ardour_gtk_selectable_h__
22
23
#include <sigc++/signal.h>
24
25
class
Selectable
:
public
virtual
sigc::trackable
26
{
27
public
:
28
Selectable
() {
29
_selected
=
false
;
30
}
31
32
virtual
~Selectable
() {}
33
34
virtual
void
set_selected
(
bool
yn) {
35
if
(yn !=
_selected
) {
36
_selected
= yn;
37
}
38
}
39
40
virtual
bool
selected
()
const
{
41
return
_selected
;
42
}
43
44
protected
:
45
bool
_selected
;
46
};
47
48
#endif
/* __ardour_gtk_selectable_h__ */
Selectable
Definition:
gtk2_ardour/selectable.h:26
Selectable::~Selectable
virtual ~Selectable()
Definition:
gtk2_ardour/selectable.h:32
Selectable::_selected
bool _selected
Definition:
gtk2_ardour/selectable.h:45
Selectable::Selectable
Selectable()
Definition:
gtk2_ardour/selectable.h:28
Selectable::selected
virtual bool selected() const
Definition:
gtk2_ardour/selectable.h:40
Selectable::set_selected
virtual void set_selected(bool yn)
Definition:
gtk2_ardour/selectable.h:34
gtk2_ardour
selectable.h
Generated on Mon Mar 10 2025 20:26:29 for Ardour by
1.9.1