Ardour  9.0-pre0-439-ga53b99b307
launch_control_xl/gui.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Jan Lentfer <jan.lentfer@web.de>
3  * Copyright (C) 2018 Térence Clastres <t.clastres@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef __ardour_launch_control_gui_h__
21 #define __ardour_launch_control_gui_h__
22 
23 #include <vector>
24 #include <string>
25 
26 #include <gtkmm/box.h>
27 #include <gtkmm/button.h>
28 #include <gtkmm/combobox.h>
29 #include <gtkmm/image.h>
30 #include <gtkmm/table.h>
31 #include <gtkmm/treestore.h>
32 #include <gtkmm/spinbutton.h>
33 #include <gtkmm/notebook.h>
34 
35 namespace Gtk {
36  class CellRendererCombo;
37  class ListStore;
38 }
39 
40 #include "ardour/mode.h"
41 
42 #include "launch_control_xl.h"
43 
44 namespace ArdourSurface {
45 
46 class LCXLGUI : public Gtk::VBox
47 {
48 public:
51 
54 
55 private:
66 
71 
74  add (short_name);
75  add (full_name);
76  }
79  };
80 
83 
84  Glib::RefPtr<Gtk::ListStore> build_midi_port_list (std::vector<std::string> const & ports, bool for_input);
85  void active_port_changed (Gtk::ComboBox*,bool for_input);
86 
89  add (name);
90  add (path);
91  }
94  };
95 
97  Glib::RefPtr<Gtk::TreeStore> available_action_model;
98  std::map<std::string,std::string> action_map; // map from action names to paths
99 
100 
101 };
102 
103 }
104 
105 #endif /* __ardour_launch_control_gui_h__ */
Gtk::CheckButton fader8master_button
PBD::ScopedConnectionList lcxl_connections
PBD::ScopedConnectionList _port_connections
PBD::ScopedConnection connection_change_connection
LCXLGUI(LaunchControlXL &)
MidiPortColumns midi_port_columns
Glib::RefPtr< Gtk::TreeStore > available_action_model
std::map< std::string, std::string > action_map
Gtk::CheckButton ctrllowersends_button
Glib::RefPtr< Gtk::ListStore > build_midi_port_list(std::vector< std::string > const &ports, bool for_input)
void active_port_changed(Gtk::ComboBox *, bool for_input)
void add(TreeModelColumnBase &column)
Definition: ardour_ui.h:188
Gtk::TreeModelColumn< std::string > name
Gtk::TreeModelColumn< std::string > path
Gtk::TreeModelColumn< std::string > short_name
Gtk::TreeModelColumn< std::string > full_name