git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40943
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
107 files changed:
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Purpose: Modules handling
// Author: Wolfram Gloger/adapted by Guilhem Lavaux
// Modified by:
// Purpose: Modules handling
// Author: Wolfram Gloger/adapted by Guilhem Lavaux
// Modified by:
static void DoCleanUpModules(const wxModuleList& modules);
static void DoCleanUpModules(const wxModuleList& modules);
- // module dependencies: contains
+ // module dependencies: contains
wxArrayClassInfo m_dependencies;
// used internally while initiliazing/cleaning up modules
wxArrayClassInfo m_dependencies;
// used internally while initiliazing/cleaning up modules
};
#endif // _WX_MODULE_H_
};
#endif // _WX_MODULE_H_
#include "wx/memory.h"
#include "wx/math.h"
#include "wx/stopwatch.h"
#include "wx/memory.h"
#include "wx/math.h"
#include "wx/stopwatch.h"
#include "wx/dc.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/dc.h"
#include "wx/intl.h"
#include "wx/log.h"
-#include "wx/module.h"
-
#include "wx/cocoa/ObjcPose.h"
#include "wx/cocoa/autorelease.h"
#include "wx/cocoa/mbarman.h"
#include "wx/cocoa/ObjcPose.h"
#include "wx/cocoa/autorelease.h"
#include "wx/cocoa/mbarman.h"
+#include "wx/fontutil.h"
+
#ifndef WX_PRECOMP
#include "wx/hash.h"
#include "wx/utils.h"
#ifndef WX_PRECOMP
#include "wx/hash.h"
#include "wx/utils.h"
-#include "wx/fontutil.h"
#include "wx/fontmap.h"
#include "wx/tokenzr.h"
#include "wx/fontmap.h"
#include "wx/tokenzr.h"
#include "wx/encinfo.h"
#ifdef __WXGTK20__
#include "wx/encinfo.h"
#ifdef __WXGTK20__
+#include "wx/artprov.h"
+
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/log.h"
#include "wx/hashmap.h"
#include "wx/image.h"
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/log.h"
#include "wx/hashmap.h"
#include "wx/image.h"
-#include "wx/artprov.h"
-#include "wx/module.h"
-
// ===========================================================================
// implementation
// ===========================================================================
// ===========================================================================
// implementation
// ===========================================================================
#include "wx/palette.h"
#include "wx/icon.h"
#include "wx/image.h"
#include "wx/palette.h"
#include "wx/icon.h"
#include "wx/image.h"
-#include "wx/module.h"
-
IMPLEMENT_ABSTRACT_CLASS(wxBitmapBase, wxGDIObject)
IMPLEMENT_ABSTRACT_CLASS(wxBitmapHandlerBase,wxObject)
IMPLEMENT_ABSTRACT_CLASS(wxBitmapBase, wxGDIObject)
IMPLEMENT_ABSTRACT_CLASS(wxBitmapHandlerBase,wxObject)
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: common/clipcmn.cpp
+// Name: src/common/clipcmn.cpp
// Purpose: common (to all ports) wxClipboard functions
// Author: Robert Roebling
// Modified by:
// Purpose: common (to all ports) wxClipboard functions
// Author: Robert Roebling
// Modified by:
+#ifndef WX_PRECOMP
+ #include "wx/module.h"
+#endif
static wxClipboard *gs_clipboard = NULL;
static wxClipboard *gs_clipboard = NULL;
#ifndef WX_PRECOMP
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#endif
#include "wx/tipwin.h"
#endif
#include "wx/tipwin.h"
#include "wx/cshelp.h"
// wxUSE_MS_HTML_HELP is not defined under platforms other than MSW
#include "wx/cshelp.h"
// wxUSE_MS_HTML_HELP is not defined under platforms other than MSW
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/stopwatch.h" // for wxGetLocalTimeMillis()
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/stopwatch.h" // for wxGetLocalTimeMillis()
#endif // WX_PRECOMP
#include "wx/thread.h"
#include "wx/tokenzr.h"
#endif // WX_PRECOMP
#include "wx/thread.h"
#include "wx/tokenzr.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#include "wx/window.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#include "wx/window.h"
#endif //WX_PRECOMP
#include "wx/display.h"
#include "wx/display_impl.h"
#endif //WX_PRECOMP
#include "wx/display.h"
#include "wx/display_impl.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/dynload.cpp
// Purpose: Dynamic loading framework
// Author: Ron Lee, David Falkinder, Vadim Zeitlin and a cast of 1000's
// (derived in part from dynlib.cpp (c) 1998 Guilhem Lavaux)
// Purpose: Dynamic loading framework
// Author: Ron Lee, David Falkinder, Vadim Zeitlin and a cast of 1000's
// (derived in part from dynlib.cpp (c) 1998 Guilhem Lavaux)
#include "wx/intl.h"
#include "wx/hash.h"
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/hash.h"
#include "wx/utils.h"
#endif
#include "wx/strconv.h"
#include "wx/dynload.h"
#endif
#include "wx/strconv.h"
#include "wx/dynload.h"
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
}
#endif // wxUSE_DYNAMIC_LOADER
}
#endif // wxUSE_DYNAMIC_LOADER
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/stopwatch.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/stopwatch.h"
#if wxUSE_GUI
#include "wx/control.h"
#if wxUSE_GUI
#include "wx/control.h"
#endif // wxUSE_GUI
#endif
#endif // wxUSE_GUI
#endif
-#include "wx/module.h"
-
// ----------------------------------------------------------------------------
// wxWin macros
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxWin macros
// ----------------------------------------------------------------------------
#ifndef WX_PRECOMP
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#endif
#include "wx/wfstream.h"
#endif
#include "wx/wfstream.h"
#include "wx/mimetype.h"
#include "wx/filename.h"
#include "wx/tokenzr.h"
#include "wx/mimetype.h"
#include "wx/filename.h"
#include "wx/tokenzr.h"
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
-// Name: common/fmapbase.cpp
+// Name: src/common/fmapbase.cpp
// Purpose: wxFontMapperBase class implementation
// Author: Vadim Zeitlin
// Modified by:
// Purpose: wxFontMapperBase class implementation
// Author: Vadim Zeitlin
// Modified by:
#include "wx/app.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/app.h"
#include "wx/log.h"
#include "wx/intl.h"
#endif //WX_PRECOMP
#if defined(__WXMSW__)
#endif //WX_PRECOMP
#if defined(__WXMSW__)
- #include "wx/msw/private.h" // includes windows.h for LOGFONT
- #include "wx/msw/winundef.h"
+ #include "wx/msw/private.h" // includes windows.h for LOGFONT
+ #include "wx/msw/winundef.h"
#endif
#include "wx/fontmap.h"
#include "wx/fmappriv.h"
#include "wx/apptrait.h"
#endif
#include "wx/fontmap.h"
#include "wx/fmappriv.h"
#include "wx/apptrait.h"
// wxMemoryConfig uses wxFileConfig
#if wxUSE_CONFIG && wxUSE_FILECONFIG
// wxMemoryConfig uses wxFileConfig
#if wxUSE_CONFIG && wxUSE_FILECONFIG
void wxFontMapperBase::SetConfigPath(const wxString& prefix)
{
void wxFontMapperBase::SetConfigPath(const wxString& prefix)
{
- wxCHECK_RET( !prefix.IsEmpty() && prefix[0] == wxCONFIG_PATH_SEPARATOR,
+ wxCHECK_RET( !prefix.empty() && prefix[0] == wxCONFIG_PATH_SEPARATOR,
wxT("an absolute path should be given to wxFontMapper::SetConfigPath()") );
m_configRootPath = prefix;
wxT("an absolute path should be given to wxFontMapper::SetConfigPath()") );
m_configRootPath = prefix;
*pathOld = config->GetPath();
wxString path = GetConfigPath();
*pathOld = config->GetPath();
wxString path = GetConfigPath();
- if ( path.IsEmpty() || path.Last() != wxCONFIG_PATH_SEPARATOR )
+ if ( path.empty() || path.Last() != wxCONFIG_PATH_SEPARATOR )
{
path += wxCONFIG_PATH_SEPARATOR;
}
{
path += wxCONFIG_PATH_SEPARATOR;
}
config->SetPath(FONTMAPPER_CHARSET_ALIAS_PATH);
wxString alias = config->Read(charset);
config->SetPath(FONTMAPPER_CHARSET_ALIAS_PATH);
wxString alias = config->Read(charset);
- if ( !alias.IsEmpty() )
{
// yes, we do - use it instead
cs = alias;
{
// yes, we do - use it instead
cs = alias;
}
#endif // wxUSE_FONTMAP
}
#endif // wxUSE_FONTMAP
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/fs_inet.cpp
// Purpose: HTTP and FTP file system
// Author: Vaclav Slavik
// Copyright: (c) 1999 Vaclav Slavik
// Purpose: HTTP and FTP file system
// Author: Vaclav Slavik
// Copyright: (c) 1999 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#ifdef __BORLANDC__
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
#if !wxUSE_SOCKETS
#endif
#if !wxUSE_SOCKETS
#if wxUSE_FILESYSTEM && wxUSE_FS_INET
#ifndef WXPRECOMP
#if wxUSE_FILESYSTEM && wxUSE_FS_INET
#ifndef WXPRECOMP
#endif
#include "wx/wfstream.h"
#include "wx/url.h"
#include "wx/filesys.h"
#include "wx/fs_inet.h"
#endif
#include "wx/wfstream.h"
#include "wx/url.h"
#include "wx/filesys.h"
#include "wx/fs_inet.h"
// ----------------------------------------------------------------------------
// Helper classes
// ----------------------------------------------------------------------------
// Helper classes
#include "wx/log.h"
#include "wx/app.h"
#include "wx/bitmap.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/bitmap.h"
#endif
#include "wx/imagbmp.h"
#include "wx/filefn.h"
#include "wx/wfstream.h"
#include "wx/intl.h"
#endif
#include "wx/imagbmp.h"
#include "wx/filefn.h"
#include "wx/wfstream.h"
#include "wx/intl.h"
#include "wx/quantize.h"
// For memcpy
#include "wx/quantize.h"
// For memcpy
#include "wx/utils.h"
#include "wx/bitmap.h"
#include "wx/math.h"
#include "wx/utils.h"
#include "wx/bitmap.h"
#include "wx/math.h"
#endif
#include "wx/filefn.h"
#include "wx/wfstream.h"
#include "wx/intl.h"
#endif
#include "wx/filefn.h"
#include "wx/wfstream.h"
#include "wx/intl.h"
#if wxUSE_XPM
#include "wx/xpmdecod.h"
#if wxUSE_XPM
#include "wx/xpmdecod.h"
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/bitmap.h"
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/bitmap.h"
#endif
// NB: Some compilers define boolean type in Windows headers
#endif
// NB: Some compilers define boolean type in Windows headers
#include "wx/filefn.h"
#include "wx/wfstream.h"
#include "wx/filefn.h"
#include "wx/wfstream.h"
// For memcpy
#include <string.h>
// For memcpy
#include <string.h>
#include "wx/intl.h"
#include "wx/palette.h"
#include "wx/hash.h"
#include "wx/intl.h"
#include "wx/palette.h"
#include "wx/hash.h"
#endif
#include "wx/imagpcx.h"
#include "wx/wfstream.h"
#endif
#include "wx/imagpcx.h"
#include "wx/wfstream.h"
//-----------------------------------------------------------------------------
// wxPCXHandler
//-----------------------------------------------------------------------------
// wxPCXHandler
#include "wx/log.h"
#include "wx/app.h"
#include "wx/bitmap.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/bitmap.h"
#endif
#include "png.h"
#include "wx/filefn.h"
#include "wx/wfstream.h"
#include "wx/intl.h"
#endif
#include "png.h"
#include "wx/filefn.h"
#include "wx/wfstream.h"
#include "wx/intl.h"
// For memcpy
#include <string.h>
// For memcpy
#include <string.h>
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/bitmap.h"
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/bitmap.h"
}
#include "wx/filefn.h"
#include "wx/wfstream.h"
}
#include "wx/filefn.h"
#include "wx/wfstream.h"
#ifndef TIFFLINKAGEMODE
#if defined(__WATCOMC__) && defined(__WXMGL__)
#ifndef TIFFLINKAGEMODE
#if defined(__WATCOMC__) && defined(__WXMGL__)
#include "wx/log.h"
#include "wx/thread.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/thread.h"
#include "wx/intl.h"
#endif
#include "wx/init.h"
#include "wx/ptr_scpd.h"
#endif
#include "wx/init.h"
#include "wx/ptr_scpd.h"
#include "wx/except.h"
#if defined(__WXMSW__) && defined(__WXDEBUG__)
#include "wx/except.h"
#if defined(__WXMSW__) && defined(__WXDEBUG__)
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/hashmap.h"
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/hashmap.h"
#endif // WX_PRECOMP
#ifndef __WXWINCE__
#endif // WX_PRECOMP
#ifndef __WXWINCE__
#include "wx/file.h"
#include "wx/filename.h"
#include "wx/tokenzr.h"
#include "wx/file.h"
#include "wx/filename.h"
#include "wx/tokenzr.h"
#include "wx/fontmap.h"
#include "wx/encconv.h"
#include "wx/ptr_scpd.h"
#include "wx/fontmap.h"
#include "wx/encconv.h"
#include "wx/ptr_scpd.h"
#include "wx/string.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/string.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/file.h"
#include "wx/iconloc.h"
#include "wx/confbase.h"
#include "wx/file.h"
#include "wx/iconloc.h"
#include "wx/confbase.h"
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/intl.h"
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/intl.h"
#endif
#include "wx/paper.h"
#endif
#include "wx/paper.h"
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
#include "wx/intl.h"
#include "wx/textdlg.h"
#include "wx/sizer.h"
#include "wx/intl.h"
#include "wx/textdlg.h"
#include "wx/sizer.h"
#endif // !WX_PRECOMP
#include "wx/prntbase.h"
#include "wx/printdlg.h"
#include "wx/print.h"
#endif // !WX_PRECOMP
#include "wx/prntbase.h"
#include "wx/printdlg.h"
#include "wx/print.h"
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/protocol.cpp
// Purpose: Implement protocol base class
// Author: Guilhem Lavaux
// Modified by:
// Purpose: Implement protocol base class
// Author: Guilhem Lavaux
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
#if wxUSE_PROTOCOL
#include "wx/protocol/protocol.h"
#endif
#if wxUSE_PROTOCOL
#include "wx/protocol/protocol.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/module.h"
+#endif
+
*ret = 0;
result = wxString::FromAscii( tmp_str );
*ret = 0;
result = wxString::FromAscii( tmp_str );
- result = result.Left(result.Length()-1);
+ result = result.Left(result.length()-1);
size = ret-tmp_str+1;
sock->Unread(&tmp_buf[size], avail-size);
size = ret-tmp_str+1;
sock->Unread(&tmp_buf[size], avail-size);
#endif // wxUSE_SOCKETS
#endif // wxUSE_PROTOCOL
#endif // wxUSE_SOCKETS
#endif // wxUSE_PROTOCOL
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/event.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/event.h"
#endif
#include <stdlib.h>
#endif
#include <stdlib.h>
#include <errno.h>
#include "wx/socket.h"
#include <errno.h>
#include "wx/socket.h"
// --------------------------------------------------------------------------
// macros and constants
// --------------------------------------------------------------------------
// macros and constants
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/timer.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/timer.h"
#endif
#include "wx/apptrait.h"
#endif
#include "wx/apptrait.h"
#include "wx/sckaddr.h"
#include "wx/datetime.h"
#include "wx/sckaddr.h"
#include "wx/datetime.h"
#include "wx/list.h"
#include "wx/string.h"
#include "wx/utils.h"
#include "wx/list.h"
#include "wx/string.h"
#include "wx/utils.h"
-#include "wx/module.h"
-
#include <string.h>
#include <ctype.h>
#include <string.h>
#include <ctype.h>
#include "wx/textdlg.h"
#include "wx/gdicmn.h"
#include "wx/image.h"
#include "wx/textdlg.h"
#include "wx/gdicmn.h"
#include "wx/image.h"
#include "wx/filefn.h"
#include "wx/imaglist.h"
#include "wx/tokenzr.h"
#include "wx/filefn.h"
#include "wx/imaglist.h"
#include "wx/tokenzr.h"
#include "wx/dc.h"
#include "wx/settings.h"
#include "wx/gdicmn.h"
#include "wx/dc.h"
#include "wx/settings.h"
#include "wx/gdicmn.h"
#endif //WX_PRECOMP
#include "wx/splitter.h"
#include "wx/dcmirror.h"
#endif //WX_PRECOMP
#include "wx/splitter.h"
#include "wx/dcmirror.h"
// ----------------------------------------------------------------------------
// wxRendererGeneric: our wxRendererNative implementation
// ----------------------------------------------------------------------------
// wxRendererGeneric: our wxRendererNative implementation
#ifndef WX_PRECOMP
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
-#include "wx/module.h"
-
// ----------------------------------------------------------------------------
// Time input function
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// Time input function
// ----------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/gtk/artstd.cpp
// Purpose: stock wxArtProvider instance with native GTK+ stock icons
// Author: Vaclav Slavik
// Modified by:
// Purpose: stock wxArtProvider instance with native GTK+ stock icons
// Author: Vaclav Slavik
// Modified by:
#if defined(__WXGTK20__) && !defined(__WXUNIVERSAL__)
#include "wx/artprov.h"
#if defined(__WXGTK20__) && !defined(__WXUNIVERSAL__)
#include "wx/artprov.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/module.h"
+#endif
+
#include "wx/gtk/private.h"
#include <gtk/gtk.h>
#include "wx/gtk/private.h"
#include <gtk/gtk.h>
if (size.x > s_sizes[i].x || size.y > s_sizes[i].y)
continue;
if (size.x > s_sizes[i].x || size.y > s_sizes[i].y)
continue;
- unsigned dist = (size.x - s_sizes[i].x) * (size.x - s_sizes[i].x) +
+ unsigned dist = (size.x - s_sizes[i].x) * (size.x - s_sizes[i].x) +
(size.y - s_sizes[i].y) * (size.y - s_sizes[i].y);
if (dist == 0)
return s_sizes[i].icon;
(size.y - s_sizes[i].y) * (size.y - s_sizes[i].y);
if (dist == 0)
return s_sizes[i].icon;
#include "wx/dcmemory.h"
#include "wx/math.h" // for floating-point functions
#include "wx/image.h"
#include "wx/dcmemory.h"
#include "wx/math.h" // for floating-point functions
#include "wx/image.h"
#include "wx/fontutil.h"
#include "wx/gtk/win_gtk.h"
#include "wx/fontutil.h"
#include "wx/gtk/win_gtk.h"
#include "wx/app.h"
#include "wx/frame.h"
#include "wx/colour.h"
#include "wx/app.h"
#include "wx/frame.h"
#include "wx/colour.h"
-#include "wx/module.h"
-
extern "C"
{
#include "gtk/gtk.h"
extern "C"
{
#include "gtk/gtk.h"
#include "wx/icon.h"
#include "wx/math.h"
#include "wx/image.h"
#include "wx/icon.h"
#include "wx/math.h"
#include "wx/image.h"
#endif
#include "wx/fontutil.h"
#include "wx/gtk/private.h"
#endif
#include "wx/fontutil.h"
#include "wx/gtk/private.h"
#include "wx/dynlib.h"
#include <libgnomeprint/gnome-print.h>
#include "wx/dynlib.h"
#include <libgnomeprint/gnome-print.h>
#ifndef WX_PRECOMP
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#endif
#include "wx/mimetype.h"
#include "wx/gtk/private.h"
#endif
#include "wx/mimetype.h"
#include "wx/gtk/private.h"
#include "wx/dynlib.h"
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
#include "wx/dynlib.h"
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: src/gtk/thread.cpp
+// Name: src/gtk/threadno.cpp
// Purpose: Solaris thread support
// Author: Guilhem Lavaux
// Modified by:
// Purpose: Solaris thread support
// Author: Guilhem Lavaux
// Modified by:
#ifndef WX_PRECOMP
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#endif
#include "wx/wx.h"
#endif
#include "wx/wx.h"
bool wxCondition::Wait(wxMutex& WXUNUSED(mutex), unsigned long WXUNUSED(sec),
unsigned long WXUNUSED(nsec))
{
bool wxCondition::Wait(wxMutex& WXUNUSED(mutex), unsigned long WXUNUSED(sec),
unsigned long WXUNUSED(nsec))
{
}
void wxCondition::Signal()
}
void wxCondition::Signal()
bool wxThread::IsMain()
{
bool wxThread::IsMain()
{
}
bool wxThread::IsRunning() const
{
}
bool wxThread::IsRunning() const
{
}
bool wxThread::IsAlive() const
{
}
bool wxThread::IsAlive() const
{
}
void wxThread::SetPriority(int WXUNUSED(prio)) { }
}
void wxThread::SetPriority(int WXUNUSED(prio)) { }
{
wxMainMutex = new wxMutex();
wxMainMutex->Lock();
{
wxMainMutex = new wxMutex();
wxMainMutex->Lock();
}
void wxThreadModule::OnExit()
}
void wxThreadModule::OnExit()
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/utils.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/utils.h"
#endif
#include <stdio.h>
#endif
#include <stdio.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/prctl.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/prctl.h>
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "wx/layout.h"
#include "wx/statusbr.h"
#include "wx/math.h"
#include "wx/layout.h"
#include "wx/statusbr.h"
#include "wx/math.h"
-#include "wx/module.h"
-
#if wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
#endif
#if wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
#endif
m_hasVMT = false;
m_needParent = true;
m_isBeingDeleted = false;
m_hasVMT = false;
m_needParent = true;
m_isBeingDeleted = false;
m_showOnIdle= false;
m_noExpose = false;
m_showOnIdle= false;
m_noExpose = false;
m_showOnIdle = false;
return true;
}
m_showOnIdle = false;
return true;
}
SetBackgroundStyle(GetBackgroundStyle());
m_needsStyleChange = false;
}
SetBackgroundStyle(GetBackgroundStyle());
m_needsStyleChange = false;
}
wxCursor cursor = m_cursor;
if (g_globalCursor.Ok()) cursor = g_globalCursor;
wxCursor cursor = m_cursor;
if (g_globalCursor.Ok()) cursor = g_globalCursor;
m_showOnIdle = true;
gtk_widget_hide( m_widget );
}
m_showOnIdle = true;
gtk_widget_hide( m_widget );
}
/* insert GTK representation */
(*(newParent->m_insertCallback))(newParent, this);
}
/* insert GTK representation */
(*(newParent->m_insertCallback))(newParent, this);
}
if (m_wxwindow)
{
if (!GTK_PIZZA(m_wxwindow)->bin_window) return;
if (m_wxwindow)
{
if (!GTK_PIZZA(m_wxwindow)->bin_window) return;
GdkRectangle gdk_rect,
*p;
if (rect)
GdkRectangle gdk_rect,
*p;
if (rect)
{
gtk_grab_remove( (GtkWidget*) window->GetHandle() );
}
{
gtk_grab_remove( (GtkWidget*) window->GetHandle() );
}
#include "wx/font.h"
#include "wx/gdicmn.h"
#include "wx/image.h"
#include "wx/font.h"
#include "wx/gdicmn.h"
#include "wx/image.h"
#endif
#include "wx/file.h"
#include "wx/filename.h"
#endif
#include "wx/file.h"
#include "wx/filename.h"
#include "wx/thread.h"
#ifdef __WXGPE__
#include "wx/thread.h"
#ifdef __WXGPE__
#include "wx/dcmemory.h"
#include "wx/math.h" // for floating-point functions
#include "wx/image.h"
#include "wx/dcmemory.h"
#include "wx/math.h" // for floating-point functions
#include "wx/image.h"
#include "wx/fontutil.h"
#include "wx/gtk1/win_gtk.h"
#include "wx/fontutil.h"
#include "wx/gtk1/win_gtk.h"
#include "wx/app.h"
#include "wx/frame.h"
#include "wx/colour.h"
#include "wx/app.h"
#include "wx/frame.h"
#include "wx/colour.h"
-#include "wx/module.h"
-
extern "C"
{
#include "gtk/gtk.h"
extern "C"
{
#include "gtk/gtk.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: src/gtk1/thread.cpp
+// Name: src/gtk1/threadno.cpp
// Purpose: Solaris thread support
// Author: Guilhem Lavaux
// Modified by:
// Purpose: Solaris thread support
// Author: Guilhem Lavaux
// Modified by:
#ifndef WX_PRECOMP
#include "wx/wx.h"
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#include "wx/log.h"
-#include "wx/module.h"
-
wxMutex::wxMutex()
{
m_locked = 0;
wxMutex::wxMutex()
{
m_locked = 0;
bool wxCondition::Wait(wxMutex& WXUNUSED(mutex), unsigned long WXUNUSED(sec),
unsigned long WXUNUSED(nsec))
{
bool wxCondition::Wait(wxMutex& WXUNUSED(mutex), unsigned long WXUNUSED(sec),
unsigned long WXUNUSED(nsec))
{
}
void wxCondition::Signal()
}
void wxCondition::Signal()
bool wxThread::IsMain()
{
bool wxThread::IsMain()
{
}
bool wxThread::IsRunning() const
{
}
bool wxThread::IsRunning() const
{
}
bool wxThread::IsAlive() const
{
}
bool wxThread::IsAlive() const
{
}
void wxThread::SetPriority(int WXUNUSED(prio)) { }
}
void wxThread::SetPriority(int WXUNUSED(prio)) { }
{
wxMainMutex = new wxMutex();
wxMainMutex->Lock();
{
wxMainMutex = new wxMutex();
wxMainMutex->Lock();
}
void wxThreadModule::OnExit()
}
void wxThreadModule::OnExit()
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/utils.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/utils.h"
#endif
#include <stdio.h>
#endif
#include <stdio.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/prctl.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/prctl.h>
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "wx/layout.h"
#include "wx/statusbr.h"
#include "wx/math.h"
#include "wx/layout.h"
#include "wx/statusbr.h"
#include "wx/math.h"
-#include "wx/module.h"
-
#if wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
#endif
#if wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
#endif
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/html/chm.cpp
// Purpose: CHM (Help) support for wxHTML
// Author: Markus Sinner
// Copyright: (c) 2003 Herd Software Development
// Purpose: CHM (Help) support for wxHTML
// Author: Markus Sinner
// Copyright: (c) 2003 Herd Software Development
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
#if wxUSE_LIBMSPACK
#endif
#if wxUSE_LIBMSPACK
#include <mspack.h>
#ifndef WXPRECOMP
#include <mspack.h>
#ifndef WXPRECOMP
-#include "wx/intl.h"
-#include "wx/log.h"
+ #include "wx/intl.h"
+ #include "wx/log.h"
+ #include "wx/module.h"
#include "wx/filesys.h"
#include "wx/mstream.h"
#include "wx/wfstream.h"
#include "wx/filesys.h"
#include "wx/mstream.h"
#include "wx/wfstream.h"
wxUint32 lcid = wxUINT32_SWAP_ON_BE( dummy ) ;
wxString msg ;
msg.Printf(_T("Language=0x%X\r\n"),lcid) ;
wxUint32 lcid = wxUINT32_SWAP_ON_BE( dummy ) ;
wxString msg ;
msg.Printf(_T("Language=0x%X\r\n"),lcid) ;
- out->Write(msg.c_str() , msg.Length() ) ;
+ out->Write(msg.c_str() , msg.length() ) ;
tmp = "Index File=*.hhk\r\n";
out->Write((const void *) tmp, strlen(tmp));
}
tmp = "Index File=*.hhk\r\n";
out->Write((const void *) tmp, strlen(tmp));
}
// Now copy the Data from the memory
out->SeekO(0, wxFromEnd);
m_size = out->TellO();
// Now copy the Data from the memory
out->SeekO(0, wxFromEnd);
m_size = out->TellO();
#include "wx/colour.h"
#include "wx/dc.h"
#include "wx/settings.h"
#include "wx/colour.h"
#include "wx/dc.h"
#include "wx/settings.h"
#endif
#include "wx/html/htmlcell.h"
#include "wx/html/htmlwin.h"
#endif
#include "wx/html/htmlcell.h"
#include "wx/html/htmlwin.h"
#include "wx/dc.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/dc.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
#endif
#include "wx/print.h"
#endif
#include "wx/print.h"
#include "wx/html/htmprint.h"
#include "wx/wxhtml.h"
#include "wx/wfstream.h"
#include "wx/html/htmprint.h"
#include "wx/wxhtml.h"
#include "wx/wfstream.h"
//--------------------------------------------------------------------------------
//--------------------------------------------------------------------------------
#include "wx/textctrl.h"
#include "wx/memory.h"
#include "wx/gdicmn.h"
#include "wx/textctrl.h"
#include "wx/memory.h"
#include "wx/gdicmn.h"
#include "wx/tooltip.h"
#include "wx/docview.h"
#include "wx/filename.h"
#include "wx/tooltip.h"
#include "wx/docview.h"
#include "wx/filename.h"
// mac
#ifndef __DARWIN__
// mac
#ifndef __DARWIN__
- #if __option(profile)
- #include <profiler.h>
- #endif
+ #if __option(profile)
+ #include <profiler.h>
+ #endif
#endif
// #include "apprsrc.h"
#endif
// #include "apprsrc.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/timer.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/timer.h"
#endif
#include "wx/apptrait.h"
#endif
#include "wx/apptrait.h"
#include "wx/sckaddr.h"
#include "wx/mac/carbon/private.h"
#include "wx/sckaddr.h"
#include "wx/mac/carbon/private.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#include "wx/link.h"
#include "wx/mac/private.h"
#include "wx/link.h"
#include "wx/mac/private.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#include "wx/thread.h"
#ifdef __WXMAC__
#include "wx/thread.h"
#ifdef __WXMAC__
wxMutexError wxMutexInternal::Unlock()
{
wxCHECK_MSG( m_isOk , wxMUTEX_MISC_ERROR , wxT("Invalid Mutex") ) ;
wxMutexError wxMutexInternal::Unlock()
{
wxCHECK_MSG( m_isOk , wxMUTEX_MISC_ERROR , wxT("Invalid Mutex") ) ;
- OSStatus err = MPSignalSemaphore( m_semaphore);
- if ( err)
+ OSStatus err = MPSignalSemaphore( m_semaphore);
+ if ( err)
- wxLogSysError(_("Could not unlock mutex"));
- return wxMUTEX_MISC_ERROR;
+ wxLogSysError(_("Could not unlock mutex"));
+ return wxMUTEX_MISC_ERROR;
}
return wxMUTEX_NO_ERROR;
}
return wxMUTEX_NO_ERROR;
class wxMutexInternal
{
public:
class wxMutexInternal
{
public:
- wxMutexInternal(wxMutexType mutexType) ;
- ~wxMutexInternal() ;
- bool IsOk() const { return m_isOk; }
+ wxMutexInternal(wxMutexType mutexType) ;
+ ~wxMutexInternal() ;
+ bool IsOk() const { return m_isOk; }
- wxMutexError Lock() ;
- wxMutexError TryLock() ;
- wxMutexError Unlock();
+ wxMutexError Lock() ;
+ wxMutexError TryLock() ;
+ wxMutexError Unlock();
private:
MPCriticalRegionID m_critRegion ;
bool m_isOk ;
private:
MPCriticalRegionID m_critRegion ;
bool m_isOk ;
wxMutexInternal::~wxMutexInternal()
{
if ( m_critRegion != kInvalidID )
wxMutexInternal::~wxMutexInternal()
{
if ( m_critRegion != kInvalidID )
- MPDeleteCriticalRegion( m_critRegion);
+ MPDeleteCriticalRegion( m_critRegion);
}
wxMutexError wxMutexInternal::Lock()
{
wxCHECK_MSG( m_isOk , wxMUTEX_MISC_ERROR , wxT("Invalid Mutex") ) ;
}
wxMutexError wxMutexInternal::Lock()
{
wxCHECK_MSG( m_isOk , wxMUTEX_MISC_ERROR , wxT("Invalid Mutex") ) ;
- OSStatus err = MPEnterCriticalRegion( m_critRegion, kDurationForever);
- if ( err)
+ OSStatus err = MPEnterCriticalRegion( m_critRegion, kDurationForever);
+ if ( err)
- wxLogSysError(wxT("Could not lock mutex"));
- return wxMUTEX_MISC_ERROR;
+ wxLogSysError(wxT("Could not lock mutex"));
+ return wxMUTEX_MISC_ERROR;
}
return wxMUTEX_NO_ERROR;
}
return wxMUTEX_NO_ERROR;
wxMutexError wxMutexInternal::TryLock()
{
wxCHECK_MSG( m_isOk , wxMUTEX_MISC_ERROR , wxT("Invalid Mutex") ) ;
wxMutexError wxMutexInternal::TryLock()
{
wxCHECK_MSG( m_isOk , wxMUTEX_MISC_ERROR , wxT("Invalid Mutex") ) ;
- OSStatus err = MPEnterCriticalRegion( m_critRegion, kDurationImmediate);
- if ( err)
+ OSStatus err = MPEnterCriticalRegion( m_critRegion, kDurationImmediate);
+ if ( err)
- if ( err == kMPTimeoutErr)
- {
- return wxMUTEX_BUSY;
- }
- wxLogSysError(wxT("Could not try lock mutex"));
- return wxMUTEX_MISC_ERROR;
+ if ( err == kMPTimeoutErr)
+ {
+ return wxMUTEX_BUSY;
+ }
+ wxLogSysError(wxT("Could not try lock mutex"));
+ return wxMUTEX_MISC_ERROR;
}
return wxMUTEX_NO_ERROR;
}
return wxMUTEX_NO_ERROR;
wxMutexError wxMutexInternal::Unlock()
{
wxCHECK_MSG( m_isOk , wxMUTEX_MISC_ERROR , wxT("Invalid Mutex") ) ;
wxMutexError wxMutexInternal::Unlock()
{
wxCHECK_MSG( m_isOk , wxMUTEX_MISC_ERROR , wxT("Invalid Mutex") ) ;
- OSStatus err = MPExitCriticalRegion( m_critRegion);
- if ( err)
+ OSStatus err = MPExitCriticalRegion( m_critRegion);
+ if ( err)
- wxLogSysError(_("Could not unlock mutex"));
- return wxMUTEX_MISC_ERROR;
+ wxLogSysError(_("Could not unlock mutex"));
+ return wxMUTEX_MISC_ERROR;
}
return wxMUTEX_NO_ERROR;
}
return wxMUTEX_NO_ERROR;
class wxSemaphoreInternal
{
public:
class wxSemaphoreInternal
{
public:
- wxSemaphoreInternal(int initialcount, int maxcount);
- ~wxSemaphoreInternal();
+ wxSemaphoreInternal(int initialcount, int maxcount);
+ ~wxSemaphoreInternal();
- bool IsOk() const { return m_isOk; }
+ bool IsOk() const { return m_isOk; }
- wxSemaError WaitTimeout(unsigned long milliseconds);
+ wxSemaError WaitTimeout(unsigned long milliseconds);
- wxSemaError Wait() { return WaitTimeout( kDurationForever); }
+ wxSemaError Wait() { return WaitTimeout( kDurationForever); }
- wxSemaError TryWait()
- {
- wxSemaError err = WaitTimeout(kDurationImmediate);
- if ( err == wxSEMA_TIMEOUT )
- err = wxSEMA_BUSY ;
- return err ;
- }
- wxSemaError Post();
+ wxSemaError TryWait()
+ {
+ wxSemaError err = WaitTimeout(kDurationImmediate);
+ if ( err == wxSEMA_TIMEOUT )
+ err = wxSEMA_BUSY ;
+ return err ;
+ }
+ wxSemaError Post();
private:
MPSemaphoreID m_semaphore;
private:
MPSemaphoreID m_semaphore;
wxMacMPThreadsInitVerify() ;
m_isOk = false ;
m_semaphore = kInvalidID ;
wxMacMPThreadsInitVerify() ;
m_isOk = false ;
m_semaphore = kInvalidID ;
- // make it practically infinite
- maxcount = INT_MAX;
+ // make it practically infinite
+ maxcount = INT_MAX;
- verify_noerr( MPCreateSemaphore( maxcount, initialcount, & m_semaphore) );
+ verify_noerr( MPCreateSemaphore( maxcount, initialcount, & m_semaphore) );
m_isOk = ( m_semaphore != kInvalidID ) ;
if ( !IsOk() )
m_isOk = ( m_semaphore != kInvalidID ) ;
if ( !IsOk() )
wxSemaphoreInternal::~wxSemaphoreInternal()
{
if( m_semaphore != kInvalidID )
wxSemaphoreInternal::~wxSemaphoreInternal()
{
if( m_semaphore != kInvalidID )
- MPDeleteSemaphore( m_semaphore);
+ MPDeleteSemaphore( m_semaphore);
}
wxSemaError wxSemaphoreInternal::WaitTimeout(unsigned long milliseconds)
{
}
wxSemaError wxSemaphoreInternal::WaitTimeout(unsigned long milliseconds)
{
- OSStatus err = MPWaitOnSemaphore( m_semaphore, milliseconds);
- if ( err)
+ OSStatus err = MPWaitOnSemaphore( m_semaphore, milliseconds);
+ if ( err)
- if ( err == kMPTimeoutErr)
- {
- return wxSEMA_TIMEOUT;
- }
- return wxSEMA_MISC_ERROR;
+ if ( err == kMPTimeoutErr)
+ {
+ return wxSEMA_TIMEOUT;
+ }
+ return wxSEMA_MISC_ERROR;
- return wxSEMA_NO_ERROR;
+ return wxSEMA_NO_ERROR;
}
wxSemaError wxSemaphoreInternal::Post()
{
}
wxSemaError wxSemaphoreInternal::Post()
{
- OSStatus err = MPSignalSemaphore( m_semaphore);
- if ( err)
+ OSStatus err = MPSignalSemaphore( m_semaphore);
+ if ( err)
- return wxSEMA_MISC_ERROR;
+ return wxSEMA_MISC_ERROR;
- return wxSEMA_NO_ERROR;
+ return wxSEMA_NO_ERROR;
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
- wxConditionInternal(wxMutex& mutex)
+ wxConditionInternal(wxMutex& mutex)
- m_semaphore( 0, 1),
- m_gate( 1, 1)
- {
- m_waiters = 0;
- m_signals = 0;
- m_canceled = 0;
- }
+ m_semaphore( 0, 1),
+ m_gate( 1, 1)
+ {
+ m_waiters = 0;
+ m_signals = 0;
+ m_canceled = 0;
+ }
- ~wxConditionInternal()
- {
- }
+ ~wxConditionInternal()
+ {
+ }
- bool IsOk() const { return m_mutex.IsOk() ; }
+ bool IsOk() const { return m_mutex.IsOk() ; }
- wxCondError Wait()
- {
- return WaitTimeout( kDurationForever);
- }
+ wxCondError Wait()
+ {
+ return WaitTimeout( kDurationForever);
+ }
- wxCondError WaitTimeout(unsigned long msectimeout);
+ wxCondError WaitTimeout(unsigned long msectimeout);
- wxCondError Signal()
- {
- return DoSignal( false);
- }
+ wxCondError Signal()
+ {
+ return DoSignal( false);
+ }
- wxCondError Broadcast()
- {
- return DoSignal( true);
- }
+ wxCondError Broadcast()
+ {
+ return DoSignal( true);
+ }
- wxCondError DoSignal( bool signalAll);
+ wxCondError DoSignal( bool signalAll);
- wxMutex& m_mutex;
- wxSemaphoreInternal m_semaphore; // Signals the waiting threads.
- wxSemaphoreInternal m_gate;
- wxCriticalSection m_varSection;
- size_t m_waiters; // Number of threads waiting for a signal.
- size_t m_signals; // Number of signals to send.
- size_t m_canceled; // Number of canceled waiters in m_waiters.
+ wxMutex& m_mutex;
+ wxSemaphoreInternal m_semaphore; // Signals the waiting threads.
+ wxSemaphoreInternal m_gate;
+ wxCriticalSection m_varSection;
+ size_t m_waiters; // Number of threads waiting for a signal.
+ size_t m_signals; // Number of signals to send.
+ size_t m_canceled; // Number of canceled waiters in m_waiters.
#ifndef WX_PRECOMP
#include "wx/wx.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#include "wx/thread.h"
#ifdef __WXMAC__
#include "wx/thread.h"
#ifdef __WXMAC__
#include "wx/textctrl.h"
#include "wx/memory.h"
#include "wx/gdicmn.h"
#include "wx/textctrl.h"
#include "wx/memory.h"
#include "wx/gdicmn.h"
#include "wx/tooltip.h"
#include "wx/docview.h"
#include "wx/filename.h"
#include "wx/tooltip.h"
#include "wx/docview.h"
#include "wx/filename.h"
// mac
#ifndef __DARWIN__
// mac
#ifndef __DARWIN__
- #if __option(profile)
- #include <profiler.h>
- #endif
+ #if __option(profile)
+ #include <profiler.h>
+ #endif
#endif
#include "apprsrc.h"
#endif
#include "apprsrc.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/mac/classic/thread.cpp
// Purpose: wxThread Implementation
// Author: Original from Wolfram Gloger/Guilhem Lavaux/Vadim Zeitlin
// Modified by: Stefan Csomor
// Purpose: wxThread Implementation
// Author: Original from Wolfram Gloger/Guilhem Lavaux/Vadim Zeitlin
// Modified by: Stefan Csomor
#ifndef WX_PRECOMP
#include "wx/wx.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#include "wx/thread.h"
#ifdef __WXMAC__
#include "wx/thread.h"
#ifdef __WXMAC__
// ----------------------------------------------------------------------------
static ThreadID gs_idMainThread = kNoThreadID ;
// ----------------------------------------------------------------------------
static ThreadID gs_idMainThread = kNoThreadID ;
-static bool gs_waitingForThread = FALSE ;
+static bool gs_waitingForThread = false ;
size_t g_numberOfThreads = 0;
// ============================================================================
size_t g_numberOfThreads = 0;
// ============================================================================
if ( err != noErr )
{
wxLogSysError(_("Can't create thread"));
if ( err != noErr )
{
wxLogSysError(_("Can't create thread"));
}
if ( m_priority != WXTHREAD_DEFAULT_PRIORITY )
}
if ( m_priority != WXTHREAD_DEFAULT_PRIORITY )
}
bool wxThreadInternal::Suspend()
}
bool wxThreadInternal::Suspend()
err = ::ThreadEndCritical() ;
wxASSERT( err == noErr ) ;
wxLogSysError(_("Can not suspend thread %x"), m_tid);
err = ::ThreadEndCritical() ;
wxASSERT( err == noErr ) ;
wxLogSysError(_("Can not suspend thread %x"), m_tid);
}
m_state = STATE_PAUSED;
err = ::SetThreadStateEndCritical(m_tid, kStoppedThreadState, kNoThreadID);
}
m_state = STATE_PAUSED;
err = ::SetThreadStateEndCritical(m_tid, kStoppedThreadState, kNoThreadID);
}
bool wxThreadInternal::Resume()
}
bool wxThreadInternal::Resume()
err = ::ThreadEndCritical() ;
wxASSERT( err == noErr ) ;
wxLogSysError(_("Can not resume thread %x"), m_tid);
err = ::ThreadEndCritical() ;
wxASSERT( err == noErr ) ;
wxLogSysError(_("Can not resume thread %x"), m_tid);
}
err = ::SetThreadStateEndCritical(m_tid, kReadyThreadState, kNoThreadID);
}
err = ::SetThreadStateEndCritical(m_tid, kReadyThreadState, kNoThreadID);
err = ::ThreadEndCritical() ;
wxASSERT( err == noErr ) ;
::YieldToAnyThread() ;
err = ::ThreadEndCritical() ;
wxASSERT( err == noErr ) ;
::YieldToAnyThread() ;
double mssleep = milliseconds * 1000 ;
double msstart, msnow ;
msstart = (start.hi * 4294967296.0 + start.lo) ;
double mssleep = milliseconds * 1000 ;
double msstart, msnow ;
msstart = (start.hi * 4294967296.0 + start.lo) ;
// Delete() is always safe to call, so consider all possible states
// has the thread started to run?
// Delete() is always safe to call, so consider all possible states
// has the thread started to run?
- bool shouldResume = FALSE;
+ bool shouldResume = false;
{
wxCriticalSectionLocker lock(m_critsect);
{
wxCriticalSectionLocker lock(m_critsect);
// WinThreadStart() will see it and terminate immediately
m_internal->SetState(STATE_EXITED);
// WinThreadStart() will see it and terminate immediately
m_internal->SetState(STATE_EXITED);
if ( IsMain() )
{
// set flag for wxIsWaitingForThread()
if ( IsMain() )
{
// set flag for wxIsWaitingForThread()
- gs_waitingForThread = TRUE;
+ gs_waitingForThread = true;
#if wxUSE_GUI
wxBeginBusyCursor();
#if wxUSE_GUI
wxBeginBusyCursor();
- gs_waitingForThread = FALSE;
+ gs_waitingForThread = false;
#if wxUSE_GUI
wxEndBusyCursor();
#if wxUSE_GUI
wxEndBusyCursor();
if ( !hasThreadManager )
{
wxLogSysError( wxT("Thread Support is not available on this System") );
if ( !hasThreadManager )
{
wxLogSysError( wxT("Thread Support is not available on this System") );
}
// no error return for GetCurrentThreadId()
MacGetCurrentThread( &gs_idMainThread ) ;
}
// no error return for GetCurrentThreadId()
MacGetCurrentThread( &gs_idMainThread ) ;
}
void wxThreadModule::OnExit()
}
void wxThreadModule::OnExit()
#include "wx/string.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/string.h"
#include "wx/log.h"
#include "wx/utils.h"
#endif
#include "wx/mac/corefoundation/cfstring.h"
#endif
#include "wx/mac/corefoundation/cfstring.h"
-#include "wx/module.h"
-
// ============================================================================
// implementation
// ============================================================================
// ============================================================================
// implementation
// ============================================================================
#include "wx/dialog.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/dialog.h"
#include "wx/log.h"
#include "wx/intl.h"
#endif
#include "wx/evtloop.h"
#endif
#include "wx/evtloop.h"
#include "wx/fontutil.h"
#include "wx/univ/theme.h"
#include "wx/univ/renderer.h"
#include "wx/fontutil.h"
#include "wx/univ/theme.h"
#include "wx/univ/renderer.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/hashmap.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/hashmap.h"
-#include "wx/module.h"
-
#include "wx/mgl/private.h"
#include "wx/mgl/private.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
#include "wx/thread.h"
#endif
#include "wx/thread.h"
#include "wx/colour.h"
#include "wx/font.h"
#include "wx/gdicmn.h"
#include "wx/colour.h"
#include "wx/font.h"
#include "wx/gdicmn.h"
-#include "wx/module.h"
-
// ----------------------------------------------------------------------------
// global data
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// global data
// ----------------------------------------------------------------------------
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/memory.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/memory.h"
#include "wx/evtloop.h"
#if wxUSE_THREADS
#include "wx/evtloop.h"
#if wxUSE_THREADS
-#pragma message disable nosimpint
+ #pragma message disable nosimpint
#endif
#include <Xm/Xm.h>
#include <X11/Xlib.h>
#endif
#include <Xm/Xm.h>
#include <X11/Xlib.h>
#include <X11/Xresource.h>
#include <X11/Xatom.h>
#ifdef __VMS__
#include <X11/Xresource.h>
#include <X11/Xatom.h>
#ifdef __VMS__
-#pragma message enable nosimpint
+ #pragma message enable nosimpint
#endif
#include "wx/motif/private.h"
#endif
#include "wx/motif/private.h"
#include "wx/event.h"
#include "wx/app.h"
#include "wx/window.h"
#include "wx/event.h"
#include "wx/app.h"
#include "wx/window.h"
#endif //WX_PRECOMP
#include "wx/evtloop.h"
#ifdef __VMS__
#endif //WX_PRECOMP
#include "wx/evtloop.h"
#ifdef __VMS__
-#pragma message disable nosimpint
+ #pragma message disable nosimpint
#endif
#include <Xm/Xm.h>
#include <X11/Xlib.h>
#ifdef __VMS__
#endif
#include <Xm/Xm.h>
#include <X11/Xlib.h>
#ifdef __VMS__
-#pragma message enable nosimpint
+ #pragma message enable nosimpint
#endif
#include "wx/unix/private.h"
#endif
#include "wx/unix/private.h"
// also wxEventLoop::Exit is implemented that way, so that exiting an
// event loop won't require an event being in the queue
// also wxEventLoop::Exit is implemented that way, so that exiting an
// event loop won't require an event being in the queue
-#include "wx/module.h"
-
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include "wx/scrolwin.h"
#include "wx/layout.h"
#include "wx/menuitem.h"
#include "wx/scrolwin.h"
#include "wx/layout.h"
#include "wx/menuitem.h"
#include "wx/evtloop.h"
#if wxUSE_DRAG_AND_DROP
#include "wx/evtloop.h"
#if wxUSE_DRAG_AND_DROP
// 2) call DoMoveWindow from DoSetSize, allowing controls to override it
#ifdef __VMS__
// 2) call DoMoveWindow from DoSetSize, allowing controls to override it
#ifdef __VMS__
-#pragma message disable nosimpint
+ #pragma message disable nosimpint
#endif
#include <Xm/Xm.h>
#endif
#include <Xm/Xm.h>
#include <Xm/Label.h>
#include <Xm/RowColumn.h> // for XmMenuPosition
#ifdef __VMS__
#include <Xm/Label.h>
#include <Xm/RowColumn.h> // for XmMenuPosition
#ifdef __VMS__
-#pragma message enable nosimpint
+ #pragma message enable nosimpint
#endif
#include "wx/motif/private.h"
#endif
#include "wx/motif/private.h"
#include "wx/intl.h"
#include "wx/wxchar.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/wxchar.h"
#include "wx/log.h"
#endif
#include "wx/apptrait.h"
#include "wx/filename.h"
#endif
#include "wx/apptrait.h"
#include "wx/filename.h"
#include "wx/dynlib.h"
#include "wx/evtloop.h"
#include "wx/dynlib.h"
#include "wx/evtloop.h"
#include "wx/settings.h"
#include "wx/intl.h"
#include "wx/image.h"
#include "wx/settings.h"
#include "wx/intl.h"
#include "wx/image.h"
-#include "wx/module.h"
-
#include "wx/msw/private.h"
#include "wx/msw/missing.h" // IDC_HAND
#include "wx/msw/private.h"
#include "wx/msw/missing.h" // IDC_HAND
#include "wx/log.h"
#include "wx/icon.h"
#include "wx/dcprint.h"
#include "wx/log.h"
#include "wx/icon.h"
#include "wx/dcprint.h"
#endif
#include "wx/sysopt.h"
#endif
#include "wx/sysopt.h"
#include "wx/dynlib.h"
#ifdef wxHAVE_RAW_BITMAP
#include "wx/dynlib.h"
#ifdef wxHAVE_RAW_BITMAP
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/hashmap.h"
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/hashmap.h"
#include "wx/dde.h"
#include "wx/intl.h"
#include "wx/dde.h"
#include "wx/intl.h"
#include "wx/event.h"
#include "wx/app.h"
#include "wx/timer.h"
#include "wx/event.h"
#include "wx/app.h"
#include "wx/timer.h"
#endif
#include "wx/generic/choicdgg.h"
#include "wx/dynlib.h"
#endif
#include "wx/generic/choicdgg.h"
#include "wx/dynlib.h"
DEFINE_EVENT_TYPE(wxEVT_DIALUP_CONNECTED)
DEFINE_EVENT_TYPE(wxEVT_DIALUP_DISCONNECTED)
DEFINE_EVENT_TYPE(wxEVT_DIALUP_CONNECTED)
DEFINE_EVENT_TYPE(wxEVT_DIALUP_DISCONNECTED)
#include "wx/wxprec.h"
#if defined(__BORLANDC__)
#include "wx/wxprec.h"
#if defined(__BORLANDC__)
#endif
#if wxUSE_GLCANVAS
#endif
#if wxUSE_GLCANVAS
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/app.h"
-#include "wx/module.h"
-
#include "wx/msw/private.h"
// DLL options compatibility check:
#include "wx/msw/private.h"
// DLL options compatibility check:
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/menuitem.h"
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/menuitem.h"
#endif
#include "wx/ownerdrw.h"
#include "wx/fontutil.h"
#endif
#include "wx/ownerdrw.h"
#include "wx/fontutil.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: msw/settings.cpp
+// Name: src/msw/settings.cpp
// Purpose: wxSystemSettingsNative implementation for MSW
// Author: Julian Smart
// Modified by:
// Purpose: wxSystemSettingsNative implementation for MSW
// Author: Julian Smart
// Modified by:
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/gdicmn.h"
#endif
#include "wx/msw/private.h"
#endif
#include "wx/msw/private.h"
#define SPI_GETFLATMENU 0x1022
#endif
#define SPI_GETFLATMENU 0x1022
#endif
#include "wx/fontutil.h"
// for SM_CXCURSOR, SM_CYCURSOR, SM_TABLETPC
#include "wx/fontutil.h"
// for SM_CXCURSOR, SM_CYCURSOR, SM_TABLETPC
#include "wx/app.h"
#include "wx/menu.h"
#include "wx/math.h"
#include "wx/app.h"
#include "wx/menu.h"
#include "wx/math.h"
#include "wx/sysopt.h"
#if wxUSE_CLIPBOARD
#include "wx/sysopt.h"
#if wxUSE_CLIPBOARD
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/app.h"
#endif
#include "wx/apptrait.h"
#endif
#include "wx/apptrait.h"
#include "wx/msw/seh.h"
#include "wx/except.h"
#include "wx/msw/seh.h"
#include "wx/except.h"
// must have this symbol defined to get _beginthread/_endthread declarations
#ifndef _MT
// must have this symbol defined to get _beginthread/_endthread declarations
#ifndef _MT
#include "wx/intl.h"
#include "wx/frame.h"
#include "wx/containr.h" // wxSetFocusToChild()
#include "wx/intl.h"
#include "wx/frame.h"
#include "wx/containr.h" // wxSetFocusToChild()
#include "wx/dynlib.h"
#include "wx/msw/private.h"
#if defined(__WXWINCE__) && !defined(__HANDHELDPC__)
#include "wx/dynlib.h"
#include "wx/msw/private.h"
#if defined(__WXWINCE__) && !defined(__HANDHELDPC__)
- #include <ole2.h>
- #include <shellapi.h>
- // Standard SDK doesn't have aygshell.dll: see include/wx/msw/wince/libraries.h
- #if _WIN32_WCE < 400 || !defined(__WINCE_STANDARDSDK__)
- #include <aygshell.h>
- #endif
-#include "wx/msw/wince/missing.h"
+ #include <ole2.h>
+ #include <shellapi.h>
+ // Standard SDK doesn't have aygshell.dll: see include/wx/msw/wince/libraries.h
+ #if _WIN32_WCE < 400 || !defined(__WINCE_STANDARDSDK__)
+ #include <aygshell.h>
+ #endif
+ #include "wx/msw/wince/missing.h"
#endif
#include "wx/msw/missing.h"
#endif
#include "wx/msw/missing.h"
if ((exstyle & WS_EX_LAYERED) == 0 )
SetWindowLong(GetHwnd(), GWL_EXSTYLE, exstyle | WS_EX_LAYERED);
if ((exstyle & WS_EX_LAYERED) == 0 )
SetWindowLong(GetHwnd(), GWL_EXSTYLE, exstyle | WS_EX_LAYERED);
- return pSetLayeredWindowAttributes(GetHwnd(), 0, (BYTE)alpha, LWA_ALPHA) != 0;
+ return pSetLayeredWindowAttributes(GetHwnd(), 0, (BYTE)alpha, LWA_ALPHA) != 0;
}
bool wxTopLevelWindowMSW::CanSetTransparent()
{
// The API is available on win2k and above
}
bool wxTopLevelWindowMSW::CanSetTransparent()
{
// The API is available on win2k and above
static int os_type = -1;
static int ver_major = -1;
static int os_type = -1;
static int ver_major = -1;
#include "wx/list.h"
#include "wx/string.h"
#include "wx/utils.h"
#include "wx/list.h"
#include "wx/string.h"
#include "wx/utils.h"
#endif
#if !wxUSE_PROTOCOL_HTTP
#endif
#if !wxUSE_PROTOCOL_HTTP
#pragma comment(lib, "wininet.lib")
#endif
#pragma comment(lib, "wininet.lib")
#endif
#include "wx/url.h"
#include <string.h>
#include "wx/url.h"
#include <string.h>
#if wxUSE_STREAMS
#include "wx/stream.h"
#endif
#if wxUSE_STREAMS
#include "wx/stream.h"
#endif
#endif
#include "wx/process.h"
#include "wx/apptrait.h"
#endif
#include "wx/process.h"
#include "wx/apptrait.h"
#include "wx/msw/private.h"
#include "wx/msw/private.h"
#include "wx/toplevel.h"
#include "wx/string.h"
#include "wx/log.h"
#include "wx/toplevel.h"
#include "wx/string.h"
#include "wx/log.h"
-#include "wx/module.h"
-
#include "wx/msw/uxtheme.h"
// ============================================================================
#include "wx/msw/uxtheme.h"
// ============================================================================
}
#endif // wxUSE_UXTHEME
}
#endif // wxUSE_UXTHEME
#include "wx/log.h"
#include "wx/textctrl.h"
#include "wx/menuitem.h"
#include "wx/log.h"
#include "wx/textctrl.h"
#include "wx/menuitem.h"
#endif
#if wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
#endif
#if wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
#endif
#include "wx/evtloop.h"
#endif
#include "wx/evtloop.h"
#include "wx/power.h"
#include "wx/sysopt.h"
#include "wx/power.h"
#include "wx/sysopt.h"
#include "wx/intl.h"
#include "wx/wxchar.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/wxchar.h"
#include "wx/log.h"
#endif
#include "wx/stdpaths.h"
#include "wx/filename.h"
#endif
#include "wx/stdpaths.h"
#include "wx/filename.h"
-#include "wx/module.h"
-
#include "wx/os2/private.h"
#ifdef __EMX__
#include "wx/os2/private.h"
#ifdef __EMX__
#include "wx/msgdlg.h"
#include "wx/dcprint.h"
#include "wx/statusbr.h"
#include "wx/msgdlg.h"
#include "wx/dcprint.h"
#include "wx/statusbr.h"
-#include "wx/module.h"
-
#include <string.h>
#include "wx/os2/private.h"
#include <string.h>
#include "wx/os2/private.h"
#include "wx/gdicmn.h"
#include "wx/window.h"
#include "wx/settings.h"
#include "wx/gdicmn.h"
#include "wx/window.h"
#include "wx/settings.h"
#include "wx/os2/private.h"
// the module which is used to clean up wxSystemSettings data (this is a
#include "wx/os2/private.h"
// the module which is used to clean up wxSystemSettings data (this is a
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/app.h"
#endif //WX_PRECOMP
#include "wx/apptrait.h"
#endif //WX_PRECOMP
#include "wx/apptrait.h"
#include "wx/utils.h"
#include <stdio.h>
#include "wx/utils.h"
#include <stdio.h>
#include "wx/control.h"
#include "wx/containr.h" // wxSetFocusToChild()
#include "wx/settings.h"
#include "wx/control.h"
#include "wx/containr.h" // wxSetFocusToChild()
#include "wx/settings.h"
+ #include "wx/module.h" // wxSetFocusToChild()
-#include "wx/module.h" // wxSetFocusToChild()
#include "wx/os2/private.h"
// ----------------------------------------------------------------------------
#include "wx/os2/private.h"
// ----------------------------------------------------------------------------
#include "wx/intl.h"
#include "wx/wxchar.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/wxchar.h"
#include "wx/log.h"
#endif
#include "wx/apptrait.h"
#include "wx/filename.h"
#endif
#include "wx/apptrait.h"
#include "wx/filename.h"
#include "wx/dynlib.h"
#if wxUSE_TOOLTIPS
#include "wx/dynlib.h"
#if wxUSE_TOOLTIPS
#include "wx/settings.h"
#include "wx/intl.h"
#include "wx/image.h"
#include "wx/settings.h"
#include "wx/intl.h"
#include "wx/image.h"
-#include "wx/module.h"
-
// ----------------------------------------------------------------------------
// private classes
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// private classes
// ----------------------------------------------------------------------------
#include "wx/log.h"
#include "wx/icon.h"
#include "wx/dcprint.h"
#include "wx/log.h"
#include "wx/icon.h"
#include "wx/dcprint.h"
#endif
#include "wx/sysopt.h"
#endif
#include "wx/sysopt.h"
#include "wx/dynload.h"
#ifdef wxHAVE_RAW_BITMAP
#include "wx/dynload.h"
#ifdef wxHAVE_RAW_BITMAP
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/menuitem.h"
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/menuitem.h"
#endif
#include "wx/ownerdrw.h"
#include "wx/fontutil.h"
#endif
#include "wx/ownerdrw.h"
#include "wx/fontutil.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/gdicmn.h"
#include "wx/fontutil.h"
#include <UIColor.h>
#include "wx/fontutil.h"
#include <UIColor.h>
#include "wx/log.h"
#include "wx/app.h"
#include "wx/menu.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/menu.h"
-#include "wx/module.h"
-
#if wxUSE_CLIPBOARD
#include "wx/clipbrd.h"
#endif
#if wxUSE_CLIPBOARD
#include "wx/clipbrd.h"
#endif
+#if wxUSE_THREADS
+
+#include "wx/thread.h"
+
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/app.h"
#include "wx/apptrait.h"
#include "wx/palmos/private.h"
#include "wx/palmos/missing.h"
#include "wx/apptrait.h"
#include "wx/palmos/private.h"
#include "wx/palmos/missing.h"
-#include "wx/module.h"
-#include "wx/thread.h"
-
// must have this symbol defined to get _beginthread/_endthread declarations
#ifndef _MT
#define _MT
// must have this symbol defined to get _beginthread/_endthread declarations
#ifndef _MT
#define _MT
#include "wx/thrimpl.cpp"
#endif // wxUSE_THREADS
#include "wx/thrimpl.cpp"
#endif // wxUSE_THREADS
#include "wx/checkbox.h"
#include "wx/radiobut.h"
#include "wx/slider.h"
#include "wx/checkbox.h"
#include "wx/radiobut.h"
#include "wx/slider.h"
#include "wx/display.h"
// controls for sending select event
#include "wx/display.h"
// controls for sending select event
#if wxUSE_STREAMS
#include "wx/stream.h"
#endif
#if wxUSE_STREAMS
#include "wx/stream.h"
#endif
#endif
#include "wx/process.h"
#include "wx/apptrait.h"
#endif
#include "wx/process.h"
#include "wx/apptrait.h"
-#include "wx/module.h"
-
#include <ctype.h>
#include <stdio.h>
#include <ctype.h>
#include <stdio.h>
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/windows.cpp
+// Name: src/palmos/window.cpp
// Purpose: wxWindow
// Author: William Osborne - minimal working wxPalmOS port
// Modified by: Wlodzimierz ABX Skiba - more than minimal functionality
// Purpose: wxWindow
// Author: William Osborne - minimal working wxPalmOS port
// Modified by: Wlodzimierz ABX Skiba - more than minimal functionality
#include "wx/log.h"
#include "wx/textctrl.h"
#include "wx/menuitem.h"
#include "wx/log.h"
#include "wx/textctrl.h"
#include "wx/menuitem.h"
#endif
#if wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
#include "wx/ownerdrw.h"
#endif
#endif
#if wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
#include "wx/ownerdrw.h"
#endif
-#include "wx/module.h"
-
#if wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
#endif
#if wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
#endif
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/dataobj.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/dataobj.h"
#endif
#include "wx/filename.h"
#include "wx/clipbrd.h"
#include "wx/wfstream.h"
#endif
#include "wx/filename.h"
#include "wx/clipbrd.h"
#include "wx/wfstream.h"
#include "wx/mstream.h"
#include "wx/sstream.h"
#include "wx/mstream.h"
#include "wx/sstream.h"
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
#if wxUSE_RICHTEXT
#endif
#if wxUSE_RICHTEXT
#ifndef WX_PRECOMP
#include "wx/dcclient.h"
#ifndef WX_PRECOMP
#include "wx/dcclient.h"
#endif
#include "wx/filename.h"
#include "wx/clipbrd.h"
#include "wx/wfstream.h"
#endif
#include "wx/filename.h"
#include "wx/clipbrd.h"
#include "wx/wfstream.h"
#include "wx/richtext/richtextctrl.h"
#include "wx/richtext/richtextctrl.h"
#ifndef WX_PRECOMP
#include "wx/intl.h"
#ifndef WX_PRECOMP
#include "wx/intl.h"
#endif
#include "wx/filename.h"
#include "wx/clipbrd.h"
#include "wx/wfstream.h"
#include "wx/sstream.h"
#endif
#include "wx/filename.h"
#include "wx/clipbrd.h"
#include "wx/wfstream.h"
#include "wx/sstream.h"
#include "wx/txtstrm.h"
#include "wx/xml/xml.h"
#include "wx/txtstrm.h"
#include "wx/xml/xml.h"
#include "wx/encinfo.h"
#include "wx/hash.h"
#include "wx/utils.h" // for wxGetDisplay()
#include "wx/encinfo.h"
#include "wx/hash.h"
#include "wx/utils.h" // for wxGetDisplay()
#endif // PCH
#include "wx/fontmap.h"
#include "wx/tokenzr.h"
#endif // PCH
#include "wx/fontmap.h"
#include "wx/tokenzr.h"
#include "wx/fontenum.h"
#if wxUSE_PANGO
#include "wx/fontenum.h"
#if wxUSE_PANGO
#include "wx/wxprec.h"
#if defined(__BORLANDC__)
#include "wx/wxprec.h"
#if defined(__BORLANDC__)
#include "wx/event.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/event.h"
#include "wx/intl.h"
#include "wx/log.h"
#endif
#include "wx/thread.h"
#include "wx/file.h"
#endif
#include "wx/thread.h"
#include "wx/file.h"
#include "wx/sound.h"
#include "wx/dynlib.h"
#include "wx/sound.h"
#include "wx/dynlib.h"
// 28 average bytes per second |
// 32 bytes per frame |
// 34 bits per sample |
// 28 average bytes per second |
// 32 bytes per frame |
// 34 bits per sample |
// 36 "data"
// 40 number of data bytes
// 44 (wave signal) data
// 36 "data"
// 40 number of data bytes
// 44 (wave signal) data
#include "wx/wxprec.h"
#if defined(__BORLANDC__)
#include "wx/wxprec.h"
#if defined(__BORLANDC__)
#endif
#if wxUSE_SOUND && wxUSE_LIBSDL
#endif
#if wxUSE_SOUND && wxUSE_LIBSDL
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
#endif
#include "wx/thread.h"
#endif
#include "wx/thread.h"
#include "wx/sound.h"
// ----------------------------------------------------------------------------
#include "wx/sound.h"
// ----------------------------------------------------------------------------
#include "wx/utils.h"
#include "wx/timer.h"
#include "wx/stopwatch.h"
#include "wx/utils.h"
#include "wx/timer.h"
#include "wx/stopwatch.h"
-#include "wx/module.h"
-
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include "wx/timer.h"
#include "wx/memory.h"
#include "wx/gdicmn.h"
#include "wx/timer.h"
#include "wx/memory.h"
#include "wx/gdicmn.h"
#include "wx/evtloop.h"
#include "wx/filename.h"
#include "wx/evtloop.h"
#include "wx/filename.h"
#include "wx/dcmemory.h"
#include "wx/math.h"
#include "wx/image.h"
#include "wx/dcmemory.h"
#include "wx/math.h"
#include "wx/image.h"
#include "wx/fontutil.h"
#include "wx/x11/private.h"
#include "wx/fontutil.h"
#include "wx/x11/private.h"
#include "wx/app.h"
#include "wx/window.h"
#include "wx/timer.h"
#include "wx/app.h"
#include "wx/window.h"
#include "wx/timer.h"
#endif
#include "wx/tooltip.h"
#endif
#include "wx/tooltip.h"
#include "wx/unix/private.h"
#include "wx/x11/private.h"
#include "X11/Xlib.h"
#include "wx/unix/private.h"
#include "wx/x11/private.h"
#include "X11/Xlib.h"
#include "wx/scrolwin.h"
#include "wx/layout.h"
#include "wx/menuitem.h"
#include "wx/scrolwin.h"
#include "wx/layout.h"
#include "wx/menuitem.h"
#include "wx/fontutil.h"
#include "wx/univ/renderer.h"
#include "wx/fontutil.h"
#include "wx/univ/renderer.h"
#include "wx/settings.h"
#include "wx/bitmap.h"
#include "wx/image.h"
#include "wx/settings.h"
#include "wx/bitmap.h"
#include "wx/image.h"
#endif
#ifndef __WXWINCE__
#endif
#ifndef __WXWINCE__
#include "wx/filename.h"
#include "wx/tokenzr.h"
#include "wx/fontenum.h"
#include "wx/filename.h"
#include "wx/tokenzr.h"
#include "wx/fontenum.h"
#include "wx/fontmap.h"
#include "wx/artprov.h"
#include "wx/fontmap.h"
#include "wx/artprov.h"