MeVisLabToolboxReference
|
Application related functions. More...
#include <macApplication.h>
Public Types | |
enum | { ApplicationPresentationDefault = 0, ApplicationPresentationAutoHideDock = (1 << 0), ApplicationPresentationHideDock = (1 << 1), ApplicationPresentationAutoHideMenuBar = (1 << 2), ApplicationPresentationHideMenuBar = (1 << 3) } |
The constants control the presentation of the application. More... | |
typedef unsigned int | PresentationOptions |
Application presentation options storage type. | |
Static Public Member Functions | |
static void | indicateBusyState (const std::string &message=std::string()) |
Show busy state indicator, possibly displaying a descriptive message (UTF8) | |
static void | removeBusyStateIndicator () |
Hide busy state indicator. | |
static void | initializeCocoa () |
Startup function to call when running Cocoa code from a Carbon application. | |
static void | setPresentationOptions (PresentationOptions options) |
Sets the application presentation options to use when this application is active. Only certain combinations of “PresentationOptions” flags are supported. | |
static bool | isActive (pid_t pid=0) |
Returns a boolean value indicating whether the referenced application is currently frontmost (active) | |
static bool | activate (pid_t pid=0, uint32_t timeout=800) |
Activate application and bring all process windows forward, timeout allows to wait for application to connect to window server (milliseconds) | |
static void | enableSuddenTermination () |
Enables the application for quick killing using sudden termination of Mac OS X 10.6 or later. | |
static void | disableSuddenTermination () |
Disables the application for quickly killing using sudden termination of Mac OS X 10.6 or later. | |
static void | enableRelaunchOnLogin () |
Enables relaunching the application on login of Mac OS X 10.7 or later. | |
static void | disableRelaunchOnLogin () |
Disables relaunching the application on login of Mac OS X 10.7 or later. | |
static void | disableWindowRestoration () |
Disables the window restoration of Mac OS X 10.7 or later. |
Application related functions.
Definition at line 18 of file macApplication.h.
typedef unsigned int macx::Application::PresentationOptions |
Application presentation options storage type.
Definition at line 50 of file macApplication.h.
anonymous enum |
The constants control the presentation of the application.
Definition at line 42 of file macApplication.h.
static bool macx::Application::activate | ( | pid_t | pid = 0 , |
uint32_t | timeout = 800 |
||
) | [static] |
Activate application and bring all process windows forward, timeout allows to wait for application to connect to window server (milliseconds)
static void macx::Application::disableRelaunchOnLogin | ( | ) | [static] |
Disables relaunching the application on login of Mac OS X 10.7 or later.
static void macx::Application::disableSuddenTermination | ( | ) | [static] |
Disables the application for quickly killing using sudden termination of Mac OS X 10.6 or later.
static void macx::Application::disableWindowRestoration | ( | ) | [static] |
Disables the window restoration of Mac OS X 10.7 or later.
static void macx::Application::enableRelaunchOnLogin | ( | ) | [static] |
Enables relaunching the application on login of Mac OS X 10.7 or later.
static void macx::Application::enableSuddenTermination | ( | ) | [static] |
Enables the application for quick killing using sudden termination of Mac OS X 10.6 or later.
static void macx::Application::indicateBusyState | ( | const std::string & | message = std::string() | ) | [static] |
Show busy state indicator, possibly displaying a descriptive message (UTF8)
static void macx::Application::initializeCocoa | ( | ) | [static] |
Startup function to call when running Cocoa code from a Carbon application.
static bool macx::Application::isActive | ( | pid_t | pid = 0 | ) | [static] |
Returns a boolean value indicating whether the referenced application is currently frontmost (active)
static void macx::Application::removeBusyStateIndicator | ( | ) | [static] |
Hide busy state indicator.
static void macx::Application::setPresentationOptions | ( | PresentationOptions | options | ) | [static] |
Sets the application presentation options to use when this application is active. Only certain combinations of “PresentationOptions” flags are supported.