A helper class which provides loading and saving Processors to files and clipboard. More...
Static Public Member Functions | |
static void | checkProcessorIdsForDuplicates (Processor *rootProcessor, bool silentMode=true) |
Checks if an child processor has a already taken name. More... | |
static Processor * | createProcessorFromClipBoard (Processor *parent) |
Creates a processor from xml data in the clipboard. More... | |
static Processor * | createProcessorFromPreset (int menuIndexDelta, Processor *parent) |
Creates a processor from the Popupmenu. More... | |
static PopupMenu | getAllSavedPresets (int minIndex, Processor *parentChain) |
Returns a popupmenu with all suiting Processors for the supplied FactoryType. More... | |
static String | getCustomName (const String &typeName, const String &message=String()) |
Opens a modal window that allow renaming of a Processor. More... | |
static String | getProcessorNameFromClipboard (const FactoryType *t) |
Checks if the. More... | |
static File | getSampleFolder (const String &libraryName) |
Opens a file dialog and saves the new path into the library's setting file. More... | |
static void | saveProcessorAsPreset (Processor *p, const String &directory=String()) |
Saves the Processor into a subfolder of the directory provided with getPresetFolder(). More... | |
static void | showMessageWindow (const String &title, const String &message, IconType icon=IconType::Info) |
Opens a message box (HI Style) | |
static bool | showYesNoWindow (const String &title, const String &message, IconType icon=IconType::Question) |
Opens a Yes/No box (HI Style) | |
A helper class which provides loading and saving Processors to files and clipboard.
|
static |
Checks if an child processor has a already taken name.
If silentMode is false, it will display a message box at the end.
Creates a processor from xml data in the clipboard.
The XML data must be parsed before this function, but it checks if a Processor can be created from the data.
Creates a processor from the Popupmenu.
It will be connected to the MainController after creation.
menuIndexDelta | - the menu index of the selected popupitem from the PopupMenu received with getAllSavedPresets. If the menu was added to another menu as submenu, you have to subtract the last item index before the submenu. |
m | - the main controller. This must not be a nullptr! |
|
static |
Returns a popupmenu with all suiting Processors for the supplied FactoryType.
|
static |
Opens a modal window that allow renaming of a Processor.
|
static |
Checks if the.
|
inlinestatic |
Opens a file dialog and saves the new path into the library's setting file.