X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfc6fde4b1dd5bfd8ae22839ff9a69cf24eb9120..6db90681cf0b58209a061561f5d3624f6eda8024:/include/wx/gtk/dialog.h diff --git a/include/wx/gtk/dialog.h b/include/wx/gtk/dialog.h index 002c3e1bed..82334eb479 100644 --- a/include/wx/gtk/dialog.h +++ b/include/wx/gtk/dialog.h @@ -29,7 +29,7 @@ class wxDialog; // global data //----------------------------------------------------------------------------- -extern const char *wxDialogNameStr; +extern const wxChar *wxDialogNameStr; //----------------------------------------------------------------------------- // wxDialog @@ -40,7 +40,7 @@ class wxDialog: public wxPanel DECLARE_DYNAMIC_CLASS(wxDialog) public: - wxDialog(); + wxDialog() { Init(); } wxDialog( wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos = wxDefaultPosition, @@ -87,6 +87,9 @@ public: virtual void Maximize() { } virtual void Restore() { } + void SetReturnCode(int returnCode) { m_returnCode = returnCode; } + int GetReturnCode() const { return m_returnCode; } + // implementation virtual void GtkOnSize( int x, int y, int width, int height ); @@ -97,11 +100,16 @@ public: wxIcon m_icon; protected: + // common part of all ctors + void Init(); + virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); private: + int m_returnCode; + DECLARE_EVENT_TABLE() };