summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.h
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2008-12-11 08:06:27 +0000
committerHans Baier <hansfbaier@googlemail.com>2008-12-11 08:06:27 +0000
commite009016b03ea5c5c690d7d4939b264313600fd4b (patch)
tree6de5374502891ad1229fffae5ab5f7d71eed70c2 /gtk2_ardour/midi_region_view.h
parentdfed4965b7cf74f21a9e78689dbda1bc5892cde8 (diff)
* added myself to about.cc
* created ArdourCanvas::CanvasFlag as a base class for flags * removed obsolete cruft from midi_model * made MidiTimeAxisView and MidiRegionView work together to display program changes as names by means of MidiPatchManager git-svn-id: svn://localhost/ardour2/branches/3.0@4307 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r--gtk2_ardour/midi_region_view.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h
index 6010e2253f..c76775f9f5 100644
--- a/gtk2_ardour/midi_region_view.h
+++ b/gtk2_ardour/midi_region_view.h
@@ -86,7 +86,8 @@ class MidiRegionView : public RegionView
void add_note(const boost::shared_ptr<Evoral::Note> note);
void resolve_note(uint8_t note_num, double end_time);
- void add_pgm_change(boost::shared_ptr<Evoral::Event> event);
+ void add_pgm_change(nframes_t time, string displaytext);
+ void find_and_insert_program_change_flags();
void begin_write();
void end_write();
@@ -219,6 +220,7 @@ class MidiRegionView : public RegionView
bool note_canvas_event(GdkEvent* ev);
void midi_channel_mode_changed(ARDOUR::ChannelMode mode, uint16_t mask);
+ void midi_patch_settings_changed(std::string model, std::string custom_device_mode);
void clear_selection_except(ArdourCanvas::CanvasNoteEvent* ev);
void clear_selection() { clear_selection_except(NULL); }
@@ -229,6 +231,9 @@ class MidiRegionView : public RegionView
double _default_note_length;
uint8_t _current_range_min;
uint8_t _current_range_max;
+
+ string _model_name;
+ string _custom_device_mode;
typedef std::vector<ArdourCanvas::CanvasNoteEvent*> Events;
typedef std::vector< boost::shared_ptr<ArdourCanvas::CanvasProgramChange> > PgmChanges;