/* $Id$
This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
+Copyright © 2010-2011 Mikkosoft Productions, Mikko Rasa
Distributed under the GPL
*/
{
if(index==drp_routes->get_n_items()-1)
{
- Layout &layout = designer.get_layout();
- const set<Route *> &routes = layout.get_routes();
- Route *route = new Route(layout);
+ Layout &rlayout = designer.get_layout();
+ const set<Route *> &routes = rlayout.get_routes();
+ Route *route = new Route(rlayout);
route->set_name(format("Route %d", routes.size()));
designer.edit_route(route);
/* $Id$
This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
+Copyright © 2010-2011 Mikkosoft Productions, Mikko Rasa
Distributed under the GPL
*/
btn->set_tooltip("Add selected tracks to zone");
btn->signal_clicked.connect(sigc::mem_fun(&designer, &Designer::add_selection_to_zone));
- Layout &layout = designer.get_layout();
- layout.signal_zone_added.connect(sigc::mem_fun(this, &Zonebar::zone_added));
- layout.signal_zone_removed.connect(sigc::hide(sigc::mem_fun(this, &Zonebar::update_groups)));
+ Layout &rlayout = designer.get_layout();
+ rlayout.signal_zone_added.connect(sigc::mem_fun(this, &Zonebar::zone_added));
+ rlayout.signal_zone_removed.connect(sigc::hide(sigc::mem_fun(this, &Zonebar::update_groups)));
- const Layout::ZoneSet &zones = layout.get_zones();
+ const Layout::ZoneSet &zones = rlayout.get_zones();
for(Layout::ZoneSet::const_iterator i=zones.begin(); i!=zones.end(); ++i)
(*i)->signal_name_changed.connect(sigc::mem_fun(this, &Zonebar::zone_renamed));
{
if(index==drp_groups->get_n_items()-1)
{
- Layout &layout = designer.get_layout();
- Zone *zone = new Zone(layout);
+ Zone *zone = new Zone(designer.get_layout());
zone->set_name("New zone", "track", 1);
designer.edit_zone(zone);
update_groups();
Zone *cur = designer.get_current_zone();
string qualifier = (cur ? cur->get_qualifier() : "track");
- Layout &layout = designer.get_layout();
- Zone *zone = new Zone(layout);
+ Zone *zone = new Zone(designer.get_layout());
zone->set_name(group, qualifier, zones.size()+1);
designer.edit_zone(zone);
if(cur)