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

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-06-08 20:19:29 +00:00
parent 58c23da1d5
commit 59cf2e4999
7 changed files with 29 additions and 33 deletions

View File

@@ -35,16 +35,13 @@
#include "wx/dcclient.h"
#include "wx/dcscreen.h"
#include "wx/toolbar.h"
#include "wx/mdi.h"
#endif
//#include "wx/dcbuffer.h"
#include "wx/image.h"
#if wxUSE_MDI
#include "wx/mdi.h"
#endif
WX_CHECK_BUILD_OPTIONS("wxAUI")
#include "wx/arrimpl.cpp"

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
// Name: cocoa/mdi.mm
// Name: src/cocoa/mdi.mm
// Purpose: wxMDIParentFrame, wxMDIChildFrame, wxMDIClientWindow
// Author: David Elliott
// Modified by:
@@ -13,9 +13,10 @@
#if wxUSE_MDI
#include "wx/mdi.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/mdi.h"
#endif // WX_PRECOMP
// #include "wx/cocoa/autorelease.h"
@@ -323,7 +324,7 @@ wxMDIClientWindow::wxMDIClientWindow()
}
wxMDIClientWindow::wxMDIClientWindow(wxMDIParentFrame *parent, long style)
: wxWindow(parent, -1)
:wxWindow(parent, wxID_ANY)
{
}

View File

@@ -40,6 +40,7 @@
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/msgdlg.h"
#include "wx/mdi.h"
#endif
#include "wx/ffile.h"
@@ -48,10 +49,6 @@
#include "wx/filename.h"
#endif
#ifdef __WXGTK__
#include "wx/mdi.h"
#endif
#if wxUSE_PRINTING_ARCHITECTURE
#include "wx/prntbase.h"
#include "wx/printdlg.h"

View File

@@ -1,20 +1,21 @@
/////////////////////////////////////////////////////////////////////////////
// Name: mdi.cpp
// Name: src/mac/carbon/mdi.cpp
// Purpose: MDI classes
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#if wxUSE_MDI
#include "wx/mdi.h"
#ifndef WX_PRECOMP
#include "wx/mdi.h"
#include "wx/log.h"
#include "wx/menu.h"
#include "wx/settings.h"
@@ -31,12 +32,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxMDIChildFrame, wxFrame)
IMPLEMENT_DYNAMIC_CLASS(wxMDIClientWindow, wxWindow)
BEGIN_EVENT_TABLE(wxMDIParentFrame, wxFrame)
EVT_ACTIVATE(wxMDIParentFrame::OnActivate)
EVT_SYS_COLOUR_CHANGED(wxMDIParentFrame::OnSysColourChanged)
EVT_ACTIVATE(wxMDIParentFrame::OnActivate)
EVT_SYS_COLOUR_CHANGED(wxMDIParentFrame::OnSysColourChanged)
END_EVENT_TABLE()
BEGIN_EVENT_TABLE(wxMDIClientWindow, wxWindow)
EVT_SCROLL(wxMDIClientWindow::OnScroll)
EVT_SCROLL(wxMDIClientWindow::OnScroll)
END_EVENT_TABLE()
static const wxChar *TRACE_MDI = _T("mdi");
@@ -350,19 +351,19 @@ void wxMDIChildFrame::Init()
}
bool wxMDIChildFrame::Create(wxMDIParentFrame *parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString& name)
wxWindowID id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString& name)
{
SetName(name);
if ( id > -1 )
m_windowId = id;
else
if ( id == wxID_ANY )
m_windowId = (int)NewControlId();
else
m_windowId = id;
if (parent)
parent->AddChild(this);
@@ -492,4 +493,3 @@ void wxMDIClientWindow::OnScroll(wxScrollEvent& event)
}
#endif // wxUSE_MDI

View File

@@ -26,6 +26,8 @@
#if wxUSE_MDI && !defined(__WXUNIVERSAL__)
#include "wx/mdi.h"
#ifndef WX_PRECOMP
#include "wx/frame.h"
#include "wx/menu.h"
@@ -42,7 +44,6 @@
#endif
#include "wx/stockitem.h"
#include "wx/mdi.h"
#include "wx/msw/private.h"
#if wxUSE_STATUSBAR && wxUSE_NATIVE_STATUSBAR

View File

@@ -24,7 +24,9 @@
#pragma hdrstop
#endif
#if wxUSE_MDI && !defined(__WXUNIVERSAL__)
#if wxUSE_MDI
#include "wx/mdi.h"
#ifndef WX_PRECOMP
#include "wx/frame.h"
@@ -41,7 +43,6 @@
#include "wx/toolbar.h"
#endif
#include "wx/mdi.h"
#include "wx/palmos/private.h"
#if wxUSE_STATUSBAR && wxUSE_NATIVE_STATUSBAR
@@ -402,4 +403,4 @@ static void UnpackMDIActivate(WXWPARAM wParam, WXLPARAM lParam,
{
}
#endif // wxUSE_MDI && !defined(__WXUNIVERSAL__)
#endif // wxUSE_MDI

View File

@@ -23,10 +23,9 @@
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE
#include "wx/mdi.h"
#endif
#include "wx/mdi.h"
IMPLEMENT_DYNAMIC_CLASS(wxMdiXmlHandler, wxXmlResourceHandler)
wxMdiXmlHandler::wxMdiXmlHandler() : wxXmlResourceHandler()