|
VSTGUI 4.10
Graphical User Interface Framework not only for VST plugins
|
Application delegate interface. More...
#include <iappdelegate.h>
Inheritance diagram for IDelegate:Public Member Functions | |
| virtual void | finishLaunching ()=0 |
| Called when the application has finished launching. More... | |
| virtual void | onQuit ()=0 |
| Called when the application is terminating. More... | |
| virtual bool | canQuit ()=0 |
| Called to check if it is currently possible to quit. More... | |
| virtual void | showAboutDialog ()=0 |
| The delegate should show the about dialog. More... | |
| virtual bool | hasAboutDialog ()=0 |
| Is there an about dialog ? More... | |
| virtual void | showPreferenceDialog ()=0 |
| The delegate should show the preference dialog. More... | |
| virtual bool | hasPreferenceDialog ()=0 |
| Is there a preference dialog ? More... | |
| virtual const Info & | getInfo () const =0 |
| Get the application info. More... | |
| virtual UTF8StringPtr | getSharedUIResourceFilename () const =0 |
| Get the filename of the shared UI resources. More... | |
| virtual bool | openFiles (const std::vector< UTF8String > &paths)=0 |
| Called when the system wants the app to open files. More... | |
Public Member Functions inherited from Interface | |
| virtual | ~Interface () noexcept |
| Interface ()=default | |
| Interface (const Interface &)=delete | |
| Interface (Interface &&)=delete | |
| Interface & | operator= (const Interface &)=delete |
| Interface & | operator= (Interface &&)=delete |
| template<typename T > | |
| const auto | dynamicCast () const |
| template<typename T > | |
| auto | dynamicCast () |
Application delegate interface.
Every VSTGUI application needs a delegate. It's a global instance which handles custom application behaviour.
You define it via Application::Init (std::make_unique<YourDelegateClassType> ())
|
pure virtual |
Called to check if it is currently possible to quit.
Implemented in DelegateAdapter.
|
pure virtual |
Called when the application has finished launching.
Implemented in DelegateAdapter.
|
pure virtual |
Get the application info.
Implemented in DelegateAdapter.
|
pure virtual |
Get the filename of the shared UI resources.
If this returns a name than all the UI resources are shared between different uidesc files. If this returns a nullptr, every uidesc file has its own resources.
Implemented in DelegateAdapter.
|
pure virtual |
Is there an about dialog ?
Implemented in DelegateAdapter.
|
pure virtual |
Is there a preference dialog ?
Implemented in DelegateAdapter.
|
pure virtual |
Called when the application is terminating.
Implemented in DelegateAdapter.
|
pure virtual |
Called when the system wants the app to open files.
| paths | UTF-8 encoded paths to the files |
Implemented in DelegateAdapter.
|
pure virtual |
The delegate should show the about dialog.
Implemented in DelegateAdapter.
|
pure virtual |
The delegate should show the preference dialog.
Implemented in DelegateAdapter.