1 /////////////////////////////////////////////////////////////////////////////
 
   3 // Purpose:     SWIG interface for MDI related class definitions
 
   7 // Created:     26-May-1998
 
   9 // Copyright:   (c) 2003 by Total Control Software
 
  10 // Licence:     wxWindows license
 
  11 /////////////////////////////////////////////////////////////////////////////
 
  16 //---------------------------------------------------------------------------
 
  23 //---------------------------------------------------------------------------
 
  25 #define IDM_WINDOWTILE          4001
 
  26 #define IDM_WINDOWTILEHOR       4001
 
  27 #define IDM_WINDOWCASCADE       4002
 
  28 #define IDM_WINDOWICONS         4003
 
  29 #define IDM_WINDOWNEXT          4004
 
  30 #define IDM_WINDOWTILEVERT      4005
 
  31 #define wxFIRST_MDI_CHILD       4100
 
  32 #define wxLAST_MDI_CHILD        4600
 
  36 class wxMDIParentFrame : public wxFrame {
 
  38     %addtofunc wxMDIParentFrame         "self._setOORInfo(self)"
 
  39     %addtofunc wxMDIParentFrame()       ""
 
  41     wxMDIParentFrame(wxWindow *parent,
 
  43                      const wxString& title,
 
  44                      const wxPoint& pos = wxDefaultPosition,
 
  45                      const wxSize& size = wxDefaultSize,
 
  46                      long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
 
  47                      const wxString& name = wxPyFrameNameStr);
 
  48     %name(PreMDIParentFrame)wxMDIParentFrame();
 
  50     bool Create(wxWindow *parent,
 
  52                      const wxString& title,
 
  53                      const wxPoint& pos = wxDefaultPosition,
 
  54                      const wxSize& size = wxDefaultSize,
 
  55                      long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
 
  56                      const wxString& name = wxPyFrameNameStr);
 
  60     void ActivatePrevious();
 
  63     wxMDIChildFrame* GetActiveChild();
 
  64     wxMDIClientWindow* GetClientWindow();
 
  65     wxWindow* GetToolBar();
 
  67     // TODO:  This isn't handled by the standard event-table system...
 
  68     //wxMDIClientWindow* OnCreateClient();
 
  72     wxMenu* GetWindowMenu();
 
  73     void SetWindowMenu(wxMenu* menu);
 
  74     void SetToolBar(wxToolBar* toolbar);
 
  79 //---------------------------------------------------------------------------
 
  81 class wxMDIChildFrame : public wxFrame {
 
  83     %addtofunc wxMDIChildFrame         "self._setOORInfo(self)"
 
  84     %addtofunc wxMDIChildFrame()       ""
 
  86     wxMDIChildFrame(wxMDIParentFrame* parent,
 
  88                     const wxString& title,
 
  89                     const wxPoint& pos = wxDefaultPosition,
 
  90                     const wxSize& size = wxDefaultSize,
 
  91                     long style = wxDEFAULT_FRAME_STYLE,
 
  92                     const wxString& name = wxPyFrameNameStr);
 
  93     %name(PreMDIChildFrame)wxMDIChildFrame();
 
  95     bool Create(wxMDIParentFrame* parent,
 
  97                     const wxString& title,
 
  98                     const wxPoint& pos = wxDefaultPosition,
 
  99                     const wxSize& size = wxDefaultSize,
 
 100                     long style = wxDEFAULT_FRAME_STYLE,
 
 101                     const wxString& name = wxPyFrameNameStr);
 
 104     void Maximize(bool maximize);
 
 110 //---------------------------------------------------------------------------
 
 112 class wxMDIClientWindow : public wxWindow {
 
 114     %addtofunc wxMDIClientWindow         "self._setOORInfo(self)"
 
 115     %addtofunc wxMDIClientWindow()       ""
 
 117     wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
 
 118     %name(PreMDIClientWindow)wxMDIClientWindow();
 
 120     bool Create(wxMDIParentFrame* parent, long style = 0);
 
 124 //---------------------------------------------------------------------------