1998-07-28 09:33:23 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2010-05-12 10:34:18 -04:00
|
|
|
// Name: wx/docmdi.h
|
1998-07-28 09:33:23 -04:00
|
|
|
// Purpose: Frame classes for MDI document/view applications
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
2010-05-12 10:34:18 -04:00
|
|
|
// Copyright: (c) 1997 Julian Smart
|
|
|
|
// (c) 2010 Vadim Zeitlin
|
2004-09-10 08:56:07 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-07-28 09:33:23 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DOCMDI_H_
|
|
|
|
#define _WX_DOCMDI_H_
|
|
|
|
|
1999-06-22 04:36:29 -04:00
|
|
|
#include "wx/defs.h"
|
|
|
|
|
2003-01-12 17:20:46 -05:00
|
|
|
#if wxUSE_MDI_ARCHITECTURE
|
1999-06-22 04:36:29 -04:00
|
|
|
|
1998-07-28 09:33:23 -04:00
|
|
|
#include "wx/docview.h"
|
|
|
|
#include "wx/mdi.h"
|
|
|
|
|
2010-05-12 10:34:18 -04:00
|
|
|
#ifdef __VISUALC6__
|
|
|
|
// "non dll-interface class 'wxDocXXXFrameAny<>' used as base interface for
|
|
|
|
// dll-interface class 'wxDocMDIXXXFrame'" -- this is bogus as the template
|
|
|
|
// will be DLL-exported but only once it is used as base class here!
|
|
|
|
#pragma warning (push)
|
|
|
|
#pragma warning (disable:4275)
|
|
|
|
#endif
|
1998-07-28 09:33:23 -04:00
|
|
|
|
2010-05-12 10:34:18 -04:00
|
|
|
// Define MDI versions of the doc-view frame classes. Note that we need to
|
|
|
|
// define them as classes for wxRTTI, otherwise we could simply define them as
|
|
|
|
// typedefs.
|
1998-07-28 09:33:23 -04:00
|
|
|
|
2010-05-12 10:34:18 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// An MDI document parent frame
|
|
|
|
// ----------------------------------------------------------------------------
|
2008-09-21 20:33:11 -04:00
|
|
|
|
2010-05-12 10:34:18 -04:00
|
|
|
typedef
|
|
|
|
wxDocParentFrameAny<wxMDIParentFrame> wxDocMDIParentFrameBase;
|
2008-09-21 20:33:11 -04:00
|
|
|
|
2010-05-12 10:34:18 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxDocMDIParentFrame : public wxDocMDIParentFrameBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxDocMDIParentFrame() : wxDocMDIParentFrameBase() { }
|
|
|
|
|
|
|
|
wxDocMDIParentFrame(wxDocManager *manager,
|
|
|
|
wxFrame *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_FRAME_STYLE,
|
|
|
|
const wxString& name = wxFrameNameStr)
|
|
|
|
: wxDocMDIParentFrameBase(manager,
|
|
|
|
parent, id, title, pos, size, style, name)
|
|
|
|
{
|
|
|
|
}
|
1998-07-28 09:33:23 -04:00
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
private:
|
|
|
|
DECLARE_CLASS(wxDocMDIParentFrame)
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxDocMDIParentFrame);
|
1998-07-28 09:33:23 -04:00
|
|
|
};
|
|
|
|
|
2009-02-27 07:24:03 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
2010-05-12 10:34:18 -04:00
|
|
|
// An MDI document child frame
|
2009-02-27 07:24:03 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
1998-07-28 09:33:23 -04:00
|
|
|
|
2009-02-27 07:24:03 -05:00
|
|
|
typedef
|
|
|
|
wxDocChildFrameAny<wxMDIChildFrame, wxMDIParentFrame> wxDocMDIChildFrameBase;
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxDocMDIChildFrame : public wxDocMDIChildFrameBase
|
1998-07-28 09:33:23 -04:00
|
|
|
{
|
2002-12-04 09:11:26 -05:00
|
|
|
public:
|
2010-05-12 10:34:18 -04:00
|
|
|
wxDocMDIChildFrame() { }
|
|
|
|
|
2009-02-27 07:24:03 -05:00
|
|
|
wxDocMDIChildFrame(wxDocument *doc,
|
|
|
|
wxView *view,
|
|
|
|
wxMDIParentFrame *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_FRAME_STYLE,
|
|
|
|
const wxString& name = wxFrameNameStr)
|
|
|
|
: wxDocMDIChildFrameBase(doc, view,
|
|
|
|
parent, id, title, pos, size, style, name)
|
|
|
|
{
|
|
|
|
}
|
2002-12-04 09:11:26 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_CLASS(wxDocMDIChildFrame)
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxDocMDIChildFrame);
|
1998-07-28 09:33:23 -04:00
|
|
|
};
|
|
|
|
|
2009-02-27 08:12:25 -05:00
|
|
|
#ifdef __VISUALC6__
|
2009-06-11 23:37:47 -04:00
|
|
|
#pragma warning (pop)
|
2009-02-27 08:12:25 -05:00
|
|
|
#endif
|
2009-02-27 07:24:03 -05:00
|
|
|
|
|
|
|
#endif // wxUSE_MDI_ARCHITECTURE
|
1999-06-22 13:39:02 -04:00
|
|
|
|
2009-02-27 07:24:03 -05:00
|
|
|
#endif // _WX_DOCMDI_H_
|