Nikolaus Gullotta
f428e51a8c
Drop "_snapshot" from MixerSnapshotManager methods
...
Since remove and rename imply that it's working on a snapshot, these are
dropped for readability
2020-03-23 13:54:37 -05:00
Nikolaus Gullotta
9a4281befa
Implement MixerSnapshotManager move, erase, and demote methods
...
Methods promote and demote now use move to handle writing to different
folders and erase to maintain consistent state in our sets
The demote method is currently un-used
2020-03-23 13:54:37 -05:00
Nikolaus Gullotta
056db80818
NO-OP: Whitespace
2020-03-23 13:54:37 -05:00
Nikolaus Gullotta
62b7c11f30
Cleanup of MixerSnapshotManager
...
Move all template finding needs to find_templates which will construct
complete TemplateInfo records for consistency's sake
2020-03-23 13:54:37 -05:00
Nikolaus Gullotta
fa3752f126
MixerSnapshot will no derive its label and description from XML
...
In the past this was set manually using set_label() and set_description
now it is set automatically to make is consistent
2020-03-23 13:54:37 -05:00
Nikolaus Gullotta
98adf74a78
Check-in of initial work on new_from_route_template
2020-03-23 13:54:37 -05:00
Nikolaus Gullotta
8b59e50980
Quell more compiler warnings
...
bool solo is now initialized properly and get_snapshot_by_name always
returns a MixerSnapshot pointer
2020-03-23 13:54:18 -05:00
Nikolaus Gullotta
06302e2e8b
Quell some compilation errors
2020-03-23 13:54:17 -05:00
Nikolaus Gullotta
7708b677d0
Remove defunct MixerSnapshotDialog class and associated menu items
2020-03-23 13:54:17 -05:00
Nikolaus Gullotta
f4db51d1e1
Undo commit 83b855e49e, not ready for prime-time
2020-03-23 13:54:17 -05:00
Nikolaus Gullotta
24ff335b3a
Initial work on getting MixerStrip representations for MixerSnapshots
2020-03-23 13:54:17 -05:00
Nikolaus Gullotta
3160904a5e
only add vca or group state IFF it has not been added before
2020-03-23 13:54:17 -05:00
Nikolaus Gullotta
54cd8e6368
more work on getting TemplateManager to use the SnapshotManager:
...
Create hookup, and use RenamedSnapshot signal
2020-03-23 13:54:16 -05:00
Nikolaus Gullotta
ef3f3d0f47
initial work on getting TemplateManager to use the SnapshotManager (and to hook up the correct signals)
2020-03-23 13:54:16 -05:00
Nikolaus Gullotta
2ea77a93ca
remove unnecessary check for lists
2020-03-23 13:54:16 -05:00
Nikolaus Gullotta
05a93ce6fd
add description handling to MixerSnapshots and save_as_template
2020-03-23 13:54:16 -05:00
Nikolaus Gullotta
daa274d12f
add name prop to MixerSnapshot root node
2020-03-23 13:53:50 -05:00
Nikolaus Gullotta
727ae70e3b
NO-OP: consistent writing
2020-03-23 13:53:39 -05:00
Nikolaus Gullotta
a30ef6d0b4
complain about new_from_external overwriting an existing row
2020-03-23 13:53:39 -05:00
Nikolaus Gullotta
426cbd0287
if snapshot is empty after creation, don't add it to the list
2020-03-23 13:53:39 -05:00
Nikolaus Gullotta
b14b9f352e
get_row_by_name should only use the snapshot's label to check against, as the row's name may have "..." appended to it (if it's long enough)
2020-03-23 13:53:39 -05:00
Nikolaus Gullotta
2aac61b509
if new_name is the row's name don't delete
2020-03-23 13:53:39 -05:00
Nikolaus Gullotta
0952a8d399
NO-OP: More whitespace changes
2020-03-23 13:53:39 -05:00
Nikolaus Gullotta
abe33ec069
use the remove_row function for removal, and add a few checks for rename_snapshot
2020-03-23 13:53:38 -05:00
Nikolaus Gullotta
a324a485e6
more whitespace changes
2020-03-23 13:53:38 -05:00
Nikolaus Gullotta
d3b53f62f2
whitespace, change new_from_session to new_from_external, reorder imports, and construct external dialog only once and hide/show as needed
2020-03-23 13:53:38 -05:00
Nikolaus Gullotta
afd9aae422
rename prompt_delete to prompt_overwrite and fix scenario where cancelling the prompt still went ahead with overwriting
2020-03-23 13:53:38 -05:00
Nikolaus Gullotta
86ebded286
fix typo
2020-03-23 13:53:38 -05:00
Nikolaus Gullotta
dee8f36e8b
complain about overwrites when creating new snapshots
2020-03-23 13:53:38 -05:00
Nikolaus Gullotta
bb9b4119e2
notify the user if a promoted snapshot will overwrite something in the global snapshots list
2020-03-23 13:53:37 -05:00
Nikolaus Gullotta
4a085b91f5
add PromotedSnapshot signal to manager, and subscribe to this this in the global MixerSnapshotList
2020-03-23 13:53:37 -05:00
Nikolaus Gullotta
132e895b18
fix GPL info
2020-03-23 13:53:30 -05:00
Nikolaus Gullotta
5e8e26713c
template picker window and template list are now only constructed once and updated as needed
2020-03-23 13:53:30 -05:00
Nikolaus Gullotta
c91870ee3f
NO-OP: cleanup code slightly
2020-03-23 13:53:23 -05:00
Nikolaus Gullotta
9b9e5b3da7
allow the user to set all selected to the same state... this code is ugly but it works for now
2020-03-23 13:53:23 -05:00
Nikolaus Gullotta
60a8a5178c
Change 'open session' with new 'external' language
2020-03-23 13:53:22 -05:00
Nikolaus Gullotta
9cfa021544
NO-OP: remove now defunct and commented out code
2020-03-23 13:53:22 -05:00
Nikolaus Gullotta
ff02990080
get substitutions into a working state
2020-03-23 13:53:22 -05:00
Nikolaus Gullotta
85ec750c70
fix button packer sizing issues, and change 'from session' to 'from external'
2020-03-23 13:53:22 -05:00
Nikolaus Gullotta
388aa3ab44
notify the user this is about to be overwritten
2020-03-23 13:53:22 -05:00
Nikolaus Gullotta
74160dbb0a
no-op whitespace
2020-03-23 13:53:22 -05:00
Nikolaus Gullotta
f33a841f54
prepare for signal handling and remove rows that have the same name of rows you're renaming (also have the manager manage culling of pointers)
2020-03-23 13:53:22 -05:00
Nikolaus Gullotta
344bf2e553
add popup confirmation for promote_snapshot
2020-03-23 13:53:04 -05:00
Nikolaus Gullotta
66ea7d69c6
small changes to dialog and widgets
2020-03-23 13:53:04 -05:00
Nikolaus Gullotta
650193995a
more work on 'Apply Template'
2020-03-23 13:52:52 -05:00
Nikolaus Gullotta
ae873ae32a
rough in "Apply Template" dialog for global mixer templates
2020-03-23 13:52:41 -05:00
Nikolaus Gullotta
4974333227
oops, this needs to default to false
2020-03-23 13:52:26 -05:00
Nikolaus Gullotta
3d0a362ccd
mixer snapshot list can be local *or* global. This will be controlled by it's constructor
2020-03-23 13:52:26 -05:00
Nikolaus Gullotta
e0ce2c00e5
SnapshotList belongs in ARDOUR namespace
2020-03-23 13:52:26 -05:00
Nikolaus Gullotta
59d8397c6b
general cleanup of code
2020-03-23 13:52:26 -05:00