-
- ~wxDialog();
-
- virtual bool Destroy();
-
- virtual void SetClientSize(int width, int height);
-
- virtual void GetPosition(int *x, int *y) const;
-
- bool Show(bool show);
- bool IsShown() const;
- void Iconize(bool iconize);
-
-#if WXWIN_COMPATIBILITY
- bool Iconized() const { return IsIconized(); };
-#endif
-
- virtual bool IsIconized() const;
- void Fit();
-
- void SetTitle(const wxString& title);
- wxString GetTitle() const ;
-
- void OnSize(wxSizeEvent& event);
- bool OnClose();
- void OnCharHook(wxKeyEvent& event);
- void OnPaint(wxPaintEvent& event);
- void OnCloseWindow(wxCloseEvent& event);
-
- void SetModal(bool flag);
-
- virtual void Centre(int direction = wxBOTH);
- virtual bool IsModal() const
- { return ((GetWindowStyleFlag() & wxDIALOG_MODAL) == wxDIALOG_MODAL); }
-
- // For now, same as Show(TRUE) but returns return code
+
+ virtual ~wxDialog();
+
+ // return true if we're showing the dialog modally
+ virtual bool IsModal() const { return m_modalData != NULL; }
+
+ // show the dialog modally and return the value passed to EndModal()