Make Route Group dialog instant-apply. Disallow identically-named route group; fixes #3689.

git-svn-id: svn://localhost/ardour2/branches/3.0@8481 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-01-08 02:35:46 +00:00
parent 150d3fdfbf
commit af0030a6de
6 changed files with 111 additions and 62 deletions

View file

@ -29,12 +29,13 @@
class RouteGroupDialog : public ArdourDialog
{
public:
RouteGroupDialog (ARDOUR::RouteGroup *, Gtk::StockID const &);
int do_run ();
RouteGroupDialog (ARDOUR::RouteGroup *, bool);
bool do_run ();
private:
ARDOUR::RouteGroup* _group;
std::string _initial_name;
Gtk::Entry _name;
Gtk::CheckButton _active;
@ -45,8 +46,11 @@ private:
Gtk::CheckButton _rec_enable;
Gtk::CheckButton _select;
Gtk::CheckButton _edit;
Gtk::Button* _ok;
void gain_toggled ();
void update ();
bool unique_name () const;
};