20 #ifndef __ardour_gtk2_midi_list_editor_h_
21 #define __ardour_gtk2_midi_list_editor_h_
23 #include <ytkmm/box.h>
24 #include <ytkmm/liststore.h>
25 #include <ytkmm/scrolledwindow.h>
26 #include <ytkmm/table.h>
27 #include <ytkmm/treeview.h>
36 template <
typename Time>
class Note;
52 std::shared_ptr<ARDOUR::MidiTrack>);
68 Gtk::TreeModelColumn<uint8_t>
note;
71 Gtk::TreeModelColumn<std::string>
start;
72 Gtk::TreeModelColumn<std::string>
length;
73 Gtk::TreeModelColumn<std::shared_ptr<NoteType>>
_note;
82 Gtk::TreeModelColumn<int>
ticks;
83 Gtk::TreeModelColumn<std::string>
name;
87 Glib::RefPtr<Gtk::ListStore>
model;
100 std::shared_ptr<ARDOUR::MidiRegion>
region;
101 std::shared_ptr<ARDOUR::MidiTrack>
track;
106 void edited (
const std::string&,
const std::string&);
void stop_editing(bool cancelled=false)
Gtk::TreeModel::Path edit_path
bool scroll_event(GdkEventScroll *)
std::shared_ptr< ARDOUR::MidiTrack > track
void editing_started(Gtk::CellEditable *, const std::string &path, int)
PBD::ScopedConnectionList content_connections
std::shared_ptr< ARDOUR::MidiRegion > region
MidiListEditor(ARDOUR::Session *, std::shared_ptr< ARDOUR::MidiRegion >, std::shared_ptr< ARDOUR::MidiTrack >)
MidiListModelColumns columns
bool key_release(GdkEventKey *ev)
Glib::RefPtr< Gtk::ListStore > model
bool key_press(GdkEventKey *ev)
Glib::RefPtr< Gtk::ListStore > note_length_model
Gtk::ScrolledWindow scroller
Gtk::CellEditable * editing_editable
Evoral::Note< Temporal::Beats > NoteType
NoteLengthColumns note_length_columns
void delete_selected_note()
Gtk::CellRendererText * editing_renderer
Gtk::ToggleButton sound_notes_button
void edited(const std::string &, const std::string &)
Gtk::TreeModelColumn< uint8_t > channel
Gtk::TreeModelColumn< std::string > start
Gtk::TreeModelColumn< std::string > length
Gtk::TreeModelColumn< uint8_t > velocity
Gtk::TreeModelColumn< std::string > note_name
Gtk::TreeModelColumn< std::shared_ptr< NoteType > > _note
Gtk::TreeModelColumn< uint8_t > note
Gtk::TreeModelColumn< int > ticks
Gtk::TreeModelColumn< std::string > name