- 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);
- bool IsFullScreen();
+
+ // 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
+
+
+ // create main toolbar
+ virtual wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL,
+ wxWindowID id = -1,
+ const char* name = "toolBar");
+
+ // get/set the main toolbar
+ virtual wxToolBar *GetToolBar() const { return m_frameToolBar; }
+ virtual void SetToolBar(wxToolBar *toolbar) { m_frameToolBar = toolbar; }
+
+};
+
+//---------------------------------------------------------------------------
+
+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 char* name = "dialogBox");
+ %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 char* name = "dialogBox");
+
+ %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 );
+