1998-07-28 13:33:23 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2010-05-12 14:34:18 +00:00
|
|
|
// Name: wx/docmdi.h
|
1998-07-28 13:33:23 +00:00
|
|
|
// Purpose: Frame classes for MDI document/view applications
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Created: 01/02/97
|
2010-05-12 14:34:18 +00:00
|
|
|
// Copyright: (c) 1997 Julian Smart
|
|
|
|
// (c) 2010 Vadim Zeitlin
|
2004-09-10 12:56:07 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-07-28 13:33:23 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DOCMDI_H_
|
|
|
|
#define _WX_DOCMDI_H_
|
|
|
|
|
1999-06-22 08:36:29 +00:00
|
|
|
#include "wx/defs.h"
|
|
|
|
|
2003-01-12 22:20:46 +00:00
|
|
|
#if wxUSE_MDI_ARCHITECTURE
|
1999-06-22 08:36:29 +00:00
|
|
|
|
1998-07-28 13:33:23 +00:00
|
|
|
#include "wx/docview.h"
|
|
|
|
#include "wx/mdi.h"
|
|
|
|
|
2010-05-12 14:34:18 +00: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 13:33:23 +00:00
|
|
|
|
2010-05-12 14:34:18 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// An MDI document parent frame
|
|
|
|
// ----------------------------------------------------------------------------
|
2008-09-22 00:33:11 +00:00
|
|
|
|
2010-05-12 14:34:18 +00:00
|
|
|
typedef
|
|
|
|
wxDocParentFrameAny<wxMDIParentFrame> wxDocMDIParentFrameBase;
|
2008-09-22 00:33:11 +00:00
|
|
|
|
2010-05-12 14:34:18 +00: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 13:33:23 +00:00
|
|
|
|
2002-12-04 14:11:26 +00:00
|
|
|
private:
|
|
|
|
DECLARE_CLASS(wxDocMDIParentFrame)
|
2009-02-08 11:45:59 +00:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxDocMDIParentFrame);
|
1998-07-28 13:33:23 +00:00
|
|
|
};
|
|
|
|
|
2009-02-27 12:24:03 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
2010-05-12 14:34:18 +00:00
|
|
|
// An MDI document child frame
|
2009-02-27 12:24:03 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
1998-07-28 13:33:23 +00:00
|
|
|
|
2009-02-27 12:24:03 +00:00
|
|
|
typedef
|
|
|
|
wxDocChildFrameAny<wxMDIChildFrame, wxMDIParentFrame> wxDocMDIChildFrameBase;
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxDocMDIChildFrame : public wxDocMDIChildFrameBase
|
1998-07-28 13:33:23 +00:00
|
|
|
{
|
2002-12-04 14:11:26 +00:00
|
|
|
public:
|
2010-05-12 14:34:18 +00:00
|
|
|
wxDocMDIChildFrame() { }
|
|
|
|
|
2009-02-27 12:24:03 +00: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 14:11:26 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_CLASS(wxDocMDIChildFrame)
|
2009-02-08 11:45:59 +00:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxDocMDIChildFrame);
|
1998-07-28 13:33:23 +00:00
|
|
|
};
|
|
|
|
|
2009-02-27 12:24:03 +00:00
|
|
|
#endif // wxUSE_MDI_ARCHITECTURE
|
1999-06-22 17:39:02 +00:00
|
|
|
|
2009-02-27 12:24:03 +00:00
|
|
|
#endif // _WX_DOCMDI_H_
|