X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8208e181cb576ec6cda37624923f95a59af43072..4c7852186d48a5b8f406462c2c3fa020f0a052bb:/include/wx/mac/dialog.h?ds=inline diff --git a/include/wx/mac/dialog.h b/include/wx/mac/dialog.h index d725df8d57..2ba611bf9a 100644 --- a/include/wx/mac/dialog.h +++ b/include/wx/mac/dialog.h @@ -64,41 +64,33 @@ public: ~wxDialog(); - virtual bool Destroy(); +// virtual bool Destroy(); + bool Show(bool show); - virtual void DoSetClientSize(int width, int height); + void SetModal(bool flag); + virtual bool IsModal() const; - virtual void GetPosition(int *x, int *y) const; + // For now, same as Show(TRUE) but returns return code + virtual int ShowModal(); - bool Show(bool show); - bool IsShown() const; - void Iconize(bool iconize); + // may be called to terminate the dialog with the given return code + virtual void EndModal(int retCode); + + // returns TRUE if we're in a modal loop + bool IsModalShowing() const; #if WXWIN_COMPATIBILITY bool Iconized() const { return IsIconized(); }; #endif - virtual bool IsIconized() const; - void Fit(); - - void SetTitle(const wxString& title); - wxString GetTitle() const ; + // implementation + // -------------- - void OnSize(wxSizeEvent& event); - bool OnClose(); + // event handlers +// 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; - - // For now, same as Show(TRUE) but returns return code - virtual int ShowModal(); - virtual void EndModal(int retCode); - // Standard buttons void OnOK(wxCommandEvent& event); void OnApply(wxCommandEvent& event); @@ -107,22 +99,8 @@ public: // Responds to colour changes void OnSysColourChanged(wxSysColourChangedEvent& event); - // implementation - // -------------- - - bool IsModalShowing() const { return m_modalShowing; } - virtual bool IsTopLevel() const { return TRUE; } - - // tooltip management -#if wxUSE_TOOLTIPS - wxMacToolTip* GetToolTipCtrl() const { return m_hwndToolTip; } - void SetToolTipCtrl(wxMacToolTip *tt) { m_hwndToolTip = tt; } - wxMacToolTip* m_hwndToolTip ; -#endif // tooltips - -protected: - bool m_modalShowing; - WXHWND m_hwndOldFocus; // the window which had focus before we were shown + // show modal dialog and enter modal loop + void DoShowModal(); private: DECLARE_EVENT_TABLE()