Control handling exported values during copy-pasting [IN PROGRESS]
Currently in progress here - https://github.com/synfig/synfig/pull/2086
In Synfig user can export any parameter of any layer - this way parameter is linked to exported value. When user copy-pasting such layer from one file into another, the exported values are not copied (they are referenced/linked). This creates problems.
I suggest to show a dialog, which is listing all exported values (ones which pasted layer has). In this dialog user can select which exported values should be copied and which should be linked from old file (default behavior is to copy values).
What if target file already has exported values with the same name?
I think the dialog should show icons for values marked to copy, which indicate if such exported value already exists in target document. If its type is different, then there should be alarm icon, and dialog should allow to rename exported values.
Here is a prototype:
If checkbox is enabled, to exported value will be copied into targed document. Default value for checkbox: enabled.
User can uncheck checkboxes, that makes the value will be linked (referenced) from source file.
Clicking this checkbox allows to enable/disable all checkboxes.
This value is copied to target document (see checkbox enabled), but the target document has exported value with the same name and different type. So, that creates conflict.
This value is copied to target document (see checkbox enabled), and the target document has exported value with the same name and same type. No problem here, icon indicates that this value will be linked to existing exported value in target document.
If value is not copied to target document (checkbox disabled), then a path displayed to file where it is referenced from.
OK button is not active if there is at least one conflict - see (4).
For values which are marked to be copied into target document (checkbox enabled) user can click on their name and edit it (type other text). In any value is renamed then icons - (4) and (5) should updated automatically.