void SetDefaultButton( bool isDefault );
void PerformClick();
- void SetLabel(const wxString& title, wxFontEncoding encoding);
+ virtual void SetLabel(const wxString& title, wxFontEncoding encoding);
void SetCursor( const wxCursor & cursor );
void CaptureMouse();
virtual bool DoHandleMouseEvent(NSEvent *event);
virtual bool DoHandleKeyEvent(NSEvent *event);
virtual bool DoHandleCharEvent(NSEvent *event, NSString *text);
- virtual void DoNotifyFocusEvent(bool receivedFocus);
+ virtual void DoNotifyFocusEvent(bool receivedFocus, wxWidgetImpl* otherWindow);
void SetFlipped(bool flipped);
- bool IsFlipped() const { return m_isFlipped; }
+ virtual bool IsFlipped() const { return m_isFlipped; }
// cocoa thunk connected calls
virtual void keyEvent(WX_NSEvent event, WXWidget slf, void* _cmd);
virtual void insertText(NSString* text, WXWidget slf, void* _cmd);
virtual bool performKeyEquivalent(WX_NSEvent event, WXWidget slf, void* _cmd);
+ virtual bool acceptsFirstResponder(WXWidget slf, void* _cmd);
virtual bool becomeFirstResponder(WXWidget slf, void* _cmd);
virtual bool resignFirstResponder(WXWidget slf, void* _cmd);
virtual void resetCursorRects(WXWidget slf, void* _cmd);
@interface wxNSTextField : NSTextField
{
- wxWidgetCocoaImpl* impl;
}
-
- - (void) setImplementation:(wxWidgetCocoaImpl*) item;
- - (wxWidgetCocoaImpl*) implementation;
@end
@interface wxNSMenu : NSMenu
void WXDLLIMPEXP_CORE wxOSXCocoaClassAddWXMethods(Class c);
+ /*
+ We need this for ShowModal, as the sheet just disables the parent window and
+ returns control to the app, whereas we don't want to return from ShowModal
+ until the sheet has been dismissed.
+ */
+ @interface ModalDialogDelegate : NSObject
+ {
+ BOOL sheetFinished;
+ int resultCode;
+ }
+
+ - (BOOL)finished;
+ - (int)code;
+ - (void)waitForSheetToFinish;
+ - (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
+ @end
+
+
#endif // __OBJC__
// NSCursor