Include wx/cursor.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: cursor.mm
|
||||
// Name: src/cocoa/cursor.mm
|
||||
// Purpose: wxCursor class for wxCocoa
|
||||
// Author: Ryan Norton
|
||||
// Modified by:
|
||||
// Created: 2004-10-05
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Ryan Norton
|
||||
// Licence: wxWidgets licence
|
||||
// Licence: wxWidgets licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/cursor.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/icon.h"
|
||||
#include "wx/cursor.h"
|
||||
#endif //WX_PRECOMP
|
||||
|
||||
#import <AppKit/NSCursor.h>
|
||||
@@ -187,7 +189,7 @@ NSCursor* wxGetStockCursor( short sIndex )
|
||||
pixelsHigh: 16
|
||||
bitsPerSample: 1
|
||||
samplesPerPixel: 2
|
||||
hasAlpha: YES // Well, more like a mask...
|
||||
hasAlpha: YES // Well, more like a mask...
|
||||
isPlanar: NO
|
||||
colorSpaceName: NSCalibratedWhiteColorSpace // Normal B/W - 0 black 1 white
|
||||
bytesPerRow: 0 // I don't care - figure it out for me :)
|
||||
@@ -219,7 +221,7 @@ NSCursor* wxGetStockCursor( short sIndex )
|
||||
[theImage addRepresentation:theRep];
|
||||
|
||||
//create the new cursor
|
||||
NSCursor* theCursor = [[NSCursor alloc] initWithImage:theImage
|
||||
NSCursor* theCursor = [[NSCursor alloc] initWithImage:theImage
|
||||
hotSpot:NSMakePoint(pCursor->hotspot[1], pCursor->hotspot[0])
|
||||
];
|
||||
|
||||
@@ -250,7 +252,6 @@ wxCursor::wxCursor()
|
||||
wxCursor::wxCursor(const char WXUNUSED(bits)[], int WXUNUSED(width), int WXUNUSED(height),
|
||||
int WXUNUSED(hotSpotX), int WXUNUSED(hotSpotY), const char WXUNUSED(maskBits)[])
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
wxCursor::wxCursor(const wxString& cursor_file, long flags, int hotSpotX, int hotSpotY)
|
||||
@@ -294,7 +295,7 @@ wxCursor::wxCursor(int cursor_type)
|
||||
case wxCURSOR_ARROW:
|
||||
M_CURSORDATA->m_hCursor = [[NSCursor arrowCursor] retain];
|
||||
break;
|
||||
/* TODO:
|
||||
/* TODO:
|
||||
case wxCURSOR_COPY_ARROW:
|
||||
M_CURSORDATA->m_themeCursor = kThemeCopyArrowCursor ;
|
||||
break;
|
||||
@@ -315,7 +316,7 @@ wxCursor::wxCursor(int cursor_type)
|
||||
M_CURSORDATA->m_hCursor = wxGetStockCursor(kwxCursorSizeNESW);
|
||||
}
|
||||
break;
|
||||
/* TODO:
|
||||
/* TODO:
|
||||
case wxCURSOR_SIZEWE:
|
||||
{
|
||||
M_CURSORDATA->m_themeCursor = kThemeResizeLeftRightCursor;
|
||||
@@ -332,7 +333,7 @@ wxCursor::wxCursor(int cursor_type)
|
||||
M_CURSORDATA->m_hCursor = wxGetStockCursor(kwxCursorSize);
|
||||
}
|
||||
break;
|
||||
/* TODO:
|
||||
/* TODO:
|
||||
case wxCURSOR_HAND:
|
||||
{
|
||||
M_CURSORDATA->m_themeCursor = kThemePointingHandCursor;
|
||||
@@ -426,33 +427,32 @@ static int wxBusyCursorCount = 0;
|
||||
// Set the cursor to the busy cursor for all windows
|
||||
void wxBeginBusyCursor(const wxCursor *cursor)
|
||||
{
|
||||
wxBusyCursorCount ++;
|
||||
if (wxBusyCursorCount == 1)
|
||||
{
|
||||
wxBusyCursorCount ++;
|
||||
if (wxBusyCursorCount == 1)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Restore cursor to normal
|
||||
void wxEndBusyCursor()
|
||||
{
|
||||
if (wxBusyCursorCount == 0)
|
||||
return;
|
||||
if (wxBusyCursorCount == 0)
|
||||
return;
|
||||
|
||||
wxBusyCursorCount --;
|
||||
if (wxBusyCursorCount == 0)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
wxBusyCursorCount --;
|
||||
if (wxBusyCursorCount == 0)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
}
|
||||
|
||||
// TRUE if we're between the above two calls
|
||||
// true if we're between the above two calls
|
||||
bool wxIsBusy()
|
||||
{
|
||||
return (wxBusyCursorCount > 0);
|
||||
}
|
||||
|
||||
|
@@ -32,10 +32,10 @@
|
||||
#include "wx/brush.h"
|
||||
#include "wx/palette.h"
|
||||
#include "wx/icon.h"
|
||||
#include "wx/cursor.h"
|
||||
#endif
|
||||
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/hashmap.h"
|
||||
|
@@ -14,10 +14,9 @@
|
||||
#include "wx/object.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/cursor.h"
|
||||
#endif
|
||||
|
||||
#include "wx/cursor.h"
|
||||
|
||||
/* Current cursor, in order to hang on to
|
||||
* cursor handle when setting the cursor globally */
|
||||
wxCursor g_globalCursor;
|
||||
|
@@ -15,9 +15,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/cursor.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/evtloop.h"
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
|
@@ -17,10 +17,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/cursor.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/cursor.h"
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
|
@@ -14,10 +14,9 @@
|
||||
#include "wx/object.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/cursor.h"
|
||||
#endif
|
||||
|
||||
#include "wx/cursor.h"
|
||||
|
||||
/* Current cursor, in order to hang on to
|
||||
* cursor handle when setting the cursor globally */
|
||||
wxCursor g_globalCursor;
|
||||
|
@@ -15,9 +15,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/cursor.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/evtloop.h"
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
|
@@ -17,10 +17,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/cursor.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/cursor.h"
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
@@ -221,7 +220,7 @@ bool wxPopupWindow::Create( wxWindow *parent, int style )
|
||||
gtk_signal_connect (GTK_OBJECT(m_widget), "button_press_event",
|
||||
GTK_SIGNAL_FUNC(gtk_popup_button_press), (gpointer)this );
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxPopupWindow::DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(width), int WXUNUSED(height) )
|
||||
|
@@ -26,10 +26,10 @@
|
||||
#include "wx/brush.h"
|
||||
#include "wx/palette.h"
|
||||
#include "wx/icon.h"
|
||||
#include "wx/cursor.h"
|
||||
#endif
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/module.h"
|
||||
|
@@ -30,10 +30,10 @@
|
||||
#include "wx/brush.h"
|
||||
#include "wx/palette.h"
|
||||
#include "wx/icon.h"
|
||||
#include "wx/cursor.h"
|
||||
#endif
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/module.h"
|
||||
|
@@ -14,7 +14,9 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/cursor.h"
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/cursor.h"
|
||||
#endif
|
||||
|
||||
/* Current cursor, in order to hang on to
|
||||
* cursor handle when setting the cursor globally */
|
||||
|
@@ -24,12 +24,13 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/cursor.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/icon.h"
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/intl.h"
|
||||
#endif
|
||||
|
@@ -12,12 +12,13 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/cursor.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include <stdio.h>
|
||||
#include "wx/list.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/icon.h"
|
||||
#endif
|
||||
|
||||
|
@@ -24,12 +24,13 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/cursor.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/icon.h"
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/intl.h"
|
||||
#endif
|
||||
@@ -110,7 +111,7 @@ wxCursor::~wxCursor()
|
||||
|
||||
bool wxCursor::operator==(const wxCursor& cursor) const
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
wxGDIImageRefData *wxCursor::CreateData() const
|
||||
@@ -130,5 +131,3 @@ const wxCursor *wxGetGlobalCursor()
|
||||
void wxSetCursor(const wxCursor& cursor)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
@@ -29,11 +29,11 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/window.h" // for wxTopLevelWindows
|
||||
#include "wx/cursor.h"
|
||||
#endif
|
||||
|
||||
#include "wx/apptrait.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/cursor.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdarg.h>
|
||||
|
Reference in New Issue
Block a user