- char* name = "statusBar");
- wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
- wxWindowID id = -1,
- char* name = "toolBar");
-
- const wxIcon& GetIcon();
- wxMenuBar* GetMenuBar();
- wxStatusBar* GetStatusBar();
- wxString GetTitle();
- wxToolBar* GetToolBar();
- void Iconize(bool iconize);
- bool IsIconized();
- void Maximize(bool maximize);
- bool IsMaximized();
- void Restore();
- void SetAcceleratorTable(const wxAcceleratorTable& accel);
- void SetIcon(const wxIcon& icon);
- void SetMenuBar(wxMenuBar* menuBar);
- void SetStatusBar(wxStatusBar *statusBar);
- void SetStatusText(const wxString& text, int number = 0);
- void SetStatusWidths(int LCOUNT, int* choices); // uses typemap
- void SetTitle(const wxString& title);
- void SetToolBar(wxToolBar* toolbar);
- void MakeModal(bool modal = TRUE);
- wxPoint GetClientAreaOrigin() const;
- bool Command(int id);
- bool ProcessCommand(int id);
- bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
+ const wxString& name = wxPyStatusLineNameStr);
+
+ // get the main status bar
+ wxStatusBar *GetStatusBar();
+
+ // sets the main status bar
+ void SetStatusBar(wxStatusBar *statBar);
+
+ // forward these to status bar
+ virtual void SetStatusText(const wxString &text, int number = 0);
+ virtual void SetStatusWidths(int LCOUNT, int* choices); // uses typemap
+ void PushStatusText(const wxString &text, int number = 0);
+ void PopStatusText(int number = 0);
+
+ // show help text (typically in the statusbar); show is FALSE
+ // if you are hiding the help, TRUE otherwise
+ virtual void DoGiveHelp(const wxString& text, bool show);
+
+ // set the status bar pane the help will be shown in
+ void SetStatusBarPane(int n);
+ int GetStatusBarPane() const;
+
+
+ // create main toolbar
+ virtual wxToolBar* CreateToolBar(long style = -1, //wxNO_BORDER|wxTB_HORIZONTAL,
+ wxWindowID id = -1,
+ const wxString& name = wxPyToolBarNameStr);
+
+ // get/set the main toolbar
+ virtual wxToolBar *GetToolBar() const { return m_frameToolBar; }
+ virtual void SetToolBar(wxToolBar *toolbar) { m_frameToolBar = toolbar; }
+
+ // sends a size event to the window using its current size -- this has an
+ // effect of refreshing the window layout
+ virtual void SendSizeEvent();
+
+
+ // send wxUpdateUIEvents for all menu items in the menubar,
+ // or just for menu if non-NULL
+ void DoMenuUpdates(wxMenu* menu = NULL);
+
+ // do the UI update processing for this window
+ virtual void UpdateWindowUI(long flags = wxUPDATE_UI_NONE);
+};
+
+//---------------------------------------------------------------------------
+
+class wxDialog : public wxTopLevelWindow {
+public:
+ wxDialog(wxWindow* parent,
+ const wxWindowID id,
+ const wxString& title,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_DIALOG_STYLE,
+ const wxString& name = wxPyDialogNameStr);
+ %name(wxPreDialog)wxDialog();
+
+ bool Create(wxWindow* parent,
+ const wxWindowID id,
+ const wxString& title,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_DIALOG_STYLE,
+ const wxString& name = wxPyDialogNameStr);
+
+ %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreDialog:val._setOORInfo(val)"
+
+ void Centre(int direction = wxBOTH);
+ void EndModal(int retCode);
+ void SetModal(bool flag);
+ bool IsModal();
+ int ShowModal();
+
+ int GetReturnCode();
+ void SetReturnCode(int retCode);
+
+ wxSizer* CreateTextSizer( const wxString &message );
+ wxSizer* CreateButtonSizer( long flags );
+