projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed helpwin.h/cpp to helpwnd.h/cpp to avoid clash
[wxWidgets.git]
/
src
/
mgl
/
cursor.cpp
diff --git
a/src/mgl/cursor.cpp
b/src/mgl/cursor.cpp
index 0bf7b4ebe2a07e3e455be5aa7fbf80a33e5e58c0..d2334ba0d2aa3d4681881661336cf8dec7fbe8f6 100644
(file)
--- a/
src/mgl/cursor.cpp
+++ b/
src/mgl/cursor.cpp
@@
-1,17
+1,12
@@
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: cursor.cpp
+// Name:
src/mgl/
cursor.cpp
// Purpose:
// Author: Vaclav Slavik
// Id: $Id$
// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
// Purpose:
// Author: Vaclav Slavik
// Id: $Id$
// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
-// Licence: wxWi
dget
s licence
+// Licence: wxWi
ndow
s licence
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "cursor.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
@@
-114,13
+109,12
@@
wxCursor::wxCursor(int cursorId)
case wxCURSOR_NONE:
*this = wxNullCursor;
return;
case wxCURSOR_NONE:
*this = wxNullCursor;
return;
- break;
default:
wxFAIL_MSG(wxT("unsupported cursor type"));
break;
}
default:
wxFAIL_MSG(wxT("unsupported cursor type"));
break;
}
-
+
M_CURSORDATA->m_cursor = new MGLCursor(cursorname);
// if we cannot load arrow cursor, use MGL's default arrow cursor:
M_CURSORDATA->m_cursor = new MGLCursor(cursorname);
// if we cannot load arrow cursor, use MGL's default arrow cursor:
@@
-129,7
+123,7
@@
wxCursor::wxCursor(int cursorId)
delete M_CURSORDATA->m_cursor;
M_CURSORDATA->m_cursor = new MGLCursor(MGL_DEF_CURSOR);
}
delete M_CURSORDATA->m_cursor;
M_CURSORDATA->m_cursor = new MGLCursor(MGL_DEF_CURSOR);
}
-
+
if ( !M_CURSORDATA->m_cursor->valid() )
{
wxLogError(_("Couldn't create cursor."));
if ( !M_CURSORDATA->m_cursor->valid() )
{
wxLogError(_("Couldn't create cursor."));
@@
-138,7
+132,7
@@
wxCursor::wxCursor(int cursorId)
else
{
(*gs_cursorsHash)[cursorId] = *this;
else
{
(*gs_cursorsHash)[cursorId] = *this;
- wxLogTrace(_T("mglcursor"), _T("cursor id %i added to cache (%s)"),
+ wxLogTrace(_T("mglcursor"), _T("cursor id %i added to cache (%s)"),
cursorId, cursorname);
}
}
cursorId, cursorname);
}
}
@@
-155,7
+149,7
@@
wxCursor::wxCursor(const char WXUNUSED(bits)[],
wxCursor::wxCursor(const wxString& cursor_file,
long flags,
wxCursor::wxCursor(const wxString& cursor_file,
long flags,
- int
hotSpotX, int hotSpotY
)
+ int
WXUNUSED(hotSpotX), int WXUNUSED(hotSpotY)
)
{
if ( flags == wxBITMAP_TYPE_CUR || flags == wxBITMAP_TYPE_CUR_RESOURCE )
{
{
if ( flags == wxBITMAP_TYPE_CUR || flags == wxBITMAP_TYPE_CUR_RESOURCE )
{
@@
-231,7
+225,7
@@
void wxSetCursor(const wxCursor& cursor)
{
if ( g_winMng )
MGL_wmSetGlobalCursor(g_winMng, NULL);
{
if ( g_winMng )
MGL_wmSetGlobalCursor(g_winMng, NULL);
- gs_globalCursor = wxNullCursor;
+ gs_globalCursor = wxNullCursor;
}
}
}
}
@@
-290,8
+284,8
@@
bool wxIsBusy()
class wxCursorModule : public wxModule
{
public:
class wxCursorModule : public wxModule
{
public:
- virtual bool OnInit() { return
TRUE
; }
-
+ virtual bool OnInit() { return
true
; }
+
virtual void OnExit()
{
wxDELETE(gs_cursorsHash);
virtual void OnExit()
{
wxDELETE(gs_cursorsHash);