Ardour  9.0-pre0-582-g084a23a80d
launchkey_4/gui.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Paul Davis <paul@linuxaudiosystems.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef __ardour_lpx_gui_h__
20 #define __ardour_lpx_gui_h__
21 
22 #include <vector>
23 #include <string>
24 
25 #include <gtkmm/box.h>
26 #include <gtkmm/button.h>
27 #include <gtkmm/combobox.h>
28 #include <gtkmm/image.h>
29 #include <gtkmm/table.h>
30 #include <gtkmm/treestore.h>
31 #include <gtkmm/spinbutton.h>
32 #include <gtkmm/notebook.h>
33 
34 namespace Gtk {
35  class ListStore;
36 }
37 
38 #include "ardour/mode.h"
39 
40 #include "launchkey_4.h"
41 
42 namespace ArdourSurface { namespace LAUNCHPAD_NAMESPACE {
43 
44 class LK4_GUI : public Gtk::VBox
45 {
46 public:
49 
50 private:
58 
61 
63 
66  add (short_name);
67  add (full_name);
68  }
71  };
72 
75 
76  Glib::RefPtr<Gtk::ListStore> build_midi_port_list (std::vector<std::string> const & ports, bool for_input);
77 
78  void active_port_changed (Gtk::ComboBox*,bool for_input);
79 
80 #if 0
81  struct PressureModeColumns : public Gtk::TreeModel::ColumnRecord {
82  PressureModeColumns() {
83  add (mode);
84  add (name);
85  }
88  };
89 
90  PressureModeColumns _pressure_mode_columns;
91  Glib::RefPtr<Gtk::ListStore> build_pressure_mode_columns ();
92  Gtk::ComboBox _pressure_mode_selector;
93  Gtk::Label _pressure_mode_label;
94 
95  void reprogram_pressure_mode ();
96 #endif
97 };
98 
99 } } /* namespaces */
100 
101 #endif /* __ardour_lpx_gui_h__ */
PBD::ScopedConnectionList _port_connections
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)
MidiPortColumns _midi_port_columns
GtkImageIconNameData name
Definition: gtkimage.h:6
#define LAUNCHPAD_NAMESPACE
Definition: launchkey_4.h:65
void add(const Gtk::StockItem &item)
Definition: ardour_ui.h:188
Gtk::TreeModelColumn< std::string > short_name
Gtk::TreeModelColumn< std::string > full_name