Include wx/math.h according to precompiled headers of wx/wx.h (with other minor cleaning).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-06-15 17:58:49 +00:00
parent 0d1c8f39ba
commit 18680f8651
46 changed files with 238 additions and 237 deletions

View File

@@ -26,6 +26,7 @@
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/stream.h" #include "wx/stream.h"
#include "wx/memory.h" #include "wx/memory.h"
#include "wx/math.h"
#if wxUSE_GUI #if wxUSE_GUI

View File

@@ -15,6 +15,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/log.h" #include "wx/log.h"
#include "wx/math.h" //math constants
#endif //WX_PRECOMP #endif //WX_PRECOMP
#include "wx/cocoa/autorelease.h" #include "wx/cocoa/autorelease.h"
@@ -30,7 +31,6 @@
#import <AppKit/NSTypesetter.h> #import <AppKit/NSTypesetter.h>
#import <AppKit/NSImage.h> #import <AppKit/NSImage.h>
#include "wx/math.h" //math constants
#include "wx/listimpl.cpp" #include "wx/listimpl.cpp"
WX_DEFINE_LIST(wxCocoaDCStack); WX_DEFINE_LIST(wxCocoaDCStack);

View File

@@ -32,12 +32,12 @@
#include "wx/app.h" #include "wx/app.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/arrstr.h" #include "wx/arrstr.h"
#include "wx/math.h"
#endif //WX_PRECOMP #endif //WX_PRECOMP
#if wxUSE_CONFIG && ((wxUSE_FILE && wxUSE_TEXTFILE) || wxUSE_CONFIG_NATIVE) #if wxUSE_CONFIG && ((wxUSE_FILE && wxUSE_TEXTFILE) || wxUSE_CONFIG_NATIVE)
#include "wx/file.h" #include "wx/file.h"
#include "wx/math.h"
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h> #include <ctype.h>

View File

@@ -19,7 +19,10 @@
#if wxUSE_STREAMS #if wxUSE_STREAMS
#include "wx/datstrm.h" #include "wx/datstrm.h"
#ifndef WX_PRECOMP
#include "wx/math.h" #include "wx/math.h"
#endif //WX_PRECOMP
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// wxDataInputStream // wxDataInputStream

View File

