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>2010-06-02 00:21:40 +0400
committerDamien Plisson <damien.plisson@yahoo.fr>2010-06-02 00:21:40 +0400
commit3f326354b8b09c2f08b114b4030e49bbbfa693af (patch)
treef7e619791d39fb7ae7e4cc69c3b44a72eb8a2f4e /intern/ghost/GHOST_IWindow.h
parent66e3a6e0efd782c09bd94dd22313558f3b91240b (diff)
Progress indicator in the application icon
Displays a global progress indicator in the application icon reflecting the total progress of all running jobs. Currently fully implemented on OSX (Cocoa). On other OSes that do not allow to redraw the app icon, this can be implemented as a [x%] display in the app title, so to appear in the taskbar. Thanks to Matt for the windowmanager wrapper.
Diffstat (limited to 'intern/ghost/GHOST_IWindow.h')
-rw-r--r--intern/ghost/GHOST_IWindow.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_IWindow.h b/intern/ghost/GHOST_IWindow.h
index a024b2b51e5..83757b17e8b 100644
--- a/intern/ghost/GHOST_IWindow.h
+++ b/intern/ghost/GHOST_IWindow.h
@@ -235,6 +235,21 @@ public:
virtual const GHOST_TabletData* GetTabletData() = 0;
/***************************************************************************************
+ ** Progress bar functionality
+ ***************************************************************************************/
+
+ /**
+ * Sets the progress bar value displayed in the window/application icon
+ * @param progress The progress %
+ */
+ virtual GHOST_TSuccess setProgressBar(float progress) = 0;
+
+ /**
+ * Hides the progress bar in the icon
+ */
+ virtual GHOST_TSuccess endProgressBar() = 0;
+
+ /***************************************************************************************
** Cursor management functionality
***************************************************************************************/