13
0
Commit Graph

211 Commits

Author SHA1 Message Date
3bc9281c31
Fix some Gtk::Menu related memory leaks
A Gtk::manage()d widget will be deleted when its parent container
is destroyed. Top-level context menus are not inside a container and
hence need to be manually deallocated.

This adds explicit delete calls for menus where there is a
member variable reference to the Menu.
2019-03-07 23:50:32 +01:00
0140b24248 Change get_routes to get_routelist where appropriate. 2018-11-07 17:00:16 -08:00
54f0f37c52 Fix context-menu item "bus" = audio and midi busses.
Hide/show logic uses "not track".
This results in matching both audio and midi busses.
2018-10-02 21:28:49 +02:00
bc18c54c73 Quick hack to test engine vari-speed (2/2) 2017-10-29 20:04:06 +01:00
30b087ab3d globally change all use of "frame" to refer to audio into "sample".
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode
and video in order to keep the legible
2017-09-18 12:39:17 -04:00
7c6800fb88 Hide TrackList "Active" toggle for VCAs 2017-08-08 01:49:05 +02:00
8642e916db More RouteTAV -> StripableTAV updates (Editor List) 2017-08-06 23:49:12 +02:00
0ae9cda51d Allow to select VCAs 2017-08-06 22:17:42 +02:00
5c92613698 Separate Ardour UI widgets into dedicated library 2017-07-17 21:06:04 +02:00
506b478fe7 NO-OP, just cleanup & scope 2017-06-17 18:29:26 +02:00
fec5aec9a0 Fix TrackView selection after re-order.
because reordering a TreeView [pragmatically] does not retain selection.
2017-06-17 18:29:23 +02:00
ea1669aa00 Remove delayed selection which causes duplicate selection actifacts.
The first click to select a new stripable may actually un-select strip.
counting and ignoring this leads to strange behavior.
Also when the selection_counter hit zero, VCAs were not ignored.

whatever this workaround was good for, it's more trouble than it's worth.
As side-effect this also improves DnD + Gtk::Entry behavior with stock GTK.
2017-06-17 18:29:19 +02:00
cfe63b7b15 Simplify route-display TreeView.
There's no TargetEntry receiver for the custom DnDTreeView<Route> object.
We can just use a default Gtk::TreeView.
2017-06-17 18:29:15 +02:00
f77540120c Remove Cruft 2017-06-17 15:52:03 +02:00
1d28665f86 Use Stripable::Sorter in GUI consistently. 2017-06-17 04:36:39 +02:00
7b2063d62d remove misc. debug output 2017-05-08 10:41:12 +01:00
d51049f343 when a Route is removed, don't bother triggering a sync-presentation-info-from-treeview because it isn't necessary 2017-05-08 10:40:27 +01:00
dc0139d4af use CoreSelection for track selection 2017-05-05 18:56:25 +01:00
3aefd0e744 consolidate context-menu popup methods 2017-03-16 02:36:48 +01:00
f64441aa58 remove method no longer needed
Editor::track_selection_changed() is now invoked by EditorRoutes::sync_treeview_from_presentation_info(),
AFTER the Selection has been updated
2017-02-26 18:24:56 +01:00
9de5c61b9e better solution of 3c25d26e9 2017-02-21 12:25:57 +01:00
3c25d26e91 Fix potential crash at exit/close.
~DisplaySuspender's  PresentationInfo::unsuspend_change_signal
can try to update Stripable PresentationInfo for a session that's
no longer present.
2017-02-21 01:35:18 +01:00
15eb6f716d fix thinko in prev commit 2017-02-20 21:52:13 +01:00
4ece934e66 Fix iterator off-by-one: Allow to move top-most track. via ctrl up/down 2017-02-20 21:37:50 +01:00
0f485ffd6b reinstate ensure-time-axis-visible after move-selected-tracks 2017-02-13 22:22:53 +01:00
bd7507590e new implementation of move-selected-tracks
This does not modify the editor treeview/treemodel at all
but instead works directly on the PresentationInfo order
data. Likely needs more testing etc.
2017-02-13 22:10:18 +01:00
6e09e72f11 Skip no-change re-ordering of tracks/busses
e.g. move top-most track up, bottom-most track down.
2017-01-31 20:42:33 +01:00
353eb5601c Don't allow to select VCAs in the route-list 2017-01-31 20:42:33 +01:00
34da2896c6 Keep tracks visible when re-ordering them in the editor 2017-01-29 09:34:09 +01:00
cc82fc675b remove editor/mixer selection change signals; make editor and mixer use PresentationInfo::Change more correctly; make Selection a bit smarter when setting track selection 2017-01-27 22:17:53 +01:00
e5aa0d774e use RAII for class-wide PresentationInfo::Change signal, along with properties to describe what changed 2017-01-27 22:17:53 +01:00
0808b87138 Add GUI part to immediately fan-out multi-out instruments on track creation 2017-01-21 00:40:18 +01:00
48da03e301 push sorted Stripable order back to PI (for control surfaces) 2017-01-18 05:14:48 +01:00
94a57e64f6 fix route ordering (and related possible crash on re-order) 2017-01-06 18:41:51 +01:00
851cdf26c9 Display VCAs at the end of the Track/Bus list 2016-12-22 01:38:55 +01:00
0053abbaae backport/minimize difference to mixbus branch 2016-12-21 12:14:44 +01:00
b63af3162e Set session dirty if tracks are reordered by user. 2016-11-07 08:29:34 -08:00
932cc4d347 One more piece to the moving master puzzle. 2016-11-06 21:59:33 -08:00
1457050d7a Fix Drifting Master hopefully for real this time. 2016-11-04 08:39:41 -07:00
cf52d6e4b4 enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h 2016-07-14 14:45:23 -04:00
2afaa51717 remove pointless version of Stripable::set_presentation_order() 2016-07-12 09:20:50 -04:00
da7d7f9502 many changes associated with rationalizing selection flow 2016-07-06 13:39:10 -04:00
8ceab4e193 make sure editor can follow visibility changes for VCAs 2016-06-10 15:00:43 -04:00
53ba6f1121 EditorRoutes needs to connect to the right property change signal. 2016-06-10 13:57:19 -04:00
df09d80bd3 EditorRoutes needs to respond to PropertyChanged(selected) 2016-06-10 13:57:19 -04:00
393d69c7a0 listen for gui_changed() signal from all Stripables, not just Routes 2016-06-08 11:03:13 -04:00
5fddbdd495 ensure that newly-added tracks are displayed in the editor 2016-06-06 14:44:58 -04:00
a0f0bdc063 try to keep editor+mixer treemodels in sync 2016-06-06 12:58:48 -04:00
20d85384c1 there is no remote model choice anymore - ordering is determined by the GUI 2016-06-06 12:04:49 -04:00
c0e5265b14 don't add routes+VCAs separately to editor routes during startup; merge into single list of Stripables 2016-06-05 16:33:02 -04:00