]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/docmdi.h
update minimum GTK2 version requirement to 2.6
[wxWidgets.git] / interface / wx / docmdi.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: docmdi.h
0c1fe6e9 3// Purpose: interface of wxDocMDIParentFrame and wxDocMDIChildFrame
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
526954c5 6// Licence: wxWindows licence
23324ae1
FM
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxDocMDIParentFrame
7c913512 11
23324ae1 12 The wxDocMDIParentFrame class provides a default top-level frame for
0c1fe6e9
BP
13 applications using the document/view framework. This class can only be used
14 for MDI parent frames.
7c913512 15
0c1fe6e9
BP
16 It cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate
17 classes.
7c913512 18
23324ae1 19 @library{wxcore}
0c1fe6e9 20 @category{docview}
7c913512 21
0c1fe6e9 22 @see @ref overview_docview, @ref page_samples_docview, wxMDIParentFrame
23324ae1
FM
23*/
24class wxDocMDIParentFrame : public wxMDIParentFrame
25{
26public:
27 //@{
28 /**
29 Constructor.
30 */
31 wxDocMDIParentFrame();
4cc4bfaf 32 wxDocMDIParentFrame(wxDocManager* manager, wxFrame* parent,
7c913512
FM
33 wxWindowID id,
34 const wxString& title,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize,
37 long style = wxDEFAULT_FRAME_STYLE,
408776d0 38 const wxString& name = wxFrameNameStr);
23324ae1
FM
39 //@}
40
41 /**
42 Destructor.
43 */
adaaa686 44 virtual ~wxDocMDIParentFrame();
23324ae1
FM
45
46 /**
47 Creates the window.
48 */
4cc4bfaf 49 bool Create(wxDocManager* manager, wxFrame* parent,
23324ae1
FM
50 wxWindowID id, const wxString& title,
51 const wxPoint& pos = wxDefaultPosition,
52 const wxSize& size = wxDefaultSize,
53 long style = wxDEFAULT_FRAME_STYLE,
408776d0 54 const wxString& name = wxFrameNameStr);
23324ae1
FM
55};
56
57
e54c96f1 58
23324ae1
FM
59/**
60 @class wxDocMDIChildFrame
7c913512 61
0c1fe6e9
BP
62 The wxDocMDIChildFrame class provides a default frame for displaying
63 documents on separate windows. This class can only be used for MDI child
64 frames.
7c913512 65
23324ae1 66 The class is part of the document/view framework supported by wxWidgets,
0c1fe6e9
BP
67 and cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate
68 classes.
7c913512 69
23324ae1 70 @library{wxcore}
0c1fe6e9 71 @category{docview}
7c913512 72
0c1fe6e9 73 @see @ref overview_docview, @ref page_samples_docview, wxMDIChildFrame
23324ae1
FM
74*/
75class wxDocMDIChildFrame : public wxMDIChildFrame
76{
77public:
78 /**
79 Constructor.
80 */
81 wxDocMDIChildFrame(wxDocument* doc, wxView* view,
408776d0 82 wxMDIParentFrame* parent, wxWindowID id,
23324ae1
FM
83 const wxString& title,
84 const wxPoint& pos = wxDefaultPosition,
85 const wxSize& size = wxDefaultSize,
86 long style = wxDEFAULT_FRAME_STYLE,
408776d0 87 const wxString& name = wxFrameNameStr);
23324ae1
FM
88
89 /**
90 Destructor.
91 */
adaaa686 92 virtual ~wxDocMDIChildFrame();
23324ae1
FM
93
94 /**
95 Returns the document associated with this frame.
96 */
328f5751 97 wxDocument* GetDocument() const;
23324ae1
FM
98
99 /**
100 Returns the view associated with this frame.
101 */
328f5751 102 wxView* GetView() const;
23324ae1 103
23324ae1
FM
104 /**
105 Sets the document for this frame.
106 */
4cc4bfaf 107 void SetDocument(wxDocument* doc);
23324ae1
FM
108
109 /**
110 Sets the view for this frame.
111 */
4cc4bfaf 112 void SetView(wxView* view);
23324ae1 113};
e54c96f1 114