OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
MouseCursorManager Class Referenceabstract

Sets another cursor for current application. More...

Inheritance diagram for MouseCursorManager:
[legend]

Public Member Functions

virtual ~MouseCursorManager ()
 

Static Public Member Functions

static MouseCursorManagermgr ()
 
static void restoreOverride ()
 
static void setMgr (MouseCursorManager *)
 
static void setOverride (const char *filenm, int hotx=-1, int hoty=-1, bool replace=false)
 
static void setOverride (const MouseCursor &, bool replace=false)
 
static void setOverride (MouseCursor::Shape, bool replace=false)
 

Protected Member Functions

virtual void restoreInternal ()=0
 
virtual void setOverrideCursor (const MouseCursor &, bool replace)=0
 
virtual void setOverrideFile (const char *filenm, int hotx, int hoty, bool replace)=0
 
virtual void setOverrideShape (MouseCursor::Shape, bool replace)=0
 

Static Protected Attributes

static MouseCursorManagermgr_
 

Detailed Description

Sets another cursor for current application.

Example:

calculateHugeMandelbrot(); // lunch time...
static void restoreOverride()
static void setOverride(MouseCursor::Shape, bool replace=false)
@ Wait
hourglass/watch
Definition: mousecursor.h:37

Application cursors are stored on an internal stack. setOverride() pushes the cursor onto the stack, and restoreOverride() pops the active cursor off the stack. Every setOverride() must eventually be followed by a corresponding restoreOverride(), otherwise the stack will never be emptied.

If replace is true, the new cursor will replace the last overridecw cursor (the stack keeps its depth). If replace is FALSE, the new cursor is pushed onto the top of the stack.

<>

Constructor & Destructor Documentation

◆ ~MouseCursorManager()

virtual MouseCursorManager::~MouseCursorManager ( )
inlinevirtual

Member Function Documentation

◆ mgr()

static MouseCursorManager* MouseCursorManager::mgr ( )
static

◆ restoreInternal()

virtual void MouseCursorManager::restoreInternal ( )
protectedpure virtual

Implemented in uiCursorManager.

◆ restoreOverride()

static void MouseCursorManager::restoreOverride ( )
static

◆ setMgr()

static void MouseCursorManager::setMgr ( MouseCursorManager )
static
Note
I will not manage manager

◆ setOverride() [1/3]

static void MouseCursorManager::setOverride ( const char *  filenm,
int  hotx = -1,
int  hoty = -1,
bool  replace = false 
)
static

◆ setOverride() [2/3]

static void MouseCursorManager::setOverride ( const MouseCursor ,
bool  replace = false 
)
static

◆ setOverride() [3/3]

static void MouseCursorManager::setOverride ( MouseCursor::Shape  ,
bool  replace = false 
)
static

◆ setOverrideCursor()

virtual void MouseCursorManager::setOverrideCursor ( const MouseCursor ,
bool  replace 
)
protectedpure virtual

Implemented in uiCursorManager.

◆ setOverrideFile()

virtual void MouseCursorManager::setOverrideFile ( const char *  filenm,
int  hotx,
int  hoty,
bool  replace 
)
protectedpure virtual

Implemented in uiCursorManager.

◆ setOverrideShape()

virtual void MouseCursorManager::setOverrideShape ( MouseCursor::Shape  ,
bool  replace 
)
protectedpure virtual

Implemented in uiCursorManager.

Member Data Documentation

◆ mgr_

MouseCursorManager* MouseCursorManager::mgr_
staticprotected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022