1 #include <gtkmm/stock.h>
2 #include "ardour/route_group.h"
3 #include "route_group_dialog.h"
7 using namespace ARDOUR;
9 RouteGroupDialog::RouteGroupDialog (RouteGroup* g)
10 : Dialog (_("Route group")),
14 _name.set_text (_group->name ());
15 _active.set_active (_group->is_active ());
17 HBox* h = manage (new HBox);
18 h->pack_start (*manage (new Label (_("Name:"))));
19 h->pack_start (_name);
21 get_vbox()->pack_start (*h);
22 get_vbox()->pack_start (_active);
24 add_button (Stock::CANCEL, RESPONSE_CANCEL);
25 /* XXX: change this depending on context */
26 add_button (Stock::OK, RESPONSE_OK);
32 RouteGroupDialog::do_run ()
36 if (r == Gtk::RESPONSE_OK) {
37 _group->set_name (_name.get_text ());
38 _group->set_active (_active.get_active (), this);