mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
move MIDI port options out of engine dialog and into prefs
This commit is contained in:
parent
f96b698234
commit
05bc96f4d2
3 changed files with 234 additions and 188 deletions
|
|
@ -137,6 +137,7 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
|
|||
void midi_option_changed ();
|
||||
|
||||
void setup_midi_tab_for_backend ();
|
||||
void setup_midi_tab_for_jack ();
|
||||
void refresh_midi_display (std::string focus = "");
|
||||
|
||||
void update_midi_options ();
|
||||
|
|
@ -349,44 +350,6 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
|
|||
void midi_latency_adjustment_changed(Gtk::Adjustment *, MidiDeviceSettings, bool);
|
||||
void midi_device_enabled_toggled(ArdourButton *, MidiDeviceSettings);
|
||||
sigc::connection lm_back_button_signal;
|
||||
|
||||
/* MIDI port management */
|
||||
struct MidiPortColumns : public Gtk::TreeModel::ColumnRecord {
|
||||
|
||||
MidiPortColumns () {
|
||||
add (name);
|
||||
add (pretty_name);
|
||||
add (in_use);
|
||||
add (music_data);
|
||||
add (control_data);
|
||||
add (selection);
|
||||
add (port);
|
||||
}
|
||||
|
||||
Gtk::TreeModelColumn<std::string> name;
|
||||
Gtk::TreeModelColumn<std::string> pretty_name;
|
||||
Gtk::TreeModelColumn<bool> in_use;
|
||||
Gtk::TreeModelColumn<bool> music_data;
|
||||
Gtk::TreeModelColumn<bool> control_data;
|
||||
Gtk::TreeModelColumn<bool> selection;
|
||||
Gtk::TreeModelColumn<boost::shared_ptr<ARDOUR::Port> > port;
|
||||
};
|
||||
|
||||
MidiPortColumns midi_port_columns;
|
||||
Gtk::TreeView midi_input_view;
|
||||
Gtk::TreeView midi_output_view;
|
||||
int pretty_name_column;
|
||||
int use_column;
|
||||
int music_column;
|
||||
int control_column;
|
||||
int selection_column;
|
||||
|
||||
void refill_midi_ports (bool for_input);
|
||||
void pretty_name_edit (std::string const & path, std::string const & new_text, Gtk::TreeView*);
|
||||
void midi_use_column_toggled (std::string const & path, Gtk::TreeView*);
|
||||
void midi_music_column_toggled (std::string const & path, Gtk::TreeView*);
|
||||
void midi_control_column_toggled (std::string const & path, Gtk::TreeView*);
|
||||
void midi_selection_column_toggled (std::string const & path, Gtk::TreeView*);
|
||||
};
|
||||
|
||||
#endif /* __gtk2_ardour_engine_dialog_h__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue