mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
Set the click paths when enter is pressed in their Entry
(#part of 4321). git-svn-id: svn://localhost/ardour2/branches/3.0@10093 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c09f2eedf2
commit
b8aabb310f
1 changed files with 13 additions and 0 deletions
|
|
@ -80,6 +80,9 @@ public:
|
||||||
t->attach (*b, 2, 3, 1, 2, FILL);
|
t->attach (*b, 2, 3, 1, 2, FILL);
|
||||||
|
|
||||||
_box->pack_start (*t, false, false);
|
_box->pack_start (*t, false, false);
|
||||||
|
|
||||||
|
_click_path_entry.signal_activate().connect (sigc::mem_fun (*this, &ClickOptions::click_changed));
|
||||||
|
_click_emphasis_path_entry.signal_activate().connect (sigc::mem_fun (*this, &ClickOptions::click_emphasis_changed));
|
||||||
}
|
}
|
||||||
|
|
||||||
void parameter_changed (string const & p)
|
void parameter_changed (string const & p)
|
||||||
|
|
@ -117,6 +120,11 @@ private:
|
||||||
_rc_config->set_click_sound (path);
|
_rc_config->set_click_sound (path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void click_changed ()
|
||||||
|
{
|
||||||
|
click_chosen (_click_path_entry.get_text ());
|
||||||
|
}
|
||||||
|
|
||||||
void click_emphasis_browse_clicked ()
|
void click_emphasis_browse_clicked ()
|
||||||
{
|
{
|
||||||
SoundFileChooser sfdb (*_parent, _("Choose Click Emphasis"));
|
SoundFileChooser sfdb (*_parent, _("Choose Click Emphasis"));
|
||||||
|
|
@ -135,6 +143,11 @@ private:
|
||||||
_rc_config->set_click_emphasis_sound (path);
|
_rc_config->set_click_emphasis_sound (path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void click_emphasis_changed ()
|
||||||
|
{
|
||||||
|
click_emphasis_chosen (_click_emphasis_path_entry.get_text ());
|
||||||
|
}
|
||||||
|
|
||||||
RCConfiguration* _rc_config;
|
RCConfiguration* _rc_config;
|
||||||
ArdourDialog* _parent;
|
ArdourDialog* _parent;
|
||||||
Entry _click_path_entry;
|
Entry _click_path_entry;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue