#import <Cocoa/Cocoa.h>
#endif
+#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
+// available in 10.4 but not in the headers
+enum {
+ kEventMouseScroll = 11
+};
+#endif
//
// shared between Cocoa and Carbon
//
WXDLLIMPEXP_BASE OSStatus wxMacPathToFSRef( const wxString&path , FSRef *fsRef );
WXDLLIMPEXP_BASE wxString wxMacHFSUniStrToString( ConstHFSUniStr255Param uniname );
+class WXDLLIMPEXP_FWD_CORE wxDialog;
+
//
//
//
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);
virtual void controlAction(WXWidget slf, void* _cmd, void* sender);
virtual void controlDoubleAction(WXWidget slf, void* _cmd, void *sender);
+
+ // for wxTextCtrl-derived classes, put here since they don't all derive
+ // from the same pimpl class.
+ virtual void controlTextDidChange();
protected:
WXWidget m_osxView;
virtual ~wxNonOwnedWindowCocoaImpl();
- virtual void Destroy() ;
+ virtual void WillBeDestroyed() ;
void Create( wxWindow* parent, const wxPoint& pos, const wxSize& size,
long style, long extraStyle, const wxString& name ) ;
virtual bool IsFullScreen() const;
virtual bool ShowFullScreen(bool show, long style);
-
+
virtual void ShowWithoutActivating();
virtual void RequestUserAttention(int flags);
virtual bool IsActive();
+ virtual void SetModified(bool modified);
+ virtual bool IsModified() const;
+
wxNonOwnedWindow* GetWXPeer() { return m_wxPeer; }
protected :
WX_wxNSWindow m_macWindow;
@end
- @interface wxNSTextField : NSTextField
+ @interface wxNSTextField : NSTextField wxOSX_10_6_AND_LATER(<NSTextFieldDelegate>)
{
wxNSTextFieldEditor* fieldEditor;
}
@end
- @interface wxNSSecureTextField : NSSecureTextField
+ @interface wxNSSecureTextField : NSSecureTextField wxOSX_10_6_AND_LATER(<NSTextFieldDelegate>)
{
}
@end
- @interface wxNSTextView : NSTextView <NSTextViewDelegate>
+ @interface wxNSTextView : NSTextView wxOSX_10_6_AND_LATER(<NSTextViewDelegate>)
{
}
-
+
- (void)textDidChange:(NSNotification *)aNotification;
-
+
@end
@interface wxNSMenu : NSMenu
{
BOOL sheetFinished;
int resultCode;
+ wxDialog* impl;
}
+ - (void)setImplementation: (wxDialog *)dialog;
- (BOOL)finished;
- (int)code;
- (void)waitForSheetToFinish;