@@ -25,7 +25,10 @@
#endif #endif
#include "wx/dc.h" #include "wx/dc.h"
#ifndef WX_PRECOMP
#include "wx/math.h" #include "wx/math.h"
#endif
// bool wxDCBase::sm_cacheing = false; // bool wxDCBase::sm_cacheing = false;
@@ -414,7 +417,7 @@ bool wxDCBase::DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths)
{ {
int totalWidth = 0; int totalWidth = 0;
const size_t len = text.Length(); const size_t len = text.length();
widths.Empty(); widths.Empty();
widths.Add(0, len); widths.Add(0, len);

View File

@@ -24,13 +24,13 @@
#include "wx/hash.h" #include "wx/hash.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/math.h"
#endif #endif
#include "wx/filefn.h" #include "wx/filefn.h"
#include "wx/wfstream.h" #include "wx/wfstream.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/module.h" #include "wx/module.h"
#include "wx/math.h"
#if wxUSE_XPM #if wxUSE_XPM
#include "wx/xpmdecod.h" #include "wx/xpmdecod.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: wx/longlong.cpp // Name: src/common/longlong.cpp
// Purpose: implementation of wxLongLongNative // Purpose: implementation of wxLongLongNative
// Author: Jeffrey C. Ollie <jeff@ollie.clive.ia.us>, Vadim Zeitlin // Author: Jeffrey C. Ollie <jeff@ollie.clive.ia.us>, Vadim Zeitlin
// Remarks: this class is not public in wxWidgets 2.0! It is intentionally // Remarks: this class is not public in wxWidgets 2.0! It is intentionally
@@ -22,8 +22,12 @@
#endif #endif
#if wxUSE_LONGLONG #if wxUSE_LONGLONG
#include "wx/longlong.h" #include "wx/longlong.h"
#ifndef WX_PRECOMP
#include "wx/math.h" // for fabs() #include "wx/math.h" // for fabs()
#endif
#if wxUSE_STREAMS #if wxUSE_STREAMS
#include "wx/txtstrm.h" #include "wx/txtstrm.h"
@@ -1257,7 +1261,7 @@ WXDLLIMPEXP_BASE class wxTextInputStream &operator>>(class wxTextInputStream &o,
wxString s = o.ReadWord(); wxString s = o.ReadWord();
ll = wxULongLong(0l, 0l); ll = wxULongLong(0l, 0l);
size_t length = s.Length(); size_t length = s.length();
size_t idx = 0; size_t idx = 0;
wxChar ch = READ_STRING_CHAR(s, idx, length); wxChar ch = READ_STRING_CHAR(s, idx, length);
@@ -1282,7 +1286,7 @@ WXDLLIMPEXP_BASE class wxTextInputStream &operator>>(class wxTextInputStream &o,
wxString s = o.ReadWord(); wxString s = o.ReadWord();
ll = wxLongLong(0l, 0l); ll = wxLongLong(0l, 0l);
size_t length = s.Length(); size_t length = s.length();
size_t idx = 0; size_t idx = 0;
wxChar ch = READ_STRING_CHAR(s, idx, length); wxChar ch = READ_STRING_CHAR(s, idx, length);

View File

@@ -19,12 +19,12 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/matrix.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/math.h" #include "wx/math.h"
#endif #endif
#include "wx/matrix.h"
static const double pi = M_PI; static const double pi = M_PI;
wxTransformMatrix::wxTransformMatrix(void) wxTransformMatrix::wxTransformMatrix(void)

View File

@@ -20,6 +20,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/string.h" #include "wx/string.h"
#include "wx/math.h"
#if wxUSE_STREAMS #if wxUSE_STREAMS
#include "wx/stream.h" #include "wx/stream.h"
#endif #endif
@@ -44,7 +45,6 @@ using namespace std ;
#include "wx/string.h" #include "wx/string.h"
#include "wx/tokenzr.h" #include "wx/tokenzr.h"
#include "wx/math.h"
IMPLEMENT_ABSTRACT_CLASS(wxVariantData, wxObject) IMPLEMENT_ABSTRACT_CLASS(wxVariantData, wxObject)

View File

@@ -25,6 +25,7 @@
#include "wx/app.h" #include "wx/app.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/math.h"
#endif // WX_PRECOMP #endif // WX_PRECOMP
#include "wx/image.h" #include "wx/image.h"
@@ -32,7 +33,6 @@
#include "wx/generic/prntdlgg.h" #include "wx/generic/prntdlgg.h"
#include "wx/paper.h" #include "wx/paper.h"
#include "wx/filefn.h" #include "wx/filefn.h"
#include "wx/math.h"
#include "wx/stdpaths.h" #include "wx/stdpaths.h"
WXDLLIMPEXP_DATA_CORE(int) wxPageNumber; WXDLLIMPEXP_DATA_CORE(int) wxPageNumber;

View File

@@ -50,11 +50,11 @@
#include "wx/dcscreen.h" #include "wx/dcscreen.h"
#include "wx/textctrl.h" #include "wx/textctrl.h"
#include "wx/listbox.h" #include "wx/listbox.h"
#include "wx/math.h"
#endif #endif
#include "wx/selstore.h" #include "wx/selstore.h"
#include "wx/renderer.h" #include "wx/renderer.h"
#include "wx/math.h"
#ifdef __WXMAC__ #ifdef __WXMAC__
#include "wx/mac/private.h" #include "wx/mac/private.h"

View File

@@ -28,9 +28,8 @@
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
#include "wx/dcscreen.h" #include "wx/dcscreen.h"
#endif
#include "wx/math.h" #include "wx/math.h"
#endif
#include <stdlib.h> #include <stdlib.h>

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: tabg.cpp // Name: src/generic/tabg.cpp
// Purpose: Generic tabbed dialogs // Purpose: Generic tabbed dialogs
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -22,13 +22,13 @@
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
#include "wx/math.h"
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include "wx/math.h"
#include "wx/tab.h" #include "wx/tab.h"
#include "wx/listimpl.cpp" #include "wx/listimpl.cpp"

View File

@@ -17,6 +17,7 @@
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/palette.h" #include "wx/palette.h"
#include "wx/icon.h" #include "wx/icon.h"
#include "wx/math.h"
#endif #endif
#include "wx/filefn.h" #include "wx/filefn.h"
@@ -32,8 +33,6 @@
#include <gdk/gdkimage.h> #include <gdk/gdkimage.h>
#include "wx/math.h"
extern void gdk_wx_draw_bitmap (GdkDrawable *drawable, extern void gdk_wx_draw_bitmap (GdkDrawable *drawable,
GdkGC *gc, GdkGC *gc,
GdkDrawable *src, GdkDrawable *src,

View File

@@ -19,6 +19,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/log.h" #include "wx/log.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/math.h" // for floating-point functions
#endif #endif
#include "wx/image.h" #include "wx/image.h"
@@ -28,8 +29,6 @@
#include "wx/gtk/win_gtk.h" #include "wx/gtk/win_gtk.h"
#include "wx/gtk/private.h" #include "wx/gtk/private.h"
#include "wx/math.h" // for floating-point functions
#include <gdk/gdk.h> #include <gdk/gdk.h>
#include <gdk/gdkx.h> #include <gdk/gdkx.h>
#include <gdk/gdkprivate.h> #include <gdk/gdkprivate.h>

View File

@@ -23,9 +23,9 @@
#include "wx/log.h" #include "wx/log.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/icon.h" #include "wx/icon.h"
#include "wx/math.h"
#endif #endif
#include "wx/math.h"
#include "wx/fontutil.h" #include "wx/fontutil.h"
#include "wx/gtk/private.h" #include "wx/gtk/private.h"
#include "wx/module.h" #include "wx/module.h"

View File

@@ -18,16 +18,15 @@
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/panel.h" #include "wx/panel.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/math.h"
#endif #endif
#include "wx/math.h"
#include "wx/strconv.h" #include "wx/strconv.h"
#include "wx/fontutil.h" // for wxNativeFontInfo (GetNativeFontInfo()) #include "wx/fontutil.h" // for wxNativeFontInfo (GetNativeFontInfo())
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <ctype.h> #include <ctype.h>
#include "wx/math.h"
#include "wx/gtk/private.h" #include "wx/gtk/private.h"
#include <gdk/gdkkeysyms.h> #include <gdk/gdkkeysyms.h>

View File

@@ -32,6 +32,7 @@
#include "wx/combobox.h" #include "wx/combobox.h"
#include "wx/layout.h" #include "wx/layout.h"
#include "wx/statusbr.h" #include "wx/statusbr.h"
#include "wx/math.h"
#endif #endif
#include "wx/module.h" #include "wx/module.h"
@@ -54,7 +55,6 @@
#include "wx/thread.h" #include "wx/thread.h"
#endif #endif
#include "wx/math.h"
#include <ctype.h> #include <ctype.h>
// FIXME: Due to a hack we use GtkCombo in here, which is deprecated since gtk2.3.0 // FIXME: Due to a hack we use GtkCombo in here, which is deprecated since gtk2.3.0

View File

@@ -17,6 +17,7 @@
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/palette.h" #include "wx/palette.h"
#include "wx/icon.h" #include "wx/icon.h"
#include "wx/math.h"
#endif // WX_PRECOMP #endif // WX_PRECOMP
#include "wx/filefn.h" #include "wx/filefn.h"
@@ -28,8 +29,6 @@
#include <gdk/gdkrgb.h> #include <gdk/gdkrgb.h>
#include "wx/math.h"
extern extern
void gdk_wx_draw_bitmap (GdkDrawable *drawable, void gdk_wx_draw_bitmap (GdkDrawable *drawable,
GdkGC *gc, GdkGC *gc,

View File

@@ -19,6 +19,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/log.h" #include "wx/log.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/math.h" // for floating-point functions
#endif #endif
#include "wx/image.h" #include "wx/image.h"
@@ -27,8 +28,6 @@
#include "wx/gtk1/win_gtk.h" #include "wx/gtk1/win_gtk.h"
#include "wx/math.h" // for floating-point functions
#include <gdk/gdk.h> #include <gdk/gdk.h>
#include <gdk/gdkx.h> #include <gdk/gdkx.h>
#include <gdk/gdkprivate.h> #include <gdk/gdkprivate.h>

View File

@@ -16,9 +16,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/math.h"
#endif #endif
#include "wx/math.h"
#include "wx/gtk1/private.h" #include "wx/gtk1/private.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@@ -16,9 +16,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/math.h"
#endif #endif
#include "wx/math.h"
#include "wx/gtk1/private.h" #include "wx/gtk1/private.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@@ -17,9 +17,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/math.h"
#endif #endif
#include "wx/math.h"
#include "wx/gtk1/private.h" #include "wx/gtk1/private.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@@ -18,9 +18,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED #include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
#include "wx/math.h"
#endif #endif
#include "wx/math.h"
#include "wx/gtk1/private.h" #include "wx/gtk1/private.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@@ -18,16 +18,15 @@
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/panel.h" #include "wx/panel.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/math.h"
#endif #endif
#include "wx/math.h"
#include "wx/strconv.h" #include "wx/strconv.h"
#include "wx/fontutil.h" // for wxNativeFontInfo (GetNativeFontInfo()) #include "wx/fontutil.h" // for wxNativeFontInfo (GetNativeFontInfo())
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <ctype.h> #include <ctype.h>
#include "wx/math.h"
#include "wx/gtk1/private.h" #include "wx/gtk1/private.h"
#include <gdk/gdkkeysyms.h> #include <gdk/gdkkeysyms.h>
@@ -458,7 +457,7 @@ void wxTextCtrl::WriteText( const wxString &text )
// resetting the style and appending some more text wouldn't work: if // resetting the style and appending some more text wouldn't work: if
// we don't specify the style explicitly, the old style would be used // we don't specify the style explicitly, the old style would be used
gtk_editable_delete_selection( GTK_EDITABLE(m_text) ); gtk_editable_delete_selection( GTK_EDITABLE(m_text) );
wxGtkTextInsert(m_text, m_defaultStyle, text.c_str(), text.Len()); wxGtkTextInsert(m_text, m_defaultStyle, text.c_str(), text.length());
// we called wxGtkTextInsert with correct font, no need to do anything // we called wxGtkTextInsert with correct font, no need to do anything
// in UpdateFontIfNeeded() any longer // in UpdateFontIfNeeded() any longer
@@ -478,7 +477,7 @@ void wxTextCtrl::WriteText( const wxString &text )
// This moves the cursor pos to behind the inserted text. // This moves the cursor pos to behind the inserted text.
gint len = GET_EDITABLE_POS(m_text); gint len = GET_EDITABLE_POS(m_text);
gtk_editable_insert_text( GTK_EDITABLE(m_text), text.c_str(), text.Len(), &len ); gtk_editable_insert_text( GTK_EDITABLE(m_text), text.c_str(), text.length(), &len );
// Bring entry's cursor uptodate. // Bring entry's cursor uptodate.
gtk_entry_set_position( GTK_ENTRY(m_text), len ); gtk_entry_set_position( GTK_ENTRY(m_text), len );
@@ -542,7 +541,7 @@ bool wxTextCtrl::PositionToXY(long pos, long *x, long *y ) const
wxString text = GetValue(); wxString text = GetValue();
// cast to prevent warning. But pos really should've been unsigned. // cast to prevent warning. But pos really should've been unsigned.
if( (unsigned long)pos > text.Len() ) if( (unsigned long)pos > text.length() )
return false; return false;
*x=0; // First Col *x=0; // First Col

View File

@@ -31,6 +31,7 @@
#include "wx/combobox.h" #include "wx/combobox.h"
#include "wx/layout.h" #include "wx/layout.h"
#include "wx/statusbr.h" #include "wx/statusbr.h"
#include "wx/math.h"
#endif #endif
#include "wx/module.h" #include "wx/module.h"
@@ -53,7 +54,6 @@
#include "wx/thread.h" #include "wx/thread.h"
#endif #endif
#include "wx/math.h"
#include <ctype.h> #include <ctype.h>
#include "wx/gtk1/private.h" #include "wx/gtk1/private.h"

View File

@@ -22,6 +22,7 @@
#include "wx/timer.h" #include "wx/timer.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/math.h"
#endif #endif
#include "wx/html/forcelnk.h" #include "wx/html/forcelnk.h"
@@ -31,7 +32,6 @@
#include "wx/image.h" #include "wx/image.h"
#include "wx/gifdecod.h" #include "wx/gifdecod.h"
#include "wx/artprov.h" #include "wx/artprov.h"
#include "wx/math.h"
#include <float.h> #include <float.h>

View File

@@ -19,10 +19,10 @@
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/toplevel.h" #include "wx/toplevel.h"
#include "wx/math.h"
#endif #endif
#include "wx/region.h" #include "wx/region.h"
#include "wx/math.h"
#include "wx/mac/private.h" #include "wx/mac/private.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@@ -22,9 +22,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/math.h"
#endif #endif
#include "wx/math.h"
#include "wx/mac/uma.h" #include "wx/mac/uma.h"
#include "wx/mac/private/print.h" #include "wx/mac/private/print.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: thread.cpp // Name: src/mac/carbon/mpthread.cpp
// Purpose: wxThread Implementation // Purpose: wxThread Implementation
// Author: Original from Wolfram Gloger/Guilhem Lavaux/Vadim Zeitlin // Author: Original from Wolfram Gloger/Guilhem Lavaux/Vadim Zeitlin
// Modified by: Aj Lavin, Stefan Csomor // Modified by: Aj Lavin, Stefan Csomor
@@ -21,12 +21,12 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_THREADS
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/wx.h" #include "wx/wx.h"
#endif #endif
#if wxUSE_THREADS
#include "wx/module.h" #include "wx/module.h"
#include "wx/thread.h" #include "wx/thread.h"
@@ -36,7 +36,6 @@
#else #else
#include <DriverServices.h> #include <DriverServices.h>
#include <Multiprocessing.h> #include <Multiprocessing.h>
#include "wx/math.h"
#endif #endif
#include "wx/mac/uma.h" #include "wx/mac/uma.h"
#endif #endif
@@ -131,9 +130,9 @@ static bool wxMacMPThreadsInitVerify()
if ( !hasThreadManager ) if ( !hasThreadManager )
{ {
wxMessageBox( wxT("Error") , wxT("MP Thread Support is not available on this System" ), wxOK ) ; wxMessageBox( wxT("Error") , wxT("MP Thread Support is not available on this System" ), wxOK ) ;
return FALSE ; return false ;
} }
return TRUE ; return true ;
} }
#if 0 #if 0
@@ -718,14 +717,14 @@ public:
m_prio = WXTHREAD_DEFAULT_PRIORITY; m_prio = WXTHREAD_DEFAULT_PRIORITY;
m_notifyQueueId = kInvalidID; m_notifyQueueId = kInvalidID;
m_exitcode = 0; m_exitcode = 0;
m_cancelled = FALSE ; m_cancelled = false ;
// set to TRUE only when the thread starts waiting on m_semSuspend // set to true only when the thread starts waiting on m_semSuspend
m_isPaused = FALSE; m_isPaused = false;
// defaults for joinable threads // defaults for joinable threads
m_shouldBeJoined = TRUE; m_shouldBeJoined = true;
m_isDetached = FALSE; m_isDetached = false;
} }
~wxThreadInternal() ~wxThreadInternal()
{ {
@@ -765,7 +764,7 @@ public:
// Get the ID of this thread's underlying MP Services task. // Get the ID of this thread's underlying MP Services task.
MPTaskID GetId() const { return m_tid; } MPTaskID GetId() const { return m_tid; }
void SetCancelFlag() { m_cancelled = TRUE; } void SetCancelFlag() { m_cancelled = true; }
bool WasCancelled() const { return m_cancelled; } bool WasCancelled() const { return m_cancelled; }
// exit code // exit code
void SetExitCode(wxThread::ExitCode exitcode) { m_exitcode = exitcode; } void SetExitCode(wxThread::ExitCode exitcode) { m_exitcode = exitcode; }
@@ -780,8 +779,8 @@ public:
{ {
wxCriticalSectionLocker lock(m_csJoinFlag); wxCriticalSectionLocker lock(m_csJoinFlag);
m_shouldBeJoined = FALSE; m_shouldBeJoined = false;
m_isDetached = TRUE; m_isDetached = true;
} }
private: private:
@@ -978,7 +977,7 @@ void wxThreadInternal::Wait()
// but we don't need this here // but we don't need this here
m_exitcode = rc; m_exitcode = rc;
m_shouldBeJoined = FALSE; m_shouldBeJoined = false;
} }
} }
@@ -1398,10 +1397,10 @@ bool wxThread::IsAlive() const
{ {
case STATE_RUNNING: case STATE_RUNNING:
case STATE_PAUSED: case STATE_PAUSED:
return TRUE; return true;
default: default:
return FALSE; return false;
} }
} }
@@ -1432,7 +1431,7 @@ bool wxThreadModule::OnInit()
{ {
if ( !wxMacMPThreadsInitVerify() ) if ( !wxMacMPThreadsInitVerify() )
{ {
return FALSE ; return false ;
} }
verify_noerr( MPAllocateTaskStorageIndex( &gs_tlsForWXThread ) ) ; verify_noerr( MPAllocateTaskStorageIndex( &gs_tlsForWXThread ) ) ;
@@ -1446,7 +1445,7 @@ bool wxThreadModule::OnInit()
gs_critsectGui = new wxCriticalSection(); gs_critsectGui = new wxCriticalSection();
gs_critsectGui->Enter(); gs_critsectGui->Enter();
return TRUE; return true;
} }
void wxThreadModule::OnExit() void wxThreadModule::OnExit()

