/* * Copyright (C) 2016 Paul Davis * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __ardour_lppro_gui_h__ #define __ardour_lppro_gui_h__ #include #include #include #include #include #include #include #include #include #include namespace Gtk { class ListStore; } #include "ardour/mode.h" #include "lppro.h" namespace ArdourSurface { class LPPRO_GUI : public Gtk::VBox { public: LPPRO_GUI (LaunchPadPro&); ~LPPRO_GUI (); private: LaunchPadPro& _lp; Gtk::HBox _hpacker; Gtk::Table _table; Gtk::Table _action_table; Gtk::ComboBox _input_combo; Gtk::ComboBox _output_combo; Gtk::Image _image; void update_port_combos (); void connection_handler (); PBD::ScopedConnectionList _port_connections; struct MidiPortColumns : public Gtk::TreeModel::ColumnRecord { MidiPortColumns() { add (short_name); add (full_name); } Gtk::TreeModelColumn short_name; Gtk::TreeModelColumn full_name; }; MidiPortColumns _midi_port_columns; bool _ignore_active_change; Glib::RefPtr build_midi_port_list (std::vector const & ports, bool for_input); void active_port_changed (Gtk::ComboBox*,bool for_input); #if 0 struct PressureModeColumns : public Gtk::TreeModel::ColumnRecord { PressureModeColumns() { add (mode); add (name); } Gtk::TreeModelColumn mode; Gtk::TreeModelColumn name; }; PressureModeColumns _pressure_mode_columns; Glib::RefPtr build_pressure_mode_columns (); Gtk::ComboBox _pressure_mode_selector; Gtk::Label _pressure_mode_label; void reprogram_pressure_mode (); #endif }; } #endif /* __ardour_lppro_gui_h__ */