55 #ifdef QT_MAC_USE_COCOA 56 #import <Cocoa/Cocoa.h> 59 template <
class Key,
class T>
class QHash;
66 #if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5 67 @protocol NSWindowDelegate <NSObject>
68 - (NSSize)windowWillResize:(NSWindow *)window toSize:(NSSize)proposedFrameSize;
69 - (void)windowDidMiniaturize:(NSNotification*)notification;
70 - (void)windowDidResize:(NSNotification *)notification;
71 - (NSRect)windowWillUseStandardFrame:(NSWindow *)window defaultFrame:(NSRect)defaultFrame;
72 - (void)windowDidMove:(NSNotification *)notification;
73 - (BOOL)windowShouldClose:(
id)window;
74 - (void)windowDidDeminiaturize:(NSNotification *)notification;
75 - (void)windowDidBecomeMain:(NSNotification*)notification;
76 - (void)windowDidResignMain:(NSNotification*)notification;
77 - (void)windowDidBecomeKey:(NSNotification*)notification;
78 - (void)windowDidResignKey:(NSNotification*)notification;
79 - (void)windowDidChangeScreen:(NSNotification*)notification;
80 - (BOOL)window:(NSWindow *)window shouldPopUpDocumentPathMenu:(NSMenu *)menu;
81 - (BOOL)window:(NSWindow *)window shouldDragDocumentWithEvent:(NSEvent *)event from:(
NSPoint)dragImageLocation withPasteboard:(NSPasteboard *)pasteboard;
82 - (BOOL)windowShouldZoom:(NSWindow *)window toFrame:(NSRect)newFrame;
85 @protocol NSDrawerDelegate <NSObject>
86 - (NSSize)drawerWillResizeContents:(NSDrawer *)sender toSize:(NSSize)contentSize;
93 @interface QT_MANGLE_NAMESPACE(QCocoaWindowDelegate) : NSObject<NSWindowDelegate, NSDrawerDelegate> {
98 - (void)becomeDelegateForWindow:(NSWindow *)window widget:(
QWidget *)widget;
99 - (void)resignDelegateForWindow:(NSWindow *)window;
100 - (void)becomeDelegateForDrawer:(NSDrawer *)drawer widget:(
QWidget *)widget;
101 - (void)resignDelegateForDrawer:(NSDrawer *)drawer;
102 - (void)dumpMaximizedStateforWidget:(
QWidget*)qwidget window:(NSWindow *)window;
103 - (void)syncSizeForWidget:(
QWidget *)qwidget
104 toSize:(const
QSize &)newSize
105 fromSize:(const
QSize &)oldSize;
106 - (NSSize)closestAcceptableSizeForWidget:(
QWidget *)qwidget
107 window:(NSWindow *)window withNewSize:(NSSize)proposedSize;
108 - (
QWidget *)qt_qwidgetForWindow:(NSWindow *)window;
109 - (void)syncContentViewFrame: (NSNotification *)notification;
#define QT_END_NAMESPACE
This macro expands to.
The QHash class is a template class that provides a hash-table-based dictionary.
#define QT_FORWARD_DECLARE_CLASS(name)
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define QT_PREPEND_NAMESPACE(name)
This macro qualifies identifier with the full namespace.
#define QT_MANGLE_NAMESPACE(name)
The QSize class defines the size of a two-dimensional object using integer point precision.