]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/cursor.h
HTTP_PROXY bug (freeze on program startup) should be fixed
[wxWidgets.git] / include / wx / cursor.h
... / ...
CommitLineData
1#ifndef _WX_CURSOR_H_BASE_
2#define _WX_CURSOR_H_BASE_
3
4#if defined(__WXMSW__)
5#include "wx/msw/cursor.h"
6#elif defined(__WXMOTIF__)
7#include "wx/motif/cursor.h"
8#elif defined(__WXGTK__)
9#include "wx/gtk/cursor.h"
10#elif defined(__WXQT__)
11#include "wx/qt/cursor.h"
12#elif defined(__WXMAC__)
13#include "wx/mac/cursor.h"
14#elif defined(__WXPM__)
15#include "wx/os2/cursor.h"
16#elif defined(__WXSTUBS__)
17#include "wx/stubs/cursor.h"
18#endif
19
20#include "wx/utils.h"
21/* This is a small class which can be used by all ports
22 to temporarily suspend the busy cursor. Useful in modal
23 dialogs.
24*/
25class wxBusyCursorSuspender
26{
27public:
28 wxBusyCursorSuspender()
29 {
30 m_wasBusy = wxIsBusy();
31 if(m_wasBusy)
32 wxEndBusyCursor();
33 }
34 ~wxBusyCursorSuspender()
35 {
36 if(m_wasBusy)
37 wxBeginBusyCursor();
38 }
39 private:
40 bool m_wasBusy;
41};
42#endif
43 // _WX_CURSOR_H_BASE_