added cw6 fixes and patrick's patches
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -167,7 +167,7 @@ enum wxStockCursor
|
|||||||
|
|
||||||
#if defined(__WXMSW__) || defined(__WXPM__)
|
#if defined(__WXMSW__) || defined(__WXPM__)
|
||||||
#define wxBITMAP(name) wxBitmap(#name, wxBITMAP_TYPE_RESOURCE)
|
#define wxBITMAP(name) wxBitmap(#name, wxBITMAP_TYPE_RESOURCE)
|
||||||
#elif defined(__WXGTK__) || defined(__WXMOTIF__)
|
#elif defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
|
||||||
// Initialize from an included XPM
|
// Initialize from an included XPM
|
||||||
#define wxBITMAP(name) wxBitmap( (const char**) name##_xpm )
|
#define wxBITMAP(name) wxBitmap( (const char**) name##_xpm )
|
||||||
#else // other platforms
|
#else // other platforms
|
||||||
|
@@ -31,7 +31,8 @@ typedef struct MacTimerInfo
|
|||||||
class WXDLLEXPORT wxTimer: public wxTimerBase
|
class WXDLLEXPORT wxTimer: public wxTimerBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxTimer();
|
wxTimer() { Init(); }
|
||||||
|
wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) { Init(); }
|
||||||
~wxTimer();
|
~wxTimer();
|
||||||
|
|
||||||
virtual bool Start(int milliseconds = -1,
|
virtual bool Start(int milliseconds = -1,
|
||||||
@@ -41,7 +42,10 @@ public:
|
|||||||
virtual bool IsRunning() const ;
|
virtual bool IsRunning() const ;
|
||||||
|
|
||||||
MacTimerInfo m_info;
|
MacTimerInfo m_info;
|
||||||
|
protected :
|
||||||
|
void Init();
|
||||||
private:
|
private:
|
||||||
|
|
||||||
DECLARE_ABSTRACT_CLASS(wxTimer)
|
DECLARE_ABSTRACT_CLASS(wxTimer)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -12,6 +12,10 @@
|
|||||||
#ifndef _WX_CW__
|
#ifndef _WX_CW__
|
||||||
#define _WX_CW__
|
#define _WX_CW__
|
||||||
|
|
||||||
|
#if __MWERKS__ >= 0x2400
|
||||||
|
#pragma old_argmatch on
|
||||||
|
#endif
|
||||||
|
|
||||||
#if __option(profile)
|
#if __option(profile)
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#if __POWERPC__
|
#if __POWERPC__
|
||||||
|
@@ -6,6 +6,10 @@
|
|||||||
|
|
||||||
#define WX_COMP_INLINE_NO_CLASS // defined if the compiler does not want the classname repeated for inlines within a class definition
|
#define WX_COMP_INLINE_NO_CLASS // defined if the compiler does not want the classname repeated for inlines within a class definition
|
||||||
|
|
||||||
|
#if __MWERKS__ >= 0x2400
|
||||||
|
#pragma old_argmatch on
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (__MWERKS__ < 0x0900) || macintosh
|
#if (__MWERKS__ < 0x0900) || macintosh
|
||||||
#define __MAC__
|
#define __MAC__
|
||||||
#define __WXMAC__
|
#define __WXMAC__
|
||||||
|
@@ -12,6 +12,10 @@
|
|||||||
#ifndef _WX_CW__
|
#ifndef _WX_CW__
|
||||||
#define _WX_CW__
|
#define _WX_CW__
|
||||||
|
|
||||||
|
#if __MWERKS__ >= 0x2400
|
||||||
|
#pragma old_argmatch on
|
||||||
|
#endif
|
||||||
|
|
||||||
#if __option(profile)
|
#if __option(profile)
|
||||||
#error "profiling is not supported in debug versions"
|
#error "profiling is not supported in debug versions"
|
||||||
#else
|
#else
|
||||||
|
@@ -12,6 +12,10 @@
|
|||||||
#ifndef _WX_CW__
|
#ifndef _WX_CW__
|
||||||
#define _WX_CW__
|
#define _WX_CW__
|
||||||
|
|
||||||
|
#if __MWERKS__ >= 0x2400
|
||||||
|
#pragma old_argmatch on
|
||||||
|
#endif
|
||||||
|
|
||||||
#if __option(profile)
|
#if __option(profile)
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#if __POWERPC__
|
#if __POWERPC__
|
||||||
|
@@ -12,6 +12,10 @@
|
|||||||
#ifndef _WX_CW__
|
#ifndef _WX_CW__
|
||||||
#define _WX_CW__
|
#define _WX_CW__
|
||||||
|
|
||||||
|
#if __MWERKS__ >= 0x2400
|
||||||
|
#pragma old_argmatch on
|
||||||
|
#endif
|
||||||
|
|
||||||
#if __option(profile)
|
#if __option(profile)
|
||||||
#error "profiling is not supported in debug versions"
|
#error "profiling is not supported in debug versions"
|
||||||
#else
|
#else
|
||||||
|
@@ -55,6 +55,9 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id,
|
|||||||
|
|
||||||
void wxStaticText::OnDraw( wxDC &dc )
|
void wxStaticText::OnDraw( wxDC &dc )
|
||||||
{
|
{
|
||||||
|
if (m_width <= 0 || m_height <= 0)
|
||||||
|
return;
|
||||||
|
|
||||||
PrepareDC(dc);
|
PrepareDC(dc);
|
||||||
dc.Clear() ;
|
dc.Clear() ;
|
||||||
|
|
||||||
|
@@ -21,13 +21,13 @@ IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject)
|
|||||||
|
|
||||||
static void wxProcessTimer( unsigned long event , void *data ) ;
|
static void wxProcessTimer( unsigned long event , void *data ) ;
|
||||||
|
|
||||||
pascal void MacTimerProc( TMTask * t )
|
static pascal void MacTimerProc( TMTask * t )
|
||||||
{
|
{
|
||||||
MacTimerInfo * tm = (MacTimerInfo*) t ;
|
MacTimerInfo * tm = (MacTimerInfo*) t ;
|
||||||
wxMacAddEvent( tm->m_table , wxProcessTimer, 0 , (void*) tm->m_timer , TRUE ) ;
|
wxMacAddEvent( tm->m_table , wxProcessTimer, 0 , (void*) tm->m_timer , TRUE ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxProcessTimer( unsigned long event , void *data )
|
static void wxProcessTimer( unsigned long event , void *data )
|
||||||
{
|
{
|
||||||
if ( !data )
|
if ( !data )
|
||||||
return ;
|
return ;
|
||||||
@@ -44,7 +44,7 @@ void wxProcessTimer( unsigned long event , void *data )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxTimer::wxTimer()
|
void wxTimer::Init()
|
||||||
{
|
{
|
||||||
m_info.m_task.tmAddr = NULL ;
|
m_info.m_task.tmAddr = NULL ;
|
||||||
m_info.m_task.tmWakeUp = 0 ;
|
m_info.m_task.tmWakeUp = 0 ;
|
||||||
|
@@ -55,6 +55,9 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id,
|
|||||||
|
|
||||||
void wxStaticText::OnDraw( wxDC &dc )
|
void wxStaticText::OnDraw( wxDC &dc )
|
||||||
{
|
{
|
||||||
|
if (m_width <= 0 || m_height <= 0)
|
||||||
|
return;
|
||||||
|
|
||||||
PrepareDC(dc);
|
PrepareDC(dc);
|
||||||
dc.Clear() ;
|
dc.Clear() ;
|
||||||
|
|
||||||
|
@@ -21,13 +21,13 @@ IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject)
|
|||||||
|
|
||||||
static void wxProcessTimer( unsigned long event , void *data ) ;
|
static void wxProcessTimer( unsigned long event , void *data ) ;
|
||||||
|
|
||||||
pascal void MacTimerProc( TMTask * t )
|
static pascal void MacTimerProc( TMTask * t )
|
||||||
{
|
{
|
||||||
MacTimerInfo * tm = (MacTimerInfo*) t ;
|
MacTimerInfo * tm = (MacTimerInfo*) t ;
|
||||||
wxMacAddEvent( tm->m_table , wxProcessTimer, 0 , (void*) tm->m_timer , TRUE ) ;
|
wxMacAddEvent( tm->m_table , wxProcessTimer, 0 , (void*) tm->m_timer , TRUE ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxProcessTimer( unsigned long event , void *data )
|
static void wxProcessTimer( unsigned long event , void *data )
|
||||||
{
|
{
|
||||||
if ( !data )
|
if ( !data )
|
||||||
return ;
|
return ;
|
||||||
@@ -44,7 +44,7 @@ void wxProcessTimer( unsigned long event , void *data )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxTimer::wxTimer()
|
void wxTimer::Init()
|
||||||
{
|
{
|
||||||
m_info.m_task.tmAddr = NULL ;
|
m_info.m_task.tmAddr = NULL ;
|
||||||
m_info.m_task.tmWakeUp = 0 ;
|
m_info.m_task.tmWakeUp = 0 ;
|
||||||
|
Reference in New Issue
Block a user