Ardour  9.0-pre0-380-gbbdb6b0e63
faderport8/gui.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Robin Gareus <robin@gareus.org>
3  * Copyright (C) 2019 Johannes Mueller <github@johannes-mueller.org>
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_faderport8_gui_h__
21 #define __ardour_faderport8_gui_h__
22 
23 #include <vector>
24 #include <string>
25 
26 #include <gtkmm/box.h>
27 #include <gtkmm/combobox.h>
28 #include <gtkmm/comboboxtext.h>
29 #include <gtkmm/image.h>
30 #include <gtkmm/table.h>
31 #include <gtkmm/treestore.h>
32 
33 namespace Gtk {
34  class CellRendererCombo;
35  class ListStore;
36 }
37 
38 #include "faderport8.h"
39 
40 namespace ActionManager {
41  class ActionModel;
42 }
43 
44 namespace ArdourSurface { namespace FP_NAMESPACE {
45 
46 class FP8GUI : public Gtk::VBox
47 {
48 public:
50  ~FP8GUI ();
51 
52 private:
57 
58  /* port connections */
61 
65 
68  add (short_name);
69  add (full_name);
70  }
73  };
74 
77 
78  Glib::RefPtr<Gtk::ListStore> build_midi_port_list (std::vector<std::string> const & ports, bool for_input);
79  void active_port_changed (Gtk::ComboBox*,bool for_input);
80 
81  /* misc Prefs */
86 
93 
94  /* user actions */
97 
99 
100  std::map<std::string,std::string> action_map; // map from action names to paths
101 };
102 
103 } }
104 
105 #endif /* __ardour_faderport8_gui_h__ */
void active_port_changed(Gtk::ComboBox *, bool for_input)
std::map< std::string, std::string > action_map
void build_action_combo(Gtk::ComboBox &cb, FP8Controls::ButtonId id)
PBD::ScopedConnectionList _port_connections
Gtk::CheckButton auto_pluginui_cb
Gtk::ComboBoxText clock_combo
Glib::RefPtr< Gtk::ListStore > build_midi_port_list(std::vector< std::string > const &ports, bool for_input)
MidiPortColumns midi_port_columns
Gtk::CheckButton two_line_text_cb
const ActionManager::ActionModel & action_model
Gtk::ComboBoxText scribble_combo
void action_changed(Gtk::ComboBox *cb, FP8Controls::ButtonId id)
#define FP_NAMESPACE
Definition: fp8_base.h:32
void add(const Gtk::StockItem &item)
Definition: ardour_ui.h:187
Gtk::TreeModelColumn< std::string > short_name
Gtk::TreeModelColumn< std::string > full_name