tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_TextPlugin.cpp
Go to the documentation of this file.
1 /*
2 ,--. ,--. ,--. ,--.
3 ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2024
4 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
5 | | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
6 `---' `--' `--`--'`---'`--'`--' `---' `--' `---' `--''--' www.tracktion.com
7
8 Tracktion Engine uses a GPL/commercial licence - see LICENCE.md for details.
9*/
10
11namespace tracktion { inline namespace engine
12{
13
14const char* TextPlugin::xmlTypeName ("text");
15
16TextPlugin::TextPlugin (PluginCreationInfo info) : Plugin (info)
17{
18 auto um = getUndoManager();
19
20 textTitle.referTo (state, IDs::title, um);
21 textBody.referTo (state, IDs::body, um);
22}
23
24TextPlugin::~TextPlugin()
25{
26 notifyListenersOfDeletion();
27}
28
29juce::ValueTree TextPlugin::create()
30{
31 return createValueTree (IDs::PLUGIN,
32 IDs::type, xmlTypeName);
33}
34
35}} // namespace tracktion { inline namespace engine