Better #include
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
95d00805e0
commit
b20edf8b33
@ -897,8 +897,8 @@ static void TestFileNameCwd()
|
||||
|
||||
#ifdef TEST_FILETIME
|
||||
|
||||
#include <wx/filename.h>
|
||||
#include <wx/datetime.h>
|
||||
#include "wx/filename.h"
|
||||
#include "wx/datetime.h"
|
||||
|
||||
static void TestFileGetTimes()
|
||||
{
|
||||
@ -1554,7 +1554,7 @@ static void TestRegExInteractive()
|
||||
|
||||
#ifdef TEST_ODBC
|
||||
|
||||
#include <wx/db.h>
|
||||
#include "wx/db.h"
|
||||
|
||||
static void TestDbOpen()
|
||||
{
|
||||
|
@ -40,7 +40,7 @@
|
||||
|
||||
#if wxUSE_PROGRESSDLG
|
||||
#if wxUSE_STOPWATCH && wxUSE_LONGLONG
|
||||
#include <wx/datetime.h> // wxDateTime
|
||||
#include "wx/datetime.h" // wxDateTime
|
||||
#endif
|
||||
|
||||
#include "wx/progdlg.h"
|
||||
|
@ -12,7 +12,7 @@
|
||||
// You may set this to 0 to prevent DDE from being used even under Windows
|
||||
//#define wxUSE_DDE_FOR_IPC 0
|
||||
|
||||
#include <wx/ipc.h>
|
||||
#include "wx/ipc.h"
|
||||
|
||||
// the default service name
|
||||
#define IPC_SERVICE _T("4242")
|
||||
|
@ -1,6 +1,7 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: styles.h
|
||||
// Author: Robert Roebling
|
||||
// RCS-ID: $Id$
|
||||
// Created: 04/07/02
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -10,7 +11,7 @@
|
||||
// Include wxWidgets' headers
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include <wx/wx.h>
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
@ -1,6 +1,7 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wxedit.h
|
||||
// Author: Robert Roebling
|
||||
// RCS-ID: $Id$
|
||||
// Created: 04/07/02
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -10,7 +11,7 @@
|
||||
// Include wxWidgets' headers
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include <wx/wx.h>
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
@ -9,12 +9,12 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/display.h>
|
||||
#include "wx/wx.h"
|
||||
#include "wx/display.h"
|
||||
|
||||
class TestApp : public wxApp
|
||||
{
|
||||
bool OnInit();
|
||||
bool OnInit();
|
||||
};
|
||||
|
||||
DECLARE_APP(TestApp)
|
||||
@ -22,7 +22,7 @@ IMPLEMENT_APP(TestApp)
|
||||
|
||||
bool TestApp::OnInit()
|
||||
{
|
||||
bool is_use_display =
|
||||
bool is_use_display =
|
||||
#if wxUSE_DISPLAY
|
||||
true
|
||||
#else
|
||||
@ -33,22 +33,22 @@ bool TestApp::OnInit()
|
||||
{
|
||||
wxMessageBox( _T("This sample has to be compiled with wxUSE_DISPLAY"), _T("Building error"), wxOK);
|
||||
}
|
||||
#if wxUSE_DISPLAY
|
||||
#if wxUSE_DISPLAY
|
||||
else
|
||||
{
|
||||
size_t count = wxDisplay::GetCount();
|
||||
size_t count = wxDisplay::GetCount();
|
||||
wxLogDebug ( _T("I detected %i display(s) on your system"), count );
|
||||
size_t i = 0;
|
||||
while ( i < count )
|
||||
{
|
||||
wxDisplay display ( i );
|
||||
wxRect r = display.GetGeometry();
|
||||
wxLogDebug ( _T("Display #%i \"%s\" = ( %i, %i, %i, %i ) @ %i bits"),
|
||||
i, display.GetName().c_str(), r.GetLeft(), r.GetTop(), r.GetWidth(), r.GetHeight(),
|
||||
display.GetCurrentMode().GetDepth() );
|
||||
i++;
|
||||
}
|
||||
size_t i = 0;
|
||||
while ( i < count )
|
||||
{
|
||||
wxDisplay display ( i );
|
||||
wxRect r = display.GetGeometry();
|
||||
wxLogDebug ( _T("Display #%i \"%s\" = ( %i, %i, %i, %i ) @ %i bits"),
|
||||
i, display.GetName().c_str(), r.GetLeft(), r.GetTop(), r.GetWidth(), r.GetHeight(),
|
||||
display.GetCurrentMode().GetDepth() );
|
||||
i++;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
#include <wx/msw/ole/automtn.h>
|
||||
#include "wx/msw/ole/automtn.h"
|
||||
|
||||
#ifndef __WXMSW__
|
||||
#error "Sorry, this sample works under Windows only."
|
||||
@ -215,4 +215,3 @@ void MyFrame::OnTest(wxCommandEvent& WXUNUSED(event))
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
#include "dxfrenderer.h"
|
||||
|
||||
#include <wx/listimpl.cpp>
|
||||
#include "wx/listimpl.cpp"
|
||||
WX_DEFINE_LIST(DXFEntityList)
|
||||
WX_DEFINE_LIST(DXFLayerList)
|
||||
|
||||
@ -557,7 +557,7 @@ bool DXFRenderer::Load(wxInputStream& stream)
|
||||
return false;
|
||||
}
|
||||
else if (line2 == wxT("TABLES"))
|
||||
{
|
||||
{
|
||||
if (!ParseTables(stream))
|
||||
return false;
|
||||
}
|
||||
|
@ -48,7 +48,7 @@
|
||||
#error wxToolBarSimple is not compiled in, set wxUSE_TOOLBAR_SIMPLE \
|
||||
to 1 in setup.h and recompile the library.
|
||||
#else
|
||||
#include <wx/tbarsmpl.h>
|
||||
#include "wx/tbarsmpl.h"
|
||||
#endif
|
||||
#endif // USE_GENERIC_TBAR
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user