virtual bool IsModified() const;
wxNonOwnedWindow* GetWXPeer() { return m_wxPeer; }
+
+ CGWindowLevel GetWindowLevel() const { return m_macWindowLevel; }
+ void RestoreWindowLevel();
protected :
+ CGWindowLevel m_macWindowLevel;
WXWindow m_macWindow;
void * m_macFullScreenData ;
DECLARE_DYNAMIC_CLASS_NO_COPY(wxNonOwnedWindowCocoaImpl)
virtual void SetModified(bool WXUNUSED(modified)) { }
virtual bool IsModified() const { return false; }
+ virtual CGWindowLevel GetWindowLevel() const { return kCGNormalWindowLevel; }
+ virtual void RestoreWindowLevel() {}
protected :
wxNonOwnedWindow* m_wxPeer;
DECLARE_ABSTRACT_CLASS(wxNonOwnedWindowImpl)
}
[m_macWindow setLevel:level];
+ m_macWindowLevel = level;
[m_macWindow setDelegate:controller];
level = kCGFloatingWindowLevel;
[m_macWindow setLevel: level];
+ m_macWindowLevel = level;
}
}
return [m_macWindow isDocumentEdited];
}
+void wxNonOwnedWindowCocoaImpl::RestoreWindowLevel()
+{
+ if ( [m_macWindow level] != m_macWindowLevel )
+ [m_macWindow setLevel:m_macWindowLevel];
+}
+
+//
+//
+//
+
wxNonOwnedWindowImpl* wxNonOwnedWindowImpl::CreateNonOwnedWindow( wxNonOwnedWindow* wxpeer, wxWindow* parent, WXWindow nativeWindow)
{
wxNonOwnedWindowCocoaImpl* now = new wxNonOwnedWindowCocoaImpl( wxpeer );
now->Create( parent, pos, size, style , extraStyle, name );
return now;
}
+