A ViewManager handles all logic for restorable view configurations. More...
Public Member Functions | |
void | addViewInfo (ViewInfo *newInfo) |
Adds a new ViewInfo to the list and sets it as current ViewInfo. More... | |
ViewInfo * | getCurrentViewInfo () |
Returns the view that is currently selected or nullptr if nothing is selected. More... | |
int | getNumViewInfos () const |
Returns the amount of available views. More... | |
ViewInfo * | getViewInfo (int index) |
returns the ViewInfo at the specified index. More... | |
void | removeCurrentViewInfo () |
Deletes the current view info. More... | |
void | replaceCurrentViewInfo (ViewInfo *newInfo) |
This replaces the current ViewInfo with the given ViewInfo. More... | |
void | restoreViewsFromValueTree (const ValueTree &v) |
Restores the views from a previously encoded ValueTree. More... | |
void | saveViewsToValueTree (ValueTree &v) const |
Saves the views as encoded string into a existing ValueTree. More... | |
void | setCurrentViewChanged () |
This marks the current view as changed. More... | |
void | setCurrentViewInfo (int newViewIndex) |
Changes the current view index. More... | |
Protected Member Functions | |
ViewManager (ModulatorSynthChain *chain_, UndoManager *undoManager) | |
Creates a new ViewManager. More... | |
A ViewManager handles all logic for restorable view configurations.
Normally, a ModulatorSynthChain automatically uses the features of the class by inheritance, but you can subclass it if you want to.
It stores views in a list and has some handy features for managing them using a "current" slot.
|
protected |
Creates a new ViewManager.
|
inline |
|
inline |
Returns the view that is currently selected or nullptr if nothing is selected.
|
inline |
Returns the amount of available views.
|
inline |
Deletes the current view info.
|
inline |
|
inline |
Restores the views from a previously encoded ValueTree.
|
inline |
Saves the views as encoded string into a existing ValueTree.
|
inline |
This marks the current view as changed.
|
inline |
Changes the current view index.