1998-08-14 20:23:28 -04:00
|
|
|
#ifndef _WX_CURSOR_H_BASE_
|
|
|
|
#define _WX_CURSOR_H_BASE_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
1998-07-10 10:15:17 -04:00
|
|
|
#if defined(__WXMSW__)
|
1998-05-20 10:01:55 -04:00
|
|
|
#include "wx/msw/cursor.h"
|
1998-07-10 10:15:17 -04:00
|
|
|
#elif defined(__WXMOTIF__)
|
1998-08-14 20:23:28 -04:00
|
|
|
#include "wx/motif/cursor.h"
|
1998-07-10 10:15:17 -04:00
|
|
|
#elif defined(__WXGTK__)
|
1998-05-20 10:01:55 -04:00
|
|
|
#include "wx/gtk/cursor.h"
|
1998-08-07 16:23:17 -04:00
|
|
|
#elif defined(__WXQT__)
|
|
|
|
#include "wx/qt/cursor.h"
|
1998-08-14 20:23:28 -04:00
|
|
|
#elif defined(__WXMAC__)
|
|
|
|
#include "wx/mac/cursor.h"
|
1999-07-27 23:38:12 -04:00
|
|
|
#elif defined(__WXPM__)
|
|
|
|
#include "wx/os2/cursor.h"
|
1998-08-14 20:23:28 -04:00
|
|
|
#elif defined(__WXSTUBS__)
|
|
|
|
#include "wx/stubs/cursor.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
|
|
|
|
1999-08-12 11:36:50 -04:00
|
|
|
#include "wx/utils.h"
|
|
|
|
/* This is a small class which can be used by all ports
|
|
|
|
to temporarily suspend the busy cursor. Useful in modal
|
|
|
|
dialogs.
|
|
|
|
*/
|
|
|
|
class wxBusyCursorSuspender
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxBusyCursorSuspender()
|
|
|
|
{
|
|
|
|
m_wasBusy = wxIsBusy();
|
|
|
|
if(m_wasBusy)
|
|
|
|
wxEndBusyCursor();
|
|
|
|
}
|
|
|
|
~wxBusyCursorSuspender()
|
|
|
|
{
|
|
|
|
if(m_wasBusy)
|
|
|
|
wxBeginBusyCursor();
|
|
|
|
}
|
|
|
|
private:
|
|
|
|
bool m_wasBusy;
|
|
|
|
};
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
1998-08-14 20:23:28 -04:00
|
|
|
// _WX_CURSOR_H_BASE_
|