View File

@@ -24,9 +24,9 @@
#include "wx/app.h" #include "wx/app.h"
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/dcprint.h" #include "wx/dcprint.h"
#include "wx/math.h"
#endif #endif
#include "wx/math.h"
#include "wx/mac/uma.h" #include "wx/mac/uma.h"
#include "wx/mac/printmac.h" #include "wx/mac/printmac.h"

View File

@@ -31,7 +31,6 @@
#else #else
#include <DriverServices.h> #include <DriverServices.h>
#include <Multiprocessing.h> #include <Multiprocessing.h>
#include "wx/math.h"
#endif #endif
#include "wx/mac/uma.h" #include "wx/mac/uma.h"

View File

@@ -17,10 +17,10 @@
#include "wx/window.h" #include "wx/window.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/toplevel.h" #include "wx/toplevel.h"
#include "wx/math.h"
#endif #endif
#include "wx/region.h" #include "wx/region.h"
#include "wx/math.h"
#include "wx/mac/private.h" #include "wx/mac/private.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@@ -20,9 +20,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/math.h"
#endif #endif
#include "wx/math.h"
#include "wx/mac/uma.h" #include "wx/mac/uma.h"
#include "wx/mac/private/print.h" #include "wx/mac/private/print.h"

View File

@@ -19,6 +19,10 @@
#include "wx/motif/bmpmotif.h" #include "wx/motif/bmpmotif.h"
#ifndef WX_PRECOMP
#include "wx/math.h"
#endif
#ifdef __VMS__ #ifdef __VMS__
#pragma message disable nosimpint #pragma message disable nosimpint
#endif #endif
@@ -33,8 +37,6 @@
#include <X11/xpm.h> #include <X11/xpm.h>
#endif #endif
#include "wx/math.h"
Pixmap XCreateInsensitivePixmap( Display *display, Pixmap pixmap ); Pixmap XCreateInsensitivePixmap( Display *display, Pixmap pixmap );
static inline wxCharBuffer GetCacheImageName(WXImage image) static inline wxCharBuffer GetCacheImageName(WXImage image)

