15 #include "generalmod.h" 19 namespace OD {
class RGBImage; }
29 virtual ~MouseCursor();
58 SizeVer, SizeHor, SizeBDiag, SizeFDiag, SizeAll,
59 Blank,
SplitV, SplitH, PointingHand, Forbidden,
61 Last = ClosedHand, Bitmap = 24,
NotSet,
67 MouseCursor(
Shape s );
114 static void setOverride(
const MouseCursor&,
bool replace=
false);
115 static void setOverride(
const char* filenm,
int hotx=-1,
int hoty=-1,
117 static void restoreOverride();
120 static MouseCursorManager* mgr();
121 static void setMgr(MouseCursorManager*);
126 virtual void setOverrideCursor(
const MouseCursor&,
bool replace) = 0;
127 virtual void setOverrideFile(
const char* filenm,
128 int hotx,
int hoty,
bool replace) = 0;
129 virtual void restoreInternal() = 0;
132 static MouseCursorManager*
mgr_;
144 MouseCursorChanger(
const char* fnm,
int hotx,
int hoty);
146 ~MouseCursorChanger();
#define mExpClass(module)
Definition: commondefs.h:160
OD::RGBImage * image_
Only used if shape_==Bitmap && filename_ is empty.
Definition: mousecursor.h:76
Definition of a mouse cursor, can be either a predefined shape (from the enum, or a file...
Definition: mousecursor.h:26
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
Shape
Definition: mousecursor.h:57
bool active_
Definition: mousecursor.h:151
Definition: mousecursor.h:60
Definition: mousecursor.h:63
int hotx_
Definition: mousecursor.h:79
Definition: mousecursor.h:59
virtual ~MouseCursorManager()
Definition: mousecursor.h:111
Shape shape_
Definition: mousecursor.h:72
Definition: mousecursor.h:57
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
static MouseCursorManager * mgr_
Definition: mousecursor.h:132
Class to automatically change cursor, and change it back automatically when class is running out of s...
Definition: mousecursor.h:141
OpendTect.
Definition: commontypes.h:29
Class for Red, Green, Blue image.
Definition: odimage.h:28
Definition: mousecursor.h:58
Sets another cursor for current application.
Definition: mousecursor.h:107
int hoty_
Definition: mousecursor.h:80
Definition: mousecursor.h:61
BufferString filename_
Only used if shape_==Bitmap.
Definition: mousecursor.h:74