Include wx/hash.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: unix/fontutil.cpp
|
||||
// Name: src/cocoa/fontutil.cpp
|
||||
// Purpose: Font helper functions for X11 (GDK/X)
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
@@ -25,12 +25,12 @@
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/hash.h"
|
||||
#endif // PCH
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/fontmap.h"
|
||||
#include "wx/tokenzr.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/encinfo.h"
|
||||
|
||||
@@ -103,7 +103,7 @@ wxFontWeight wxNativeFontInfo::GetWeight() const
|
||||
|
||||
bool wxNativeFontInfo::GetUnderlined() const
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
wxString wxNativeFontInfo::GetFaceName() const
|
||||
@@ -129,7 +129,7 @@ wxFontEncoding wxNativeFontInfo::GetEncoding() const
|
||||
|
||||
bool wxNativeEncodingInfo::FromString(const wxString& s)
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
wxString wxNativeEncodingInfo::ToString() const
|
||||
@@ -139,13 +139,13 @@ wxString wxNativeEncodingInfo::ToString() const
|
||||
|
||||
bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
|
||||
{
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxGetNativeFontEncoding(wxFontEncoding encoding,
|
||||
wxNativeEncodingInfo *info)
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
#else
|
||||
@@ -211,7 +211,7 @@ return wxEmptyString;
|
||||
bool wxGetNativeFontEncoding(wxFontEncoding encoding,
|
||||
wxNativeEncodingInfo *info)
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
|
||||
@@ -243,7 +243,7 @@ bool wxFontModule::OnInit()
|
||||
{
|
||||
g_fontHash = new wxHashTable( wxKEY_STRING );
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxFontModule::OnExit()
|
||||
|
@@ -26,9 +26,8 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/list.h"
|
||||
#endif
|
||||
|
||||
#include "wx/hash.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_OLD_HASH_TABLE
|
||||
|
||||
|
@@ -19,6 +19,7 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/hash.h"
|
||||
#endif
|
||||
|
||||
#include "wx/image.h"
|
||||
@@ -28,7 +29,6 @@
|
||||
#include "wx/wfstream.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/math.h"
|
||||
|
||||
|
@@ -23,14 +23,13 @@
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/palette.h"
|
||||
#include "wx/hash.h"
|
||||
#endif
|
||||
|
||||
#include "wx/imagpcx.h"
|
||||
#include "wx/wfstream.h"
|
||||
#include "wx/module.h"
|
||||
|
||||
#include "wx/hash.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxPCXHandler
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: common/mediactrl.cpp
|
||||
// Name: src/common/mediactrl.cpp
|
||||
// Purpose: wxMediaCtrl common code
|
||||
// Author: Ryan Norton <wxprojects@comcast.net>
|
||||
// Modified by:
|
||||
@@ -25,16 +25,16 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_MEDIACTRL
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/hash.h"
|
||||
#endif
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Includes
|
||||
//---------------------------------------------------------------------------
|
||||
#include "wx/mediactrl.h"
|
||||
#include "wx/hash.h"
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Compilation guard
|
||||
//---------------------------------------------------------------------------
|
||||
#if wxUSE_MEDIACTRL
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
@@ -555,9 +555,5 @@ FORCE_LINK(wxmediabackend_wmp10)
|
||||
#else
|
||||
FORCE_LINK(basewxmediabackends)
|
||||
#endif
|
||||
//---------------------------------------------------------------------------
|
||||
// End of compilation guard and of file
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#endif //wxUSE_MEDIACTRL
|
||||
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: module.cpp
|
||||
// Name: src/common/module.cpp
|
||||
// Purpose: Modules initialization/destruction
|
||||
// Author: Wolfram Gloger/adapted by Guilhem Lavaux
|
||||
// Modified by:
|
||||
@@ -16,8 +16,11 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/module.h"
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/hash.h"
|
||||
#endif
|
||||
|
||||
#include "wx/module.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/listimpl.cpp"
|
||||
@@ -104,4 +107,3 @@ void wxModule::CleanUpModules()
|
||||
|
||||
WX_CLEAR_LIST(wxModuleList, m_modules);
|
||||
}
|
||||
|
||||
|
@@ -18,6 +18,10 @@
|
||||
|
||||
#if wxUSE_DIRDLG || wxUSE_FILEDLG
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/hash.h"
|
||||
#endif
|
||||
|
||||
#include "wx/generic/dirctrlg.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/utils.h"
|
||||
@@ -38,7 +42,6 @@
|
||||
#include "wx/dir.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/artprov.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/mimetype.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/choice.h"
|
||||
|
@@ -15,12 +15,15 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/hash.h"
|
||||
#endif
|
||||
|
||||
#include "wx/log.h"
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/encinfo.h"
|
||||
#include "wx/fontmap.h"
|
||||
#include "wx/tokenzr.h"
|
||||
#include "wx/hash.h"
|
||||
|
||||
#include "wx/listimpl.cpp"
|
||||
#include "wx/sysopt.h"
|
||||
|
@@ -17,6 +17,10 @@
|
||||
#define XtDisplay XTDISPLAY
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/hash.h"
|
||||
#endif
|
||||
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/module.h"
|
||||
@@ -24,7 +28,6 @@
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/evtloop.h"
|
||||
#include "wx/hash.h"
|
||||
|
||||
#if wxUSE_THREADS
|
||||
#include "wx/thread.h"
|
||||
|
@@ -26,6 +26,10 @@
|
||||
#define XtScreen XTSCREEN
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/hash.h"
|
||||
#endif
|
||||
|
||||
#include "wx/menu.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcclient.h"
|
||||
@@ -40,7 +44,6 @@
|
||||
#include "wx/menuitem.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/evtloop.h"
|
||||
#include "wx/hash.h"
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
#include "wx/dnd.h"
|
||||
@@ -1246,7 +1249,8 @@ void wxWindow::DoSetSizeIntr(int x, int y, int width, int height,
|
||||
int sizeFlags, bool fromCtor)
|
||||
{
|
||||
// A bit of optimization to help sort out the flickers.
|
||||
int oldX = -1, oldY = -1, oldW = -1, oldH = -1;
|
||||
int oldX = oldY = oldW = oldH = -1;
|
||||
|
||||
if( !fromCtor )
|
||||
{
|
||||
GetSize(& oldW, & oldH);
|
||||
|
@@ -27,12 +27,12 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/font.h" // wxFont enums
|
||||
#include "wx/encinfo.h"
|
||||
#include "wx/hash.h"
|
||||
#endif // PCH
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/fontmap.h"
|
||||
#include "wx/tokenzr.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/module.h"
|
||||
|
||||
#if wxUSE_PANGO
|
||||
|
@@ -12,6 +12,10 @@
|
||||
// for compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/hash.h"
|
||||
#endif
|
||||
|
||||
#include "wx/frame.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
@@ -26,7 +30,6 @@
|
||||
#include "wx/evtloop.h"
|
||||
#include "wx/timer.h"
|
||||
#include "wx/filename.h"
|
||||
#include "wx/hash.h"
|
||||
|
||||
#include "wx/univ/theme.h"
|
||||
#include "wx/univ/renderer.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: x11/evtloop.cpp
|
||||
// Name: src/x11/evtloop.cpp
|
||||
// Purpose: implements wxEventLoop for X11
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -17,20 +17,27 @@
|
||||
// headers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// for compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/hash.h"
|
||||
#endif
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/evtloop.h"
|
||||
#include "wx/tooltip.h"
|
||||
#if wxUSE_THREADS
|
||||
#include "wx/thread.h"
|
||||
#endif
|
||||
#include "wx/timer.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/unix/private.h"
|
||||
#include "wx/x11/private.h"
|
||||
#include "X11/Xlib.h"
|
||||
|
||||
#if wxUSE_THREADS
|
||||
#include "wx/thread.h"
|
||||
#endif
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -159,10 +166,10 @@ bool wxSocketTable::CallCallback(int fd, wxSocketTableType socketType)
|
||||
(entry->m_callbackOutput) (entry->m_fdOutput, entry->m_dataOutput);
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
void wxSocketTable::FillSets(fd_set* readset, fd_set* writeset, int* highest)
|
||||
@@ -220,7 +227,7 @@ class wxSocketTableModule: public wxModule
|
||||
DECLARE_DYNAMIC_CLASS(wxSocketTableModule)
|
||||
public:
|
||||
wxSocketTableModule() {}
|
||||
bool OnInit() { wxTheSocketTable = new wxSocketTable; return TRUE; };
|
||||
bool OnInit() { wxTheSocketTable = new wxSocketTable; return true; };
|
||||
void OnExit() { delete wxTheSocketTable; wxTheSocketTable = NULL; };
|
||||
};
|
||||
|
||||
@@ -254,12 +261,12 @@ class WXDLLEXPORT wxEventLoopImpl
|
||||
{
|
||||
public:
|
||||
// ctor
|
||||
wxEventLoopImpl() { SetExitCode(0); m_keepGoing = FALSE; }
|
||||
wxEventLoopImpl() { SetExitCode(0); m_keepGoing = false; }
|
||||
|
||||
// process an XEvent, return TRUE if it was processed
|
||||
// process an XEvent, return true if it was processed
|
||||
bool ProcessEvent(XEvent* event);
|
||||
|
||||
// generate an idle message, return TRUE if more idle time requested
|
||||
// generate an idle message, return true if more idle time requested
|
||||
bool SendIdleEvent();
|
||||
|
||||
// set/get the exit code
|
||||
@@ -267,7 +274,7 @@ public:
|
||||
int GetExitCode() const { return m_exitcode; }
|
||||
|
||||
public:
|
||||
// preprocess an event, return TRUE if processed (i.e. no further
|
||||
// preprocess an event, return true if processed (i.e. no further
|
||||
// dispatching required)
|
||||
bool PreProcessEvent(XEvent* event);
|
||||
|
||||
@@ -289,13 +296,13 @@ bool wxEventLoopImpl::ProcessEvent(XEvent *event)
|
||||
{
|
||||
// give us the chance to preprocess the message first
|
||||
if ( PreProcessEvent(event) )
|
||||
return TRUE;
|
||||
return true;
|
||||
|
||||
// if it wasn't done, dispatch it to the corresponding window
|
||||
if (wxTheApp)
|
||||
return wxTheApp->ProcessXEvent((WXEvent*) event);
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxEventLoopImpl::PreProcessEvent(XEvent *event)
|
||||
@@ -312,18 +319,18 @@ bool wxEventLoopImpl::PreProcessEvent(XEvent *event)
|
||||
for ( wnd = wndThis; wnd; wnd = wnd->GetParent() )
|
||||
{
|
||||
if ( wnd->MSWTranslateMessage((WXMSG *)msg) )
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Anyone for a non-translation message? Try youngest descendants first.
|
||||
for ( wnd = wndThis; wnd; wnd = wnd->GetParent() )
|
||||
{
|
||||
if ( wnd->MSWProcessMessage((WXMSG *)msg) )
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -357,7 +364,7 @@ int wxEventLoop::Run()
|
||||
|
||||
wxEventLoopActivator activate(this);
|
||||
|
||||
m_impl->m_keepGoing = TRUE;
|
||||
m_impl->m_keepGoing = true;
|
||||
while ( m_impl->m_keepGoing )
|
||||
{
|
||||
#if 0 // wxUSE_THREADS
|
||||
@@ -405,7 +412,7 @@ void wxEventLoop::Exit(int rc)
|
||||
wxCHECK_RET( IsRunning(), _T("can't call Exit() if not running") );
|
||||
|
||||
m_impl->SetExitCode(rc);
|
||||
m_impl->m_keepGoing = FALSE;
|
||||
m_impl->m_keepGoing = false;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -464,7 +471,7 @@ bool wxEventLoop::Dispatch()
|
||||
if (select( highest+1, &readset, &writeset, NULL, &tv ) == 0)
|
||||
{
|
||||
// Timed out, so no event to process
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -488,6 +495,5 @@ bool wxEventLoop::Dispatch()
|
||||
|
||||
|
||||
(void) m_impl->ProcessEvent( &event );
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -16,6 +16,10 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/hash.h"
|
||||
#endif
|
||||
|
||||
// ============================================================================
|
||||
// declarations
|
||||
// ============================================================================
|
||||
@@ -44,7 +48,6 @@
|
||||
#include "wx/log.h"
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/univ/renderer.h"
|
||||
#include "wx/hash.h"
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
#include "wx/dnd.h"
|
||||
|
Reference in New Issue
Block a user