]> git.saurik.com Git - wxWidgets.git/commitdiff
Add OSX prefix, and be clear that this is OS X only API to avoid any expectation...
authorKevin Ollivier <kevino@theolliviers.com>
Wed, 9 Dec 2009 05:25:32 +0000 (05:25 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Wed, 9 Dec 2009 05:25:32 +0000 (05:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/osx/cocoa/private.h
include/wx/osx/core/private.h
include/wx/osx/toplevel.h
include/wx/toplevel.h
interface/wx/toplevel.h
src/osx/cocoa/nonownedwnd.mm
src/osx/toplevel_osx.cpp

index 65991e48df83e21948284ebe390c19849fa44517..dabd225172be15e63d8c894203d8616b4bf10fc4 100644 (file)
@@ -246,7 +246,7 @@ public :
     virtual bool IsActive();
     
     virtual void SetModified(bool modified);
-    virtual bool GetModified() const;
+    virtual bool IsModified() const;
 
     wxNonOwnedWindow*   GetWXPeer() { return m_wxPeer; }
 protected :
index 59d4841241f021f03f9c8d033b8b00d03c90e5d9..6f64bc39c1a8d6dbdca5384e97143863decdebcc 100644 (file)
@@ -755,7 +755,7 @@ public :
     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;
index 1e7f8644634a4fd2fe81f850a3113e14a5cf0d74..14fb396b8bbef3bbc023f5335d1ed61310f5cc50 100644 (file)
@@ -75,8 +75,8 @@ public:
     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
index 53213dd885d2ab26aa7fb285f056136bba582385..cce46ab1cb405deda4fa4bb65b1562418f55519b 100644 (file)
@@ -257,8 +257,8 @@ public:
     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
index d712256b500272ed61e70a318e63eb12b74f7bd5..29a65bfb2f6b2c8f34c62a322a8a9b36a3466b2d 100644 (file)
@@ -441,16 +441,21 @@ public:
     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
index 10098f74f53f32471c798f445e7929b508cd60dc..9ed1300159c7dd4b7858798e6daf7a2301961451 100644 (file)
@@ -732,7 +732,7 @@ void wxNonOwnedWindowCocoaImpl::SetModified(bool modified)
     [m_macWindow setDocumentEdited:modified];
 }
 
-bool wxNonOwnedWindowCocoaImpl::GetModified() const
+bool wxNonOwnedWindowCocoaImpl::IsModified() const
 {
     return [m_macWindow isDocumentEdited];
 }
index cd91ccb82b91aeb9d0679032f564a845e594151c..3b6f61c6a23722fa2d472df3200811bc7d77cd45 100644 (file)
@@ -187,12 +187,12 @@ bool wxTopLevelWindowMac::IsActive()
     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();
+}