virtual bool IsActive();
virtual void SetModified(bool modified);
- virtual bool GetModified() const;
+ virtual bool IsModified() const;
wxNonOwnedWindow* GetWXPeer() { return m_wxPeer; }
protected :
long style, long extraStyle, const wxString& name ) ;
virtual void SetModified(bool WXUNUSED(modified)) { }
- virtual bool GetModified() const { return false; }
+ virtual bool IsModified() const { return false; }
protected :
wxNonOwnedWindow* m_wxPeer;
virtual void SetTitle( const wxString& title);
virtual wxString GetTitle() const;
- virtual void SetModified(bool modified);
- virtual bool GetModified() const;
+ virtual void OSXSetModified(bool modified);
+ virtual bool OSXIsModified() const;
protected:
// common part of all ctors
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; }
+ virtual void OSXSetModified(bool modified) { m_modified = modified; }
+ virtual bool OSXIsModified() const { return m_modified; }
protected:
// the frame client to screen translation should take account of the
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)
+ This function sets the wxTopLevelWindow's modified state on OS X,
+ which currently draws a black dot in the wxTopLevelWindow's close button.
+ On other platforms, this method does nothing.
+
+ @see OSXIsModified()
*/
- virtual void SetModified(bool modified);
+ virtual void OSXSetModified(bool modified);
/**
- Returns the current modified state of the wxTopLevelWindow.
+ Returns the current modified state of the wxTopLevelWindow on OS X.
+ On other platforms, this method does nothing.
+
+ @see OSXSetModified()
*/
- virtual bool GetModified() const;
+ virtual bool OSXIsModified() const;
/**
Depending on the value of @a show parameter the window is either shown
[m_macWindow setDocumentEdited:modified];
}
-bool wxNonOwnedWindowCocoaImpl::GetModified() const
+bool wxNonOwnedWindowCocoaImpl::IsModified() const
{
return [m_macWindow isDocumentEdited];
}
return m_nowpeer->IsActive();
}
-void wxTopLevelWindowMac::SetModified(bool modified)
+void wxTopLevelWindowMac::OSXSetModified(bool modified)
{
m_nowpeer->SetModified(modified);
}
-bool wxTopLevelWindowMac::GetModified() const
+bool wxTopLevelWindowMac::OSXIsModified() const
{
- return m_nowpeer->GetModified();
-}
\ No newline at end of file
+ return m_nowpeer->IsModified();
+}