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:
@@ -439,6 +439,18 @@ public:
|
||||
there are any open top level windows.
|
||||
*/
|
||||
virtual bool ShouldPreventAppExit() const;
|
||||
|
||||
/**
|
||||
This function sets the wxTopLevelWindow's modified state, so that the
|
||||
wxTopLevelWindow can change its GUI to reflect the current state. (e.g. on
|
||||
Mac, the close button gets a black dot to reflect that there are unsaved changes)
|
||||
*/
|
||||
virtual void SetModified(bool modified);
|
||||
|
||||
/**
|
||||
Returns the current modified state of the wxTopLevelWindow.
|
||||
*/
|
||||
virtual bool GetModified() const;
|
||||
|
||||
/**
|
||||
Depending on the value of @a show parameter the window is either shown
|
||||
|
Reference in New Issue
Block a user