Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/ghost/intern/GHOST_SystemCocoa.h')
-rw-r--r--intern/ghost/intern/GHOST_SystemCocoa.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/intern/ghost/intern/GHOST_SystemCocoa.h b/intern/ghost/intern/GHOST_SystemCocoa.h
index cd2cf12daa1..3e499f3d136 100644
--- a/intern/ghost/intern/GHOST_SystemCocoa.h
+++ b/intern/ghost/intern/GHOST_SystemCocoa.h
@@ -133,6 +133,12 @@ public:
*/
virtual bool processEvents(bool waitForEvent);
+ /**
+ * Handle User request to quit, from Menu bar Quit, and Cmd+Q
+ * Display alert panel if changes performed since last save
+ */
+ GHOST_TUns8 handleQuitRequest();
+
/***************************************************************************************
** Cursor management functionality
***************************************************************************************/
@@ -193,39 +199,33 @@ protected:
*/
virtual GHOST_TSuccess init();
- /**
- * Closes the system down.
- * @return A success value.
- */
- virtual GHOST_TSuccess exit();
-
-
/**
* Handles a tablet event.
* @param eventPtr An NSEvent pointer (casted to void* to enable compilation in standard C++)
* @return Indication whether the event was handled.
*/
- int handleTabletEvent(void *eventPtr);
- /**
+ GHOST_TSuccess handleTabletEvent(void *eventPtr);
+
+ /**
* Handles a mouse event.
* @param eventPtr An NSEvent pointer (casted to void* to enable compilation in standard C++)
* @return Indication whether the event was handled.
*/
- int handleMouseEvent(void *eventPtr);
+ GHOST_TSuccess handleMouseEvent(void *eventPtr);
/**
* Handles a key event.
* @param eventPtr An NSEvent pointer (casted to void* to enable compilation in standard C++)
* @return Indication whether the event was handled.
*/
- int handleKeyEvent(void *eventPtr);
+ GHOST_TSuccess handleKeyEvent(void *eventPtr);
/**
* Handles a window event.
* @param eventPtr An NSEvent pointer (casted to void* to enable compilation in standard C++)
* @return Indication whether the event was handled.
*/
- int handleWindowEvent(void *eventPtr);
+ GHOST_TSuccess handleWindowEvent(void *eventPtr);
/**
* Handles all basic Mac application stuff for a mouse down event.