X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmidi_time_axis.h;h=fa6102c3609ff114d794aebd8bd29028207119a3;hb=ed5091d7ae47cd4fcb2369b4799fc99f1f41efe8;hp=f8f77244d0b74df9a5dc2572c57221077e3107bb;hpb=17a58ecd4bdf0764f1d074a56743f2304bd713a7;p=ardour.git diff --git a/gtk2_ardour/midi_time_axis.h b/gtk2_ardour/midi_time_axis.h index f8f77244d0..fa6102c360 100644 --- a/gtk2_ardour/midi_time_axis.h +++ b/gtk2_ardour/midi_time_axis.h @@ -19,6 +19,8 @@ #ifndef __ardour_midi_time_axis_h__ #define __ardour_midi_time_axis_h__ +#include + #include #include #include @@ -27,8 +29,7 @@ #include #include -#include -#include +#include "gtkmm2ext/selector.h" #include "ardour/types.h" #include "ardour/region.h" @@ -55,6 +56,10 @@ namespace ARDOUR { class MidiPlaylist; } +namespace Evoral { + template class Note; +} + class PublicEditor; class MidiStreamView; class MidiScroomer; @@ -63,9 +68,11 @@ class StepEntry; class StepEditor; class MidiChannelSelectorWindow; +#define NO_MIDI_NOTE 0xff + class MidiTimeAxisView : public RouteTimeAxisView { - public: +public: MidiTimeAxisView (PublicEditor&, ARDOUR::Session*, ArdourCanvas::Canvas& canvas); virtual ~MidiTimeAxisView (); @@ -73,17 +80,16 @@ class MidiTimeAxisView : public RouteTimeAxisView MidiStreamView* midi_view(); - void set_height (uint32_t); - - void enter_internal_edit_mode (); - void leave_internal_edit_mode (); + void set_height (uint32_t, TrackHeightMode m = OnlySelf); - boost::shared_ptr add_region (ARDOUR::framepos_t, ARDOUR::framecnt_t, bool); + boost::shared_ptr add_region (ARDOUR::framepos_t, ARDOUR::framecnt_t, bool, const int32_t sub_num); void show_all_automation (bool apply_to_selection = false); void show_existing_automation (bool apply_to_selection = false); void create_automation_child (const Evoral::Parameter& param, bool show); + bool paste (ARDOUR::framepos_t, const Selection&, PasteContext& ctx, const int32_t sub_num); + ARDOUR::NoteMode note_mode() const { return _note_mode; } ARDOUR::ColorMode color_mode() const { return _color_mode; } @@ -98,14 +104,17 @@ class MidiTimeAxisView : public RouteTimeAxisView void check_step_edit (); void first_idle (); + void set_note_highlight (uint8_t note); uint8_t get_channel_for_add () const; - protected: + void get_per_region_note_selection (std::list > > > >&); + +protected: void start_step_editing (); void stop_step_editing (); - private: +private: sigc::signal _midi_patch_settings_changed; void model_changed(const std::string& model); @@ -124,6 +133,8 @@ class MidiTimeAxisView : public RouteTimeAxisView void note_range_changed (); void contents_height_changed (); + void update_control_names (); + bool _ignore_signals; MidiScroomer* _range_scroomer; PianoRollHeader* _piano_roll_header; @@ -166,6 +177,7 @@ class MidiTimeAxisView : public RouteTimeAxisView void add_note_selection_region_view (RegionView* rv, uint8_t note, uint16_t chn_mask); void extend_note_selection_region_view (RegionView*, uint8_t note, uint16_t chn_mask); void toggle_note_selection_region_view (RegionView*, uint8_t note, uint16_t chn_mask); + void get_per_region_note_selection_region_view (RegionView*, std::list > > > >&); void ensure_step_editor ();