Application interface.
More...
#include <iapplication.h>
◆ CommandLineArguments
◆ WindowList
◆ createWindow()
Create a new window.
- Parameters
-
config | window configuration |
controller | window controller (can be nullptr) |
- Returns
- shared window pointer
◆ enableTooltips()
virtual void enableTooltips |
( |
bool | state | ) |
|
|
pure virtual |
Enable or disable tooltips in all windows.
- Parameters
-
state | true to enable tooltips, false for disabling them |
◆ executeCommand()
virtual bool executeCommand |
( |
const Command & | command | ) |
|
|
pure virtual |
Execute a command.
The command will be first dispatched to the active window (if there is one) and if the window did not handle the command the command is dispatched to the application delegate.
- Parameters
-
command | command name and group |
- Returns
- if the command was executed
◆ getCommandLineArguments()
Get the command line arguments.
◆ getCommonDirectories()
◆ getDelegate()
Get the application delegate.
◆ getPreferences()
Get the application preferences.
◆ getSharedUIResources()
Get the shared UI resources.
◆ getWindows()
Get all application windows.
- Note
- The active window will be the first in the list.
- Returns
- a list of all windows
◆ instance()
Get the global instance of the application.
◆ quit()
◆ registerCommand()
virtual void registerCommand |
( |
const Command & | command, |
|
|
char16_t | defaultCommandKey ) |
|
pure virtual |
Register a command.
The command will be added to the application menu. When the menu item is selected the command is first dispatched to the active window and then to the application delegate.
- Parameters
-
command | command name and group |
defaultCommandKey | default command key |
◆ showAlertBox()
Show an application wide modal alert box.
- Parameters
-
config | alert box configuration |
- Returns
- alert result
◆ showAlertBoxForWindow()
Show an alert box modal to a window.
- Parameters
-
config | alert box configuration |
The documentation for this class was generated from the following file: