X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a11672a469f036436838911c268cb2f8d5da5bf8..70e45c91bb677a3fe7eb8152f3c89c08cb0b2496:/src/x11/cursor.cpp diff --git a/src/x11/cursor.cpp b/src/x11/cursor.cpp index 55847bb23e..fe53a0a5e9 100644 --- a/src/x11/cursor.cpp +++ b/src/x11/cursor.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "cursor.h" #endif @@ -20,7 +20,10 @@ #include "wx/utils.h" #include "wx/x11/private.h" + +#if !wxUSE_NANOX #include +#endif //----------------------------------------------------------------------------- // wxCursor @@ -64,6 +67,13 @@ wxCursor::wxCursor( int cursorId ) { m_refData = new wxCursorRefData(); +#if wxUSE_NANOX + // TODO Create some standard cursors from bitmaps. + + +#else + // !wxUSE_NANOX + M_CURSORDATA->m_display = wxGlobalDisplay(); wxASSERT_MSG( M_CURSORDATA->m_display, wxT("No display") ); @@ -108,13 +118,14 @@ wxCursor::wxCursor( int cursorId ) } M_CURSORDATA->m_cursor = (WXCursor) XCreateFontCursor( (Display*) M_CURSORDATA->m_display, x_cur ); +#endif } wxCursor::wxCursor(const char bits[], int width, int height, int hotSpotX, int hotSpotY, const char maskBits[], wxColour *fg, wxColour *bg) { - wxFAIL_MSG( "wxCursor creation from bits not yet implemented" ); + wxFAIL_MSG( wxT("wxCursor creation from bits not yet implemented") ); } @@ -126,7 +137,7 @@ wxCursor::wxCursor( const wxCursor &cursor ) #if wxUSE_IMAGE wxCursor::wxCursor( const wxImage & image ) { - wxFAIL_MSG( "wxCursor creation from wxImage not yet implemented" ); + wxFAIL_MSG( wxT("wxCursor creation from wxImage not yet implemented") ); } #endif @@ -192,7 +203,7 @@ void wxEndBusyCursor() gs_savedCursor = wxNullCursor; if (wxTheApp) - wxTheApp->SendIdleEvents(); + wxTheApp->ProcessIdle(); } void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) ) @@ -208,7 +219,7 @@ void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) ) wxSetCursor( wxCursor(wxCURSOR_WATCH) ); if (wxTheApp) - wxTheApp->SendIdleEvents(); + wxTheApp->ProcessIdle(); } bool wxIsBusy()