Ardour
8.12
sys_ex.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2013-2014 Paul Davis <paul@linuxaudiosystems.com>
3
* Copyright (C) 2017 Nick Mainsbridge <mainsbridge@gmail.com>
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 __SYSEX_H__
21
#define __SYSEX_H__
22
23
#include "
canvas/flag.h
"
24
#include "
midi_region_view.h
"
25
26
class
SysEx
27
{
28
public
:
29
SysEx
(
30
MidiRegionView
& region,
31
ArdourCanvas::Container
* parent,
32
std::string& text,
33
double
height
,
34
double
x,
35
double
y,
36
ARDOUR::MidiModel::SysExPtr
sysex
);
37
38
SysEx
(
SysEx
const
&) =
delete
;
39
40
~SysEx
();
41
42
void
hide
();
43
void
show
();
44
45
void
set_height
(
ArdourCanvas::Distance
h) {
_flag
->
set_height
(h); }
46
47
ArdourCanvas::Item
&
item
()
const
{
return
*
_flag
; }
48
ARDOUR::MidiModel::SysExPtr
sysex
()
const
{
return
_sysex
; }
49
50
private
:
51
bool
event_handler
(
GdkEvent
* ev);
52
ArdourCanvas::Flag
*
_flag
;
53
ARDOUR::MidiModel::SysExPtr
_sysex
;
54
MidiRegionView
&
_region
;
55
};
56
57
#endif
/* __SYSEX_H__ */
ArdourCanvas::Container
Definition:
canvas/canvas/container.h:40
ArdourCanvas::Flag
Definition:
flag.h:37
ArdourCanvas::Flag::set_height
void set_height(Distance)
ArdourCanvas::Item
Definition:
canvas/canvas/item.h:57
Evoral::Sequence< Temporal::Beats >::SysExPtr
std::shared_ptr< Event< Temporal::Beats > > SysExPtr
Definition:
Sequence.h:192
MidiRegionView
Definition:
midi_region_view.h:73
SysEx
Definition:
sys_ex.h:27
SysEx::sysex
ARDOUR::MidiModel::SysExPtr sysex() const
Definition:
sys_ex.h:48
SysEx::_flag
ArdourCanvas::Flag * _flag
Definition:
sys_ex.h:52
SysEx::set_height
void set_height(ArdourCanvas::Distance h)
Definition:
sys_ex.h:45
SysEx::hide
void hide()
SysEx::show
void show()
SysEx::SysEx
SysEx(MidiRegionView ®ion, ArdourCanvas::Container *parent, std::string &text, double height, double x, double y, ARDOUR::MidiModel::SysExPtr sysex)
SysEx::~SysEx
~SysEx()
SysEx::_region
MidiRegionView & _region
Definition:
sys_ex.h:54
SysEx::_sysex
ARDOUR::MidiModel::SysExPtr _sysex
Definition:
sys_ex.h:53
SysEx::SysEx
SysEx(SysEx const &)=delete
SysEx::item
ArdourCanvas::Item & item() const
Definition:
sys_ex.h:47
SysEx::event_handler
bool event_handler(GdkEvent *ev)
flag.h
midi_region_view.h
ArdourCanvas::Distance
double Distance
Definition:
canvas/canvas/types.h:44
_GdkEvent
Definition:
gdkevents.h:495
height
gint height
Definition:
xcursors.h:1
gtk2_ardour
sys_ex.h
Generated on Mon Mar 10 2025 20:26:30 for Ardour by
1.9.1