From 97d920593ffc796986107e16d7bbf88cc3184043 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 25 Jun 2012 12:46:13 +0000 Subject: drastic rethink of the relationship between remote control ID and route order keys. unless the user explicitly switches to UserOrdered, Route::_remote_control_id is an unallocated pointer, and Route::remote_control_id() simply returns a value based on the relevant order_key() value. Also, change the key used in the Route::order_keys std::map<> from a string to an enum, since there is no evidence that we are benefitting from the theoretical benefit of using a string. Generally tidy up allocation of order keys so that the master and monitor busses always get a "special" MixerSort key value, based on the MMC ID for master (already defined within Ardour), and all other tracks/busses start at zero. Syncing keys between editor and mixer will leave the MixerSort key for the master and monitor bus alone, reflecting the fact that we display these in their own distinct parts of the GUI and they are not orderable like other tracks or busses within the mixer window git-svn-id: svn://localhost/ardour2/branches/3.0@12923 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_routes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk2_ardour/editor_routes.h') diff --git a/gtk2_ardour/editor_routes.h b/gtk2_ardour/editor_routes.h index 5fad890faf..00631d914a 100644 --- a/gtk2_ardour/editor_routes.h +++ b/gtk2_ardour/editor_routes.h @@ -55,7 +55,7 @@ public: std::list views () const; void hide_all_tracks (bool); void clear (); - void sync_order_keys (std::string const &); + void sync_order_keys (ARDOUR::RouteSortOrderKey); private: -- cgit v1.2.3