X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fsurfaces%2Fpush2%2Fgui.h;h=c217d37039594178e2377426fe62d94b8393fd37;hb=b6e62c66545d84101e3f82d065862f75509f2d1e;hp=b472698feecec1571645be74c35499c34c3536fe;hpb=70477e6fedee80a4e785d4da65c873329d06f76a;p=ardour.git diff --git a/libs/surfaces/push2/gui.h b/libs/surfaces/push2/gui.h index b472698fee..c217d37039 100644 --- a/libs/surfaces/push2/gui.h +++ b/libs/surfaces/push2/gui.h @@ -37,8 +37,9 @@ namespace Gtk { class ListStore; } +#include "ardour/mode.h" + #include "push2.h" -#include "mode.h" namespace ArdourSurface { @@ -48,8 +49,6 @@ public: P2GUI (Push2&); ~P2GUI (); - void build_pad_table (); - private: Push2& p2; PBD::ScopedConnectionList p2_connections; @@ -95,55 +94,20 @@ private: void build_available_action_menu (); bool find_action_in_model (const Gtk::TreeModel::iterator& iter, std::string const & action_path, Gtk::TreeModel::iterator* found); - /* Pads */ - - Gtk::Table pad_table; - - /* root notes */ - - Gtk::Adjustment root_note_octave_adjustment; - Gtk::SpinButton root_note_octave; - Gtk::Label root_note_octave_label; - - void root_note_octave_adjustment_changed (); - - struct NoteColumns : public Gtk::TreeModel::ColumnRecord { - NoteColumns () { - add (number); - add (name); - } - Gtk::TreeModelColumn number; - Gtk::TreeModelColumn name; - }; - NoteColumns note_columns; - Glib::RefPtr build_note_columns (); - Gtk::ComboBox root_note_selector; - Gtk::Label root_note_label; - - void root_note_changed (); - - /* modes/scales */ - - struct ModeColumns : public Gtk::TreeModel::ColumnRecord { - ModeColumns () { + struct PressureModeColumns : public Gtk::TreeModel::ColumnRecord { + PressureModeColumns() { add (mode); add (name); } - Gtk::TreeModelColumn mode; + Gtk::TreeModelColumn mode; Gtk::TreeModelColumn name; }; - ModeColumns mode_columns; - Glib::RefPtr build_mode_columns (); - Gtk::ComboBox mode_selector; - Gtk::Label mode_label; - - Gtk::CheckButton inkey_button; - - Gtk::Notebook pad_notebook; - Gtk::Table mode_packer; - Gtk::VBox custom_packer; + PressureModeColumns pressure_mode_columns; + Glib::RefPtr build_pressure_mode_columns (); + Gtk::ComboBox pressure_mode_selector; + Gtk::Label pressure_mode_label; - void reprogram_pad_scale (); + void reprogram_pressure_mode (); }; }