1 /////////////////////////////////////////////////////////////////////////////
 
   3 // Purpose:     SWIG definitions of various window classes
 
   9 // Copyright:   (c) 1998 by Total Control Software
 
  10 // Licence:     wxWindows license
 
  11 /////////////////////////////////////////////////////////////////////////////
 
  18 #include <wx/minifram.h>
 
  21 //----------------------------------------------------------------------
 
  24 %include my_typemaps.i
 
  26 // Import some definitions of other classes, etc.
 
  33 %pragma(python) code = "import wx"
 
  35 //----------------------------------------------------------------------
 
  38     wxFULLSCREEN_NOMENUBAR,
 
  39     wxFULLSCREEN_NOTOOLBAR,
 
  40     wxFULLSCREEN_NOSTATUSBAR,
 
  41     wxFULLSCREEN_NOBORDER,
 
  42     wxFULLSCREEN_NOCAPTION,
 
  47 class wxFrame : public wxWindow {
 
  49     wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
 
  50             const wxPoint& pos = wxDefaultPosition,
 
  51             const wxSize& size = wxDefaultSize,
 
  52             long style = wxDEFAULT_FRAME_STYLE,
 
  53             char* name = "frame");
 
  55     %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
 
  57     void Centre(int direction = wxBOTH);
 
  58     wxStatusBar* CreateStatusBar(int number = 1,
 
  59                                  long style = wxST_SIZEGRIP,
 
  61                                  char* name = "statusBar");
 
  62     wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
 
  64                              char* name = "toolBar");
 
  66     const wxIcon& GetIcon();
 
  67     wxMenuBar* GetMenuBar();
 
  68     wxStatusBar* GetStatusBar();
 
  70     wxToolBar* GetToolBar();
 
  71     void Iconize(bool iconize);
 
  73     void Maximize(bool maximize);
 
  76     void SetAcceleratorTable(const wxAcceleratorTable& accel);
 
  77     void SetIcon(const wxIcon& icon);
 
  78     void SetMenuBar(wxMenuBar* menuBar);
 
  79     void SetStatusBar(wxStatusBar *statusBar);
 
  80     void SetStatusText(const wxString& text, int number = 0);
 
  81     void SetStatusWidths(int LCOUNT, int* choices); // uses typemap
 
  82     void SetTitle(const wxString& title);
 
  83     void SetToolBar(wxToolBar* toolbar);
 
  84     void MakeModal(bool modal = TRUE);
 
  85     wxPoint GetClientAreaOrigin() const;
 
  87     bool ProcessCommand(int id);
 
  89     bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
 
  93 //---------------------------------------------------------------------------
 
  95 class wxMiniFrame : public wxFrame {
 
  97     wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
 
  98                 const wxPoint& pos = wxDefaultPosition,
 
  99                 const wxSize& size = wxDefaultSize,
 
 100                 long style = wxDEFAULT_FRAME_STYLE,
 
 101                 char* name = "frame");
 
 103     %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
 
 107 //---------------------------------------------------------------------------