mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Allow to rename VCAs in the editor
This commit is contained in:
parent
d67056562b
commit
a3dd948c02
4 changed files with 11 additions and 1 deletions
|
|
@ -619,7 +619,7 @@ TimeAxisView::begin_name_edit ()
|
||||||
}
|
}
|
||||||
|
|
||||||
Gtk::Window* toplevel = (Gtk::Window*) control_parent->get_toplevel();
|
Gtk::Window* toplevel = (Gtk::Window*) control_parent->get_toplevel();
|
||||||
FloatingTextEntry* fte = new FloatingTextEntry (toplevel, name_label.get_text ());
|
FloatingTextEntry* fte = new FloatingTextEntry (toplevel, name ());
|
||||||
|
|
||||||
fte->set_name ("TrackNameEditor");
|
fte->set_name ("TrackNameEditor");
|
||||||
fte->use_text.connect (sigc::mem_fun (*this, &TimeAxisView::end_name_edit));
|
fte->use_text.connect (sigc::mem_fun (*this, &TimeAxisView::end_name_edit));
|
||||||
|
|
|
||||||
|
|
@ -257,6 +257,7 @@ class TimeAxisView : public virtual AxisView
|
||||||
|
|
||||||
void begin_name_edit ();
|
void begin_name_edit ();
|
||||||
void end_name_edit (std::string, int);
|
void end_name_edit (std::string, int);
|
||||||
|
virtual std::string name () const { return name_label.get_text (); }
|
||||||
|
|
||||||
/* derived classes can override these */
|
/* derived classes can override these */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -210,6 +210,13 @@ VCATimeAxisView::update_vca_name ()
|
||||||
name_label.set_text (_vca->full_name());
|
name_label.set_text (_vca->full_name());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
VCATimeAxisView::name_entry_changed (std::string const& str)
|
||||||
|
{
|
||||||
|
_vca->set_name (str);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
VCATimeAxisView::update_mute_display ()
|
VCATimeAxisView::update_mute_display ()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,8 @@ protected:
|
||||||
virtual void build_automation_action_menu (bool);
|
virtual void build_automation_action_menu (bool);
|
||||||
Gtk::Menu* automation_action_menu;
|
Gtk::Menu* automation_action_menu;
|
||||||
|
|
||||||
|
bool name_entry_changed (std::string const&);
|
||||||
|
|
||||||
void parameter_changed (std::string const& p);
|
void parameter_changed (std::string const& p);
|
||||||
void vca_property_changed (PBD::PropertyChange const&);
|
void vca_property_changed (PBD::PropertyChange const&);
|
||||||
void update_vca_name ();
|
void update_vca_name ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue