|
Gin
|
Plugin metadata and configuration options for Processor. More...
#include <gin_processor.h>
Public Member Functions | |
| ProcessorOptions () | |
| ProcessorOptions | withAdditionalCredits (juce::StringArray names) && |
| ProcessorOptions | withoutUpdateChecker () && |
| ProcessorOptions | withoutNewsChecker () && |
| ProcessorOptions | withoutTitleBar () && |
| ProcessorOptions | withMidiLearn () && |
| ProcessorOptions | withMidiLearn (juce::Array< int > ccsToIgnore) && |
| ProcessorOptions | withPresetMetadata () && |
Public Attributes | |
| juce::String | pluginName |
| juce::String | devId |
| juce::String | developer |
| juce::String | pluginVersion |
| juce::String | updatesURL |
| juce::String | newsURL |
| Feed the news checker reads, derived from the developer's own site the same way updatesURL is. | |
| juce::String | url |
| juce::String | urlTitle |
| bool | wantsMidi = false |
| bool | makesMidi = false |
| bool | useUpdateChecker = true |
| bool | useNewsChecker = true |
| bool | hasMidiLearn = false |
| bool | usePresetMetadata = false |
| juce::Array< int > | midiLearnIgnoredCCs |
| CCs the plugin handles itself (sustain pedal, mod wheel, etc), so MIDI learn should neither learn them nor apply mappings loaded for them. | |
| bool | useTitleBar = true |
| Whether ProcessorEditor builds its own TitleBar. | |
| juce::StringArray | programmingCredits |
| std::unique_ptr< juce::LookAndFeel > | lookAndFeel |
Plugin metadata and configuration options for Processor.
ProcessorOptions provides configuration and metadata for a Gin-based plugin, including plugin identity (name, version, developer), capabilities (MIDI I/O), and optional features (update checker, news checker). When using a standard JUCE plugin project, the default constructor automatically fills these from JucePlugin_* preprocessor defines. For custom applications, you can manually configure all options.
Configuration Categories:
The class provides builder-style methods for common customizations:
Usage:
| ProcessorOptions::ProcessorOptions | ( | ) |
| ProcessorOptions ProcessorOptions::withAdditionalCredits | ( | juce::StringArray | names | ) | && |
References programmingCredits.
| ProcessorOptions ProcessorOptions::withoutUpdateChecker | ( | ) | && |
References useUpdateChecker.
| ProcessorOptions ProcessorOptions::withoutNewsChecker | ( | ) | && |
References useNewsChecker.
| ProcessorOptions ProcessorOptions::withoutTitleBar | ( | ) | && |
References useTitleBar.
| ProcessorOptions ProcessorOptions::withMidiLearn | ( | ) | && |
References hasMidiLearn.
| ProcessorOptions ProcessorOptions::withMidiLearn | ( | juce::Array< int > | ccsToIgnore | ) | && |
References hasMidiLearn, and midiLearnIgnoredCCs.
| ProcessorOptions ProcessorOptions::withPresetMetadata | ( | ) | && |
References usePresetMetadata.
| juce::String ProcessorOptions::pluginName |
| juce::String ProcessorOptions::devId |
| juce::String ProcessorOptions::developer |
| juce::String ProcessorOptions::pluginVersion |
| juce::String ProcessorOptions::updatesURL |
| juce::String ProcessorOptions::newsURL |
Feed the news checker reads, derived from the developer's own site the same way updatesURL is.
It used to be hard coded, which meant every plugin built on gin fetched socalabs' blog whoever had written it.
| juce::String ProcessorOptions::url |
| juce::String ProcessorOptions::urlTitle |
Referenced by withoutUpdateChecker().
Referenced by withoutNewsChecker().
Referenced by withMidiLearn(), and withMidiLearn().
Referenced by withPresetMetadata().
| juce::Array<int> ProcessorOptions::midiLearnIgnoredCCs |
CCs the plugin handles itself (sustain pedal, mod wheel, etc), so MIDI learn should neither learn them nor apply mappings loaded for them.
Referenced by withMidiLearn().
Whether ProcessorEditor builds its own TitleBar.
Turn it off in a plugin that supplies its own header: the stock bar is not just hidden but never constructed, so it does not also stand up an update and a news checker behind the one you replaced it with.
Referenced by withoutTitleBar().
| juce::StringArray ProcessorOptions::programmingCredits |
Referenced by withAdditionalCredits().
| std::unique_ptr<juce::LookAndFeel> ProcessorOptions::lookAndFeel |