13 #include "generalmod.h" 17 namespace OD {
class RGBImage; }
27 virtual ~MouseCursor();
56 SizeVer, SizeHor, SizeBDiag, SizeFDiag, SizeAll,
57 Blank,
SplitV, SplitH, PointingHand, Forbidden,
59 Last = ClosedHand, Bitmap = 24,
NotSet,
65 MouseCursor(
Shape s );
112 static void setOverride(
const MouseCursor&,
bool replace=
false);
113 static void setOverride(
const char* filenm,
int hotx=-1,
int hoty=-1,
115 static void restoreOverride();
118 static MouseCursorManager* mgr();
119 static void setMgr(MouseCursorManager*);
124 virtual void setOverrideCursor(
const MouseCursor&,
bool replace) = 0;
125 virtual void setOverrideFile(
const char* filenm,
126 int hotx,
int hoty,
bool replace) = 0;
127 virtual void restoreInternal() = 0;
130 static MouseCursorManager*
mgr_;
142 MouseCursorChanger(
const char* fnm,
int hotx,
int hoty);
144 ~MouseCursorChanger();
#define mExpClass(module)
Definition: commondefs.h:157
OD::RGBImage * image_
Only used if shape_==Bitmap && filename_ is empty.
Definition: mousecursor.h:74
Definition of a mouse cursor, can be either a predefined shape (from the enum, or a file...
Definition: mousecursor.h:24
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
Shape
Definition: mousecursor.h:55
bool active_
Definition: mousecursor.h:149
Definition: mousecursor.h:58
int hotx_
Definition: mousecursor.h:77
Definition: mousecursor.h:57
virtual ~MouseCursorManager()
Definition: mousecursor.h:109
Shape shape_
Definition: mousecursor.h:70
Definition: mousecursor.h:55
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:60
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
static MouseCursorManager * mgr_
Definition: mousecursor.h:130
Class to automatically change cursor, and change it back automatically when class is running out of s...
Definition: mousecursor.h:139
OpendTect.
Definition: commontypes.h:25
Class for Red, Green, Blue image.
Definition: odimage.h:26
Definition: mousecursor.h:56
Sets another cursor for current application.
Definition: mousecursor.h:105
int hoty_
Definition: mousecursor.h:78
Definition: mousecursor.h:59
BufferString filename_
Only used if shape_==Bitmap.
Definition: mousecursor.h:72