From f8264ed1fb80e3106257130f26a6bc9dd811da89 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 26 Sep 2018 19:11:31 -0400 Subject: add name editing for transport masters --- gtk2_ardour/transport_masters_dialog.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gtk2_ardour/transport_masters_dialog.h') diff --git a/gtk2_ardour/transport_masters_dialog.h b/gtk2_ardour/transport_masters_dialog.h index 752aec1dad..5848328f8a 100644 --- a/gtk2_ardour/transport_masters_dialog.h +++ b/gtk2_ardour/transport_masters_dialog.h @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -39,6 +40,8 @@ namespace ARDOUR { class TransportMaster; } +class FloatingTextEntry; + class TransportMastersWidget : public Gtk::VBox, public ARDOUR::SessionHandlePtr { public: @@ -54,6 +57,7 @@ class TransportMastersWidget : public Gtk::VBox, public ARDOUR::SessionHandlePtr private: struct Row : sigc::trackable, PBD::ScopedConnectionList { + Gtk::EventBox label_box; Gtk::Label label; Gtk::Label type; Gtk::Label format; @@ -68,6 +72,7 @@ class TransportMastersWidget : public Gtk::VBox, public ARDOUR::SessionHandlePtr Gtk::CheckButton fr2997_button; Gtk::Button request_options; Gtk::Menu* request_option_menu; + FloatingTextEntry* name_editor; void build_request_options(); @@ -100,6 +105,9 @@ class TransportMastersWidget : public Gtk::VBox, public ARDOUR::SessionHandlePtr bool request_option_press (GdkEventButton*); void prop_change (PBD::PropertyChange); + bool name_press (GdkEventButton*); + void name_edited (std::string, int); + PBD::ScopedConnection property_change_connection; bool ignore_active_change; }; -- cgit v1.2.3