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:
authorDamien Plisson <damien.plisson@yahoo.fr>2009-10-05 16:55:16 +0400
committerDamien Plisson <damien.plisson@yahoo.fr>2009-10-05 16:55:16 +0400
commita3449771476955fd4a27eadd17ff4dce2655cc16 (patch)
tree4ad3ce6af88dc733d21fe1bd1ea02f611fea1376 /intern/ghost/GHOST_IWindow.h
parent3ec79d79e9f07346136fed4ead210c0d127ce00e (diff)
Cocoa port :
- Window creation at preferred size Implement in Ghost the use of Cocoa functions to get the maximum visible rect (size and position) for the window contents (all screen excluding dock, top menu, and window title bar) Thus Apple specific code in window creation (wm_window.c & wm_apple.c) is no more needed => removed in case of Cocoa build - Alert on exiting despite unsaved changes Add to GHOST method to maintain an all platforms (not apple specific anymore) status on unsaved changes Update GHOST_SystemCocoa to use this for asking or not user to confirm exit without saving changes
Diffstat (limited to 'intern/ghost/GHOST_IWindow.h')
-rw-r--r--intern/ghost/GHOST_IWindow.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_IWindow.h b/intern/ghost/GHOST_IWindow.h
index d91995e35ec..ff1484909b0 100644
--- a/intern/ghost/GHOST_IWindow.h
+++ b/intern/ghost/GHOST_IWindow.h
@@ -162,6 +162,19 @@ public:
virtual GHOST_TSuccess setState(GHOST_TWindowState state) = 0;
/**
+ * Sets the window "modified" status, indicating unsaved changes
+ * @param isUnsavedChanges Unsaved changes or not
+ * @return Indication of success.
+ */
+ virtual GHOST_TSuccess setModifiedState(bool isUnsavedChanges) = 0;
+
+ /**
+ * Gets the window "modified" status, indicating unsaved changes
+ * @return True if there are unsaved changes
+ */
+ virtual bool getModifiedState() = 0;
+
+ /**
* Sets the order of the window (bottom, top).
* @param order The order of the window.
* @return Indication of success.