|
Vital
|
The main window of the Vital standalone application. More...
Public Types | |
| enum | PresetCommand { kSave = 0x5001 , kSaveAs , kOpen , kToggleVideo } |
| Enumeration of supported preset-related commands. More... | |
Public Member Functions | |
| MainWindow (const String &name, bool visible) | |
| Constructs a MainWindow instance. | |
| void | closeButtonPressed () override |
| Called when the user attempts to close the main window. | |
| void | loadFile (const File &file) |
| Queues a file to be loaded once the application is ready. | |
| void | shutdownAudio () |
| Shuts down audio processing (e.g., before quitting). | |
| ApplicationCommandTarget * | getNextCommandTarget () override |
| void | getAllCommands (Array< CommandID > &commands) override |
| Registers all commands (Save, Save As, Open) that this window can handle. | |
| void | getCommandInfo (const CommandID commandID, ApplicationCommandInfo &result) override |
| Provides metadata and default key bindings for commands. | |
| bool | perform (const InvocationInfo &info) override |
| Executes the given command. | |
| void | handleAsyncUpdate () override |
| Called asynchronously to handle queued operations (like file loading). | |
The main window of the Vital standalone application.
This window hosts the SynthEditor, which provides the GUI for interacting with the Vital synthesizer engine. It supports file loading, preset saving/loading, and handles various application commands (e.g., open, save).
|
inline |
Constructs a MainWindow instance.
Initializes the SynthEditor and GUI components. If visible is true, the window will be shown with native title bars and sizing constraints.
| name | The name of the window. |
| visible | Whether the window is visible upon creation. |
|
inlineoverride |
Called when the user attempts to close the main window.
This requests that the entire application quit.
|
inlineoverride |
Registers all commands (Save, Save As, Open) that this window can handle.
| commands | The array to populate with available commands. |
|
inlineoverride |
Provides metadata and default key bindings for commands.
| commandID | The command to describe. |
| result | The structure to fill with command info. |
|
inlineoverride |
|
inlineoverride |
Called asynchronously to handle queued operations (like file loading).
|
inline |
Queues a file to be loaded once the application is ready.
| file | The file to load. |
|
inlineoverride |
Executes the given command.
| info | Information about the command invocation. |
|
inline |
Shuts down audio processing (e.g., before quitting).