Fix french translation of "meterbridge" -- closes #5744
[ardour.git] / gtk2_ardour / canvas-sysex.h
1 /*
2     Copyright (C) 2009 Paul Davis
3     Author: Hans Baier
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
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #ifndef CANVAS_SYSEX_H_
21 #define CANVAS_SYSEX_H_
22
23 #include <string>
24
25 #include "canvas-flag.h"
26 #include "ardour/midi_model.h"
27
28 class MidiRegionView;
29
30 namespace Gnome {
31 namespace Canvas {
32
33 class CanvasSysEx : public CanvasFlag
34 {
35 public:
36         CanvasSysEx(
37                         MidiRegionView& region,
38                         Group&          parent,
39                         std::string&    text,
40                         double          height,
41                         double          x,
42                         double          y,
43                         ARDOUR::MidiModel::SysExPtr sysex);
44
45         virtual ~CanvasSysEx();
46
47         const ARDOUR::MidiModel::SysExPtr sysex() const { return _sysex; }
48         const string text() const { return _text; }
49
50         virtual bool on_event(GdkEvent* ev);
51
52 private:
53         const ARDOUR::MidiModel::SysExPtr _sysex;
54
55         string _text;
56 };
57
58 } // namespace Canvas
59 } // namespace Gnome
60
61 #endif /* CANVAS_SYSEX_H_ */