X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b99c746cad47851c4a1d9409aaefa20abc94a255..75a2c6a1ee034a5d866b4a121a97351603bce98b:/src/osx/toplevel_osx.cpp?ds=inline diff --git a/src/osx/toplevel_osx.cpp b/src/osx/toplevel_osx.cpp index 75380afe01..8abcfbab43 100644 --- a/src/osx/toplevel_osx.cpp +++ b/src/osx/toplevel_osx.cpp @@ -148,7 +148,8 @@ wxPoint wxTopLevelWindowMac::GetClientAreaOrigin() const void wxTopLevelWindowMac::SetTitle(const wxString& title) { wxWindow::SetLabel( title ) ; - m_nowpeer->SetTitle(title, GetFont().GetEncoding() ); + if ( m_nowpeer ) + m_nowpeer->SetTitle(title, GetFont().GetEncoding() ); } wxString wxTopLevelWindowMac::GetTitle() const @@ -156,6 +157,18 @@ wxString wxTopLevelWindowMac::GetTitle() const return wxWindow::GetLabel(); } +void wxTopLevelWindowMac::ShowWithoutActivating() +{ + // wxTopLevelWindowBase is derived from wxNonOwnedWindow, so don't + // call it here. + if ( !wxWindow::Show(true) ) + return; + + m_nowpeer->ShowWithoutActivating(); + + // TODO: Should we call EVT_SIZE here? +} + bool wxTopLevelWindowMac::ShowFullScreen(bool show, long style) { return m_nowpeer->ShowFullScreen(show, style); @@ -170,3 +183,18 @@ void wxTopLevelWindowMac::RequestUserAttention(int flags) { return m_nowpeer->RequestUserAttention(flags); } + +bool wxTopLevelWindowMac::IsActive() +{ + return m_nowpeer->IsActive(); +} + +void wxTopLevelWindowMac::OSXSetModified(bool modified) +{ + m_nowpeer->SetModified(modified); +} + +bool wxTopLevelWindowMac::OSXIsModified() const +{ + return m_nowpeer->IsModified(); +}