Ardour
9.0-pre0-582-g084a23a80d
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
25
#include "
ardour/midi_model.h
"
26
27
class
MidiView
;
28
29
class
SysEx
30
{
31
public
:
32
SysEx
(
33
MidiView
& view,
34
ArdourCanvas::Container
* parent,
35
std::string& text,
36
double
height
,
37
double
x,
38
double
y,
39
ARDOUR::MidiModel::SysExPtr
sysex
);
40
41
SysEx
(
SysEx
const
&) =
delete
;
42
43
~SysEx
();
44
45
void
hide
();
46
void
show
();
47
48
void
set_height
(
ArdourCanvas::Distance
h) {
_flag
->
set_height
(h); }
49
50
ArdourCanvas::Item
&
item
()
const
{
return
*
_flag
; }
51
ARDOUR::MidiModel::SysExPtr
sysex
()
const
{
return
_sysex
; }
52
53
private
:
54
bool
event_handler
(
GdkEvent
* ev);
55
ArdourCanvas::Flag
*
_flag
;
56
ARDOUR::MidiModel::SysExPtr
_sysex
;
57
MidiView
&
_view
;
58
};
59
60
#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
MidiView
Definition:
midi_view.h:80
SysEx
Definition:
sys_ex.h:30
SysEx::sysex
ARDOUR::MidiModel::SysExPtr sysex() const
Definition:
sys_ex.h:51
SysEx::_flag
ArdourCanvas::Flag * _flag
Definition:
sys_ex.h:55
SysEx::SysEx
SysEx(MidiView &view, ArdourCanvas::Container *parent, std::string &text, double height, double x, double y, ARDOUR::MidiModel::SysExPtr sysex)
SysEx::set_height
void set_height(ArdourCanvas::Distance h)
Definition:
sys_ex.h:48
SysEx::hide
void hide()
SysEx::show
void show()
SysEx::_view
MidiView & _view
Definition:
sys_ex.h:57
SysEx::~SysEx
~SysEx()
SysEx::_sysex
ARDOUR::MidiModel::SysExPtr _sysex
Definition:
sys_ex.h:56
SysEx::SysEx
SysEx(SysEx const &)=delete
SysEx::item
ArdourCanvas::Item & item() const
Definition:
sys_ex.h:50
SysEx::event_handler
bool event_handler(GdkEvent *ev)
flag.h
midi_model.h
ArdourCanvas::Distance
double Distance
Definition:
canvas/canvas/types.h:44
_GdkEvent
Definition:
gdkevents.h:517
height
gint height
Definition:
xcursors.h:1
gtk2_ardour
sys_ex.h
Generated on Wed Dec 25 2024 05:44:51 for Ardour by
1.9.1