Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copy/paste xml patch to/from clipboard alongside load/save #98

Open
elanhickler opened this issue Mar 12, 2024 · 3 comments
Open

Add copy/paste xml patch to/from clipboard alongside load/save #98

elanhickler opened this issue Mar 12, 2024 · 3 comments

Comments

@elanhickler
Copy link

Looking through the code it seems like the code needs a bit of refactoring, for example, creating a function just to get the xml string, then using that function inside load and then we can use that function inside a "patch to clipboard" function. I'd like to make it easy for users to share patches. I tried to implement this myself but there's so many layers to the load/save system it's difficult to add functionality.

@elanhickler
Copy link
Author

I tried to implement it myself but for some reason #include <juce_gui_basics/juce_gui_basics.h> gives an error in clap-base-class.h, tried a handful of things to solve this, no luck. This is where the needed juce::SystemClipboard functionality comes in.

@baconpaul
Copy link
Collaborator

Yeah you can’t couple to juce there and especially not to juce gui

the editor class can implement copy to clipboard and then the bass class could implement xml as string is probably the pattern you want

@elanhickler
Copy link
Author

would you use ui communication bundle and to/from UiQ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants