#include "wx/stubs/cursor.h"
#endif
+#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;
+};
#endif
// _WX_CURSOR_H_BASE_
wxGTK -a wxWindows !wxWindows/docs/latex \
- !wxWindows/docs/msw !wxWindows/docs/motif wxWindows/include/wx \
+ !wxWindows/docs/msw !wxWindows/docs/motif \
!wxWindows/include/wx/msw !wxWindows/include/wx/motif !wxWindows/include/wx/qt \
!wxWindows/include/wx/stubs !wxWindows/src/msw !wxWindows/src/qt !wxWindows/src/motif \
!wxWindows/include/wx/mac wxWindows/src/jpeg \
- !wxWindows/src/stubs wxWindows/src/gdk_imlib wxWindows/src/generic wxWindows/src/common \
- wxWindows/src/png wxWindows/src/zlib wxWindows/src/gtk wxWindows/src/unix \
- wxWindows/lib wxWindows/src/gtk.inc wxWindows/setup \
- wxWindows/configure.in wxWindows/configure wxWindows/config.sub \
- wxWindows/config.guess wxWindows/wx-config.in wxWindows/src/Makefile wxWindows/src/Makefile.in \
- !wxWindows/misc !wxWindows/user !wxWindows/samples !wxWindows/utils
+ !wxWindows/src/stubs !wxWindows/misc !wxWindows/user !wxWindows/samples !wxWindows/utils
wxQt -a wxWindows/Makefile wxWindows/install/unix wxWindows/install-sh \
wxWindows/template.mak wxWindows/docs !wxWindows/docs/latex !wxWindows/docs/msw \
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "wx/gtk/win_gtk.h"
+#include "wx/cursor.h"
//-----------------------------------------------------------------------------
// idle system
return GetReturnCode();
}
+ wxBusyCursorSuspender cs; // temporarily suppress the busy cursor
+
Show( TRUE );
m_modalShowing = TRUE;
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "wx/gtk/win_gtk.h"
+#include "wx/cursor.h"
//-----------------------------------------------------------------------------
// idle system
return GetReturnCode();
}
+ wxBusyCursorSuspender cs; // temporarily suppress the busy cursor
+
Show( TRUE );
m_modalShowing = TRUE;