OpendTect-6_4  6.4
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...

Public Member Functions

virtual ~MouseCursorManager ()
 

Static Public Member Functions

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

Protected Member Functions

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

Static Protected Attributes

static MouseCursorManagermgr_
 

Detailed Description

Sets another cursor for current application.

Example:

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

virtual MouseCursorManager::~MouseCursorManager ( )
inlinevirtual

Member Function Documentation

static MouseCursorManager* MouseCursorManager::mgr ( )
static
virtual void MouseCursorManager::restoreInternal ( )
protectedpure virtual
static void MouseCursorManager::restoreOverride ( )
static
static void MouseCursorManager::setMgr ( MouseCursorManager )
static
Note
I will not manage manager
static void MouseCursorManager::setOverride ( MouseCursor::Shape  ,
bool  replace = false 
)
static
static void MouseCursorManager::setOverride ( const MouseCursor ,
bool  replace = false 
)
static
static void MouseCursorManager::setOverride ( const char *  filenm,
int  hotx = -1,
int  hoty = -1,
bool  replace = false 
)
static
virtual void MouseCursorManager::setOverrideCursor ( const MouseCursor ,
bool  replace 
)
protectedpure virtual
virtual void MouseCursorManager::setOverrideFile ( const char *  filenm,
int  hotx,
int  hoty,
bool  replace 
)
protectedpure virtual
virtual void MouseCursorManager::setOverrideShape ( MouseCursor::Shape  ,
bool  replace 
)
protectedpure virtual

Member Data Documentation

MouseCursorManager* MouseCursorManager::mgr_
staticprotected

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