View File

@@ -46,10 +46,10 @@
#include "wx/app.h" #include "wx/app.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/math.h"
#endif #endif
#include "wx/image.h" #include "wx/image.h"
#include "wx/math.h"
#ifdef __VMS__ #ifdef __VMS__
#pragma message disable nosimpint #pragma message disable nosimpint

View File

@@ -35,10 +35,10 @@
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/cmndata.h" #include "wx/cmndata.h"
#include "wx/math.h"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/math.h"
#include "wx/msw/wrapcdlg.h" #include "wx/msw/wrapcdlg.h"
#include <stdlib.h> #include <stdlib.h>

View File

@@ -33,6 +33,7 @@
#include "wx/log.h" #include "wx/log.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/math.h"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"
@@ -43,7 +44,6 @@
#include "wx/printdlg.h" #include "wx/printdlg.h"
#include "wx/msw/printdlg.h" #include "wx/msw/printdlg.h"
#include "wx/math.h"
#include "wx/msw/wrapcdlg.h" #include "wx/msw/wrapcdlg.h"
#ifndef __WIN32__ #ifndef __WIN32__

View File

@@ -35,6 +35,7 @@
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/math.h"
#endif #endif
#include "wx/msw/wrapcdlg.h" #include "wx/msw/wrapcdlg.h"
@@ -44,7 +45,6 @@
#include "wx/filename.h" #include "wx/filename.h"
#include "wx/tokenzr.h" #include "wx/tokenzr.h"
#include "wx/math.h"
#include "wx/msw/missing.h" #include "wx/msw/missing.h"

