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
|
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
|
|
|
// 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,
|
2019-10-22 06:34:29 -04:00
|
|
|
const wxString& name = wxASCII_STR(wxFrameNameStr))
|
2010-05-12 10:34:18 -04:00
|
|
|
: 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:
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_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,
|
2019-10-22 06:34:29 -04:00
|
|
|
const wxString& name = wxASCII_STR(wxFrameNameStr))
|
2009-02-27 07:24:03 -05:00
|
|
|
: wxDocMDIChildFrameBase(doc, view,
|
|
|
|
parent, id, title, pos, size, style, name)
|
|
|
|
{
|
|
|
|
}
|
2002-12-04 09:11:26 -05:00
|
|
|
|
|
|
|
private:
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_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 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_
|