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:
33  MidiView& view,
35  std::string& text,
36  double height,
37  double x,
38  double y,
40 
41  SysEx (SysEx const&) = delete;
42 
43  ~SysEx ();
44 
45  void hide ();
46  void show ();
47 
49 
50  ArdourCanvas::Item& item() const { return *_flag; }
52 
53 private:
54  bool event_handler (GdkEvent* ev);
58 };
59 
60 #endif /* __SYSEX_H__ */
void set_height(Distance)
std::shared_ptr< Event< Temporal::Beats > > SysExPtr
Definition: Sequence.h:192
Definition: sys_ex.h:30
ARDOUR::MidiModel::SysExPtr sysex() const
Definition: sys_ex.h:51
ArdourCanvas::Flag * _flag
Definition: sys_ex.h:55
SysEx(MidiView &view, ArdourCanvas::Container *parent, std::string &text, double height, double x, double y, ARDOUR::MidiModel::SysExPtr sysex)
void set_height(ArdourCanvas::Distance h)
Definition: sys_ex.h:48
void hide()
void show()
MidiView & _view
Definition: sys_ex.h:57
ARDOUR::MidiModel::SysExPtr _sysex
Definition: sys_ex.h:56
SysEx(SysEx const &)=delete
ArdourCanvas::Item & item() const
Definition: sys_ex.h:50
bool event_handler(GdkEvent *ev)
gint height
Definition: xcursors.h:1