Commit graph

15791 commits

Author SHA1 Message Date
Nikolaus Gullotta
bcba5bbdab
Changes to MixerSnapshotManager::move
MixerSnapshotManager::move will now correctly set the snapshot's path to
the new path and correctly test for FILE_TEST_EXISTS when determining
whether or not to bail early
2020-03-23 13:54:38 -05:00
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
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
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
426cbd0287
if snapshot is empty after creation, don't add it to the list 2020-03-23 13:53:39 -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
ff02990080
get substitutions into a working state 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
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
Nikolaus Gullotta
42fc3a2703
MixerSnapshotManager::create_snapshot needs to correctly set the path when it creates the snapshot 2020-03-23 13:52:25 -05:00
Nikolaus Gullotta
4a658632b0
promoting twice may overwrite a current set member adn thus needs to be erased and re-inserted 2020-03-23 13:52:25 -05:00
Nikolaus Gullotta
4342159c30
implement rename, remove and promote right-click functions for local snapshots 2020-03-23 13:52:25 -05:00
Nikolaus Gullotta
e64b1368e0
optimize create_snapshot to delete the item from the set and insert the new one rather than tossing out the whole set and starting from scratch 2020-03-23 13:52:25 -05:00
Nikolaus Gullotta
86ef6a96dd
if the RouteList passed to create_snapshot is empty it will use the method (whcih I will eventualyl collapse into one method) that captures all the tracks in the session.
snapshots now create normally again
2020-03-23 13:52:24 -05:00
Nikolaus Gullotta
5a3017153e
add ensure snapshot dir to SnapshotManager class... creating new snapshots with create_snapshot is broken as of this commit, will fix later 2020-03-23 13:52:24 -05:00
Nikolaus Gullotta
86bc853788
MixerSnapshots now have a path (the source from which it derived) and MixerSnapshotManager will correctly set this 2020-03-23 13:52:24 -05:00
Nikolaus Gullotta
51632104fa
creat snapshot can take a routelist OR a path 2020-03-23 13:52:24 -05:00
Nikolaus Gullotta
a432539122
mixer_snapshot_manager now collects local templates as well with sort-of hacky work around 2020-03-23 13:52:23 -05:00
Nikolaus Gullotta
cbb468df39
fix some header file verbosity 2020-03-23 13:52:23 -05:00
Nikolaus Gullotta
9d817bf762
typo and set label to basename 2020-03-23 13:52:23 -05:00
Nikolaus Gullotta
16a6116d0a
begin work on mixer_snapshot_manager to handle creation, discovery, and deletion of snapshots 2020-03-23 13:52:23 -05:00
Nikolaus Gullotta
4ac66cd534
use class suffix as write information 2020-03-23 13:50:52 -05:00
Nikolaus Gullotta
f701be65a2
find_route_templates will now correctly identify snapshot file names 2020-03-23 13:50:52 -05:00
Nikolaus Gullotta
d0e7768e30
snapshots now use the .template suffix instead of .xml 2020-03-23 13:50:36 -05:00
Nikolaus Gullotta
942b6e6afd
Fix crash: new_route_from_template can return an empty RouteList if contruction failed 2020-03-23 13:49:43 -05:00
Robin Gareus
da5081c059
NO-OP: remove trailing whitespace 2020-03-23 13:49:43 -05:00
Nikolaus Gullotta
c10394873f
midi routes have different playlists 2020-03-23 13:49:42 -05:00
Nikolaus Gullotta
a1965214d1
re-enable group settings according to it's state. for some reason, set_state doesn't work on this. Probably better to do it like this anyways. 2020-03-23 13:49:42 -05:00
Nikolaus Gullotta
be6249229e
we need to copy the top level playlist with an easy work around... alternate playlists will be harder 2020-03-23 13:49:42 -05:00
Nikolaus Gullotta
0016361e19
mixer snapshots can now be loaded form session and route templates 2020-03-23 13:49:42 -05:00
Nikolaus Gullotta
26344b324e
push back group state recall until after routes, so that routes who are the sole member of a group can resurrect their group for later 2020-03-23 13:49:42 -05:00
Nikolaus Gullotta
be5d9ace1f
load_from_session now notifies routes that they have a group and it loves them 2020-03-23 13:49:41 -05:00
Nikolaus Gullotta
0868e65cb1
supposed to add group name as property, not route name, and experiment with different ways to add groups and routes to groups 2020-03-23 13:49:41 -05:00
Nikolaus Gullotta
82651ab372
re-add group setting and fix a function name error 2020-03-23 13:49:41 -05:00
Nikolaus Gullotta
99381e75f2
no-op: whitespace, remove unused deconstructor and redundant checks, rename a function... 2020-03-23 13:49:41 -05:00
Nikolaus Gullotta
f069e2f27d
no-op: clean use namespace PBD 2020-03-23 13:49:41 -05:00
Nikolaus Gullotta
a6f769d1dd
skip special routes for now until a proper setting mechanism is in place 2020-03-23 13:49:41 -05:00