Better #include

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-01-26 19:06:06 +00:00
parent 95d00805e0
commit b20edf8b33
9 changed files with 31 additions and 30 deletions

View File

@@ -897,8 +897,8 @@ static void TestFileNameCwd()
#ifdef TEST_FILETIME #ifdef TEST_FILETIME
#include <wx/filename.h> #include "wx/filename.h"
#include <wx/datetime.h> #include "wx/datetime.h"
static void TestFileGetTimes() static void TestFileGetTimes()
{ {
@@ -1554,7 +1554,7 @@ static void TestRegExInteractive()
#ifdef TEST_ODBC #ifdef TEST_ODBC
#include <wx/db.h> #include "wx/db.h"
static void TestDbOpen() static void TestDbOpen()
{ {

View File

@@ -40,7 +40,7 @@
#if wxUSE_PROGRESSDLG #if wxUSE_PROGRESSDLG
#if wxUSE_STOPWATCH && wxUSE_LONGLONG #if wxUSE_STOPWATCH && wxUSE_LONGLONG
#include <wx/datetime.h> // wxDateTime #include "wx/datetime.h" // wxDateTime
#endif #endif
#include "wx/progdlg.h" #include "wx/progdlg.h"

View File

@@ -12,7 +12,7 @@
// You may set this to 0 to prevent DDE from being used even under Windows // You may set this to 0 to prevent DDE from being used even under Windows
//#define wxUSE_DDE_FOR_IPC 0 //#define wxUSE_DDE_FOR_IPC 0
#include <wx/ipc.h> #include "wx/ipc.h"
// the default service name // the default service name
#define IPC_SERVICE _T("4242") #define IPC_SERVICE _T("4242")

View File

@@ -1,6 +1,7 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: styles.h // Name: styles.h
// Author: Robert Roebling // Author: Robert Roebling
// RCS-ID: $Id$
// Created: 04/07/02 // Created: 04/07/02
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@@ -10,7 +11,7 @@
// Include wxWidgets' headers // Include wxWidgets' headers
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <wx/wx.h> #include "wx/wx.h"
#endif #endif
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------

View File

@@ -1,6 +1,7 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: wxedit.h // Name: wxedit.h
// Author: Robert Roebling // Author: Robert Roebling
// RCS-ID: $Id$
// Created: 04/07/02 // Created: 04/07/02
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@@ -10,7 +11,7 @@
// Include wxWidgets' headers // Include wxWidgets' headers
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <wx/wx.h> #include "wx/wx.h"
#endif #endif
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------

View File

@@ -9,12 +9,12 @@
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#include <wx/wx.h> #include "wx/wx.h"
#include <wx/display.h> #include "wx/display.h"
class TestApp : public wxApp class TestApp : public wxApp
{ {
bool OnInit(); bool OnInit();
}; };
DECLARE_APP(TestApp) DECLARE_APP(TestApp)
@@ -33,22 +33,22 @@ bool TestApp::OnInit()
{ {
wxMessageBox( _T("This sample has to be compiled with wxUSE_DISPLAY"), _T("Building error"), wxOK); wxMessageBox( _T("This sample has to be compiled with wxUSE_DISPLAY"), _T("Building error"), wxOK);
} }
#if wxUSE_DISPLAY #if wxUSE_DISPLAY
else else
{ {
size_t count = wxDisplay::GetCount(); size_t count = wxDisplay::GetCount();
wxLogDebug ( _T("I detected %i display(s) on your system"), count ); wxLogDebug ( _T("I detected %i display(s) on your system"), count );
size_t i = 0; size_t i = 0;
while ( i < count ) while ( i < count )
{ {
wxDisplay display ( i ); wxDisplay display ( i );
wxRect r = display.GetGeometry(); wxRect r = display.GetGeometry();
wxLogDebug ( _T("Display #%i \"%s\" = ( %i, %i, %i, %i ) @ %i bits"), wxLogDebug ( _T("Display #%i \"%s\" = ( %i, %i, %i, %i ) @ %i bits"),
i, display.GetName().c_str(), r.GetLeft(), r.GetTop(), r.GetWidth(), r.GetHeight(), i, display.GetName().c_str(), r.GetLeft(), r.GetTop(), r.GetWidth(), r.GetHeight(),
display.GetCurrentMode().GetDepth() ); display.GetCurrentMode().GetDepth() );
i++; i++;
} }
} }
#endif #endif
return false; return false;
} }

View File

@@ -30,7 +30,7 @@
#include "wx/wx.h" #include "wx/wx.h"
#endif #endif
#include <wx/msw/ole/automtn.h> #include "wx/msw/ole/automtn.h"
#ifndef __WXMSW__ #ifndef __WXMSW__
#error "Sorry, this sample works under Windows only." #error "Sorry, this sample works under Windows only."
@@ -215,4 +215,3 @@ void MyFrame::OnTest(wxCommandEvent& WXUNUSED(event))
return; return;
} }
} }

View File

@@ -39,7 +39,7 @@
#include "dxfrenderer.h" #include "dxfrenderer.h"
#include <wx/listimpl.cpp> #include "wx/listimpl.cpp"
WX_DEFINE_LIST(DXFEntityList) WX_DEFINE_LIST(DXFEntityList)
WX_DEFINE_LIST(DXFLayerList) WX_DEFINE_LIST(DXFLayerList)

View File

@@ -48,7 +48,7 @@
#error wxToolBarSimple is not compiled in, set wxUSE_TOOLBAR_SIMPLE \ #error wxToolBarSimple is not compiled in, set wxUSE_TOOLBAR_SIMPLE \
to 1 in setup.h and recompile the library. to 1 in setup.h and recompile the library.
#else #else
#include <wx/tbarsmpl.h> #include "wx/tbarsmpl.h"
#endif #endif
#endif // USE_GENERIC_TBAR #endif // USE_GENERIC_TBAR