git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39644
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/dcclient.h"
#include "wx/dcscreen.h"
#include "wx/toolbar.h"
#include "wx/dcclient.h"
#include "wx/dcscreen.h"
#include "wx/toolbar.h"
#endif
//#include "wx/dcbuffer.h"
#include "wx/image.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"
WX_CHECK_BUILD_OPTIONS("wxAUI")
#include "wx/arrimpl.cpp"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/cocoa/mdi.mm
// Purpose: wxMDIParentFrame, wxMDIChildFrame, wxMDIClientWindow
// Author: David Elliott
// Modified by:
// Purpose: wxMDIParentFrame, wxMDIChildFrame, wxMDIClientWindow
// Author: David Elliott
// Modified by:
#ifndef WX_PRECOMP
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#endif // WX_PRECOMP
// #include "wx/cocoa/autorelease.h"
#endif // WX_PRECOMP
// #include "wx/cocoa/autorelease.h"
}
wxMDIClientWindow::wxMDIClientWindow(wxMDIParentFrame *parent, long style)
}
wxMDIClientWindow::wxMDIClientWindow(wxMDIParentFrame *parent, long style)
+ :wxWindow(parent, wxID_ANY)
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/msgdlg.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/msgdlg.h"
#endif
#include "wx/ffile.h"
#endif
#include "wx/ffile.h"
#include "wx/filename.h"
#endif
#include "wx/filename.h"
#endif
-#ifdef __WXGTK__
- #include "wx/mdi.h"
-#endif
-
#if wxUSE_PRINTING_ARCHITECTURE
#include "wx/prntbase.h"
#include "wx/printdlg.h"
#if wxUSE_PRINTING_ARCHITECTURE
#include "wx/prntbase.h"
#include "wx/printdlg.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// 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
// 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/wxprec.h"
#if wxUSE_MDI
#include "wx/log.h"
#include "wx/menu.h"
#include "wx/settings.h"
#include "wx/log.h"
#include "wx/menu.h"
#include "wx/settings.h"
IMPLEMENT_DYNAMIC_CLASS(wxMDIClientWindow, wxWindow)
BEGIN_EVENT_TABLE(wxMDIParentFrame, 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)
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");
END_EVENT_TABLE()
static const wxChar *TRACE_MDI = _T("mdi");
}
bool wxMDIChildFrame::Create(wxMDIParentFrame *parent,
}
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)
- if ( id > -1 )
- m_windowId = id;
- else
m_windowId = (int)NewControlId();
m_windowId = (int)NewControlId();
+ else
+ m_windowId = id;
if (parent)
parent->AddChild(this);
if (parent)
parent->AddChild(this);
#if wxUSE_MDI && !defined(__WXUNIVERSAL__)
#if wxUSE_MDI && !defined(__WXUNIVERSAL__)
#ifndef WX_PRECOMP
#include "wx/frame.h"
#include "wx/menu.h"
#ifndef WX_PRECOMP
#include "wx/frame.h"
#include "wx/menu.h"
#endif
#include "wx/stockitem.h"
#endif
#include "wx/stockitem.h"
#include "wx/msw/private.h"
#if wxUSE_STATUSBAR && wxUSE_NATIVE_STATUSBAR
#include "wx/msw/private.h"
#if wxUSE_STATUSBAR && wxUSE_NATIVE_STATUSBAR
-#if wxUSE_MDI && !defined(__WXUNIVERSAL__)
+#if wxUSE_MDI
+
+#include "wx/mdi.h"
#ifndef WX_PRECOMP
#include "wx/frame.h"
#ifndef WX_PRECOMP
#include "wx/frame.h"
#include "wx/toolbar.h"
#endif
#include "wx/toolbar.h"
#endif
#include "wx/palmos/private.h"
#if wxUSE_STATUSBAR && wxUSE_NATIVE_STATUSBAR
#include "wx/palmos/private.h"
#if wxUSE_STATUSBAR && wxUSE_NATIVE_STATUSBAR
-#endif // wxUSE_MDI && !defined(__WXUNIVERSAL__)
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE
IMPLEMENT_DYNAMIC_CLASS(wxMdiXmlHandler, wxXmlResourceHandler)
wxMdiXmlHandler::wxMdiXmlHandler() : wxXmlResourceHandler()
IMPLEMENT_DYNAMIC_CLASS(wxMdiXmlHandler, wxXmlResourceHandler)
wxMdiXmlHandler::wxMdiXmlHandler() : wxXmlResourceHandler()