View File

@@ -33,12 +33,11 @@
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/cmndata.h" #include "wx/cmndata.h"
#include "wx/math.h"
#endif #endif
#include "wx/msw/wrapcdlg.h" #include "wx/msw/wrapcdlg.h"
#include "wx/math.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -38,9 +38,9 @@
#include "wx/log.h" #include "wx/log.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
#include "wx/timer.h" #include "wx/timer.h"
#include "wx/math.h" // log10 & pow
#endif #endif
#include "wx/math.h" // log10 & pow
#include "wx/msw/private.h" // user info and wndproc setting/getting #include "wx/msw/private.h" // user info and wndproc setting/getting
#include "wx/dynlib.h" #include "wx/dynlib.h"

View File

@@ -64,9 +64,9 @@
#include "wx/log.h" #include "wx/log.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
#include "wx/timer.h" #include "wx/timer.h"
#include "wx/math.h" // log10 & pow
#endif #endif
#include "wx/math.h" // log10 & pow
#include "wx/msw/private.h" // user info and wndproc setting/getting #include "wx/msw/private.h" // user info and wndproc setting/getting
#include "wx/dynlib.h" #include "wx/dynlib.h"
#include "wx/stopwatch.h" #include "wx/stopwatch.h"

View File

@@ -25,9 +25,8 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/dcclient.h" #include "wx/dcclient.h"
#endif
#include "wx/math.h" #include "wx/math.h"
#endif
// I don't know why members of tagVARIANT aren't found when compiling // I don't know why members of tagVARIANT aren't found when compiling
// with Wine // with Wine

