Changeset 52510 in vbox
- Timestamp:
- Aug 28, 2014 11:46:54 AM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaApplication.h
r52509 r52510 4 4 5 5 /* 6 * Copyright (C) 2009-201 0Oracle Corporation6 * Copyright (C) 2009-2014 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 43 43 typedef void (*PfnNativeNotificationCallbackForQWidget)(const QString &strNativeNotificationName, QWidget *pWidget); 44 44 45 /* C++ singleton for our private NSApplication object */45 /* C++ singleton for our private NSApplication object. */ 46 46 class UICocoaApplication 47 47 { 48 48 public: 49 49 50 /** Returns singleton access instance. */ 50 51 static UICocoaApplication* instance(); 51 void hide(); 52 53 /** Destructor. */ 52 54 ~UICocoaApplication(); 53 55 56 /** Hides the application. */ 57 void hide(); 58 59 /** Register native @a pfnCallback of the @a pvUser taking event @a fMask into account. */ 54 60 void registerForNativeEvents(uint32_t fMask, PFNVBOXCACALLBACK pfnCallback, void *pvUser); 61 /** Unregister native @a pfnCallback of the @a pvUser taking event @a fMask into account. */ 55 62 void unregisterForNativeEvents(uint32_t fMask, PFNVBOXCACALLBACK pfnCallback, void *pvUser); 56 63 … … 59 66 /** Unregister passed @a pWidget from native notification @a strNativeNotificationName. */ 60 67 void unregisterFromNotificationOfWindow(const QString &strNativeNotificationName, QWidget *pWidget); 68 61 69 /** Redirects native notification @a pstrNativeNotificationName for window @a pWindow to registered listener. */ 62 70 void nativeNotificationProxyForWidget(NativeNSStringRef pstrNativeNotificationName, NativeNSWindowRef pWindow); … … 64 72 private: 65 73 74 /** Constructor. */ 66 75 UICocoaApplication(); 76 77 /** Holds the singleton access instance. */ 67 78 static UICocoaApplication *m_pInstance; 79 80 /** Holds the private NSApplication instance. */ 68 81 NativeUICocoaApplicationPrivateRef m_pNative; 82 /** Holds the private NSAutoreleasePool instance. */ 69 83 NativeNSAutoreleasePoolRef m_pPool; 70 84 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaApplication.mm
r52509 r52510 5 5 6 6 /* 7 * Copyright (C) 2009-201 0Oracle Corporation7 * Copyright (C) 2009-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 208 208 } 209 209 210 void UICocoaApplication::hide()211 {212 [m_pNative hide:m_pNative];213 }214 215 210 UICocoaApplication::UICocoaApplication() 216 211 { … … 230 225 } 231 226 227 void UICocoaApplication::hide() 228 { 229 [m_pNative hide:m_pNative]; 230 } 231 232 232 void UICocoaApplication::registerForNativeEvents(uint32_t fMask, PFNVBOXCACALLBACK pfnCallback, void *pvUser) 233 233 {
Note:
See TracChangeset
for help on using the changeset viewer.