Add wxTLW::SetModified to allow apps to set the TLW's dirty state. On Mac this gives us the dot in the close button, not implemented elsewhere yet.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -256,6 +256,9 @@ public:
|
||||
// a different API for SetSizeHints
|
||||
virtual void SetMinSize(const wxSize& minSize);
|
||||
virtual void SetMaxSize(const wxSize& maxSize);
|
||||
|
||||
virtual void SetModified(bool modified) { m_modified = modified; }
|
||||
virtual bool GetModified() const { return m_modified; }
|
||||
|
||||
protected:
|
||||
// the frame client to screen translation should take account of the
|
||||
@@ -304,6 +307,8 @@ protected:
|
||||
|
||||
// a temporary override of m_winDefault, use the latter if NULL
|
||||
wxWindowRef m_winTmpDefault;
|
||||
|
||||
bool m_modified;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxTopLevelWindowBase);
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
Reference in New Issue
Block a user