View File

@@ -22,13 +22,13 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/log.h" #include "wx/log.h"
#include "wx/math.h"
#endif #endif
#define _FORCENAMELESSUNION #define _FORCENAMELESSUNION
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/msw/ole/oleutils.h" #include "wx/msw/ole/oleutils.h"
#include "wx/msw/ole/automtn.h" #include "wx/msw/ole/automtn.h"
#include "wx/math.h"
#ifdef __WXWINCE__ #ifdef __WXWINCE__
#include "wx/msw/wince/time.h" #include "wx/msw/wince/time.h"

View File

@@ -19,6 +19,7 @@
#include "wx/app.h" #include "wx/app.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/icon.h" #include "wx/icon.h"
#include "wx/math.h"
#endif #endif
#include "wx/image.h" #include "wx/image.h"
@@ -42,7 +43,6 @@ bool wxGetImageFromDrawable(GR_DRAW_ID drawable, int srcX, int srcY, int width,
#include "wx/wfstream.h" #include "wx/wfstream.h"
#endif #endif
#endif #endif
#include "wx/math.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// wxMask // wxMask

View File

@@ -18,6 +18,7 @@
#include "wx/app.h" #include "wx/app.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/math.h"
#endif #endif
#include "wx/image.h" #include "wx/image.h"
@@ -26,8 +27,6 @@
#include "wx/x11/private.h" #include "wx/x11/private.h"
#include "wx/math.h"
#if wxUSE_UNICODE #if wxUSE_UNICODE
#include "glib.h" #include "glib.h"
#include "pango/pangox.h" #include "pango/pangox.h"
@@ -1594,7 +1593,7 @@ void wxWindowDC::DoDrawText( const wxString &text, wxCoord x, wxCoord y )
#endif #endif
{ {
XDrawString( (Display*) m_display, (Window) m_window, XDrawString( (Display*) m_display, (Window) m_window,
(GC) m_textGC, x, y + XFontStructGetAscent(xfont), text.c_str(), text.Len() ); (GC) m_textGC, x, y + XFontStructGetAscent(xfont), text.c_str(), text.length() );
} }
#if 0 #if 0
@@ -1670,7 +1669,7 @@ void wxWindowDC::DoGetTextExtent( const wxString &string, wxCoord *width, wxCoor
int direction, ascent, descent2; int direction, ascent, descent2;
XCharStruct overall; XCharStruct overall;
XTextExtents( xfont, (char*) string.c_str(), string.Len(), &direction, XTextExtents( xfont, (char*) string.c_str(), string.length(), &direction,
&ascent, &descent2, &overall); &ascent, &descent2, &overall);
if (width) if (width)