X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/267ba369d605996cf6f9673aad528bfcf662f942..98040646309346e375e05ff923baada721618ab2:/include/wx/osx/cocoa/private.h diff --git a/include/wx/osx/cocoa/private.h b/include/wx/osx/cocoa/private.h index 7b8b32008d..dabd225172 100644 --- a/include/wx/osx/cocoa/private.h +++ b/include/wx/osx/cocoa/private.h @@ -73,6 +73,17 @@ public : virtual bool IsVisible() const ; virtual void SetVisibility(bool); + // we provide a static function which can be reused from + // wxNonOwnedWindowCocoaImpl too + static bool ShowViewOrWindowWithEffect(wxWindow *win, + bool show, + wxShowEffect effect, + unsigned timeout); + + virtual bool ShowWithEffect(bool show, + wxShowEffect effect, + unsigned timeout); + virtual void Raise(); virtual void Lower(); @@ -133,7 +144,7 @@ public : virtual bool DoHandleKeyEvent(NSEvent *event); virtual bool DoHandleCharEvent(NSEvent *event, NSString *text); virtual void DoNotifyFocusEvent(bool receivedFocus, wxWidgetImpl* otherWindow); - + virtual void SetupKeyEvent(wxKeyEvent &wxevent, NSEvent * nsEvent, NSString* charString = NULL); virtual void SetupMouseEvent(wxMouseEvent &wxevent, NSEvent * nsEvent); @@ -190,12 +201,16 @@ public : void Raise(); void Lower(); bool Show(bool show); - bool ShowWithEffect(bool show, wxShowEffect effect, unsigned timeout); + + virtual bool ShowWithEffect(bool show, + wxShowEffect effect, + unsigned timeout); void Update(); bool SetTransparent(wxByte alpha); bool SetBackgroundColour(const wxColour& col ); void SetExtraStyle( long exStyle ); + void SetWindowStyleFlag( long style ); bool SetBackgroundStyle(wxBackgroundStyle style); bool CanSetTransparent(); @@ -220,12 +235,19 @@ public : virtual bool ShowFullScreen(bool show, long style); + virtual void ShowWithoutActivating(); + virtual void RequestUserAttention(int flags); virtual void ScreenToWindow( int *x, int *y ); virtual void WindowToScreen( int *x, int *y ); + virtual bool IsActive(); + + virtual void SetModified(bool modified); + virtual bool IsModified() const; + wxNonOwnedWindow* GetWXPeer() { return m_wxPeer; } protected : WX_wxNSWindow m_macWindow; @@ -247,6 +269,7 @@ protected : @interface wxNSButton : NSButton { + NSTrackingRectTag rectTag; } @end @@ -281,10 +304,12 @@ protected : @end - @interface wxNSTextView : NSTextView + @interface wxNSTextView : NSTextView wxOSX_10_6_AND_LATER() { } + - (void)textDidChange:(NSNotification *)aNotification; + @end @interface wxNSMenu : NSMenu