Changeset 17175 in vbox for trunk/src/VBox/Frontends/VirtualBox/include
- Timestamp:
- Feb 26, 2009 4:09:24 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 43448
- Location:
- trunk/src/VBox/Frontends/VirtualBox/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxDockIconPreview.h
r16484 r17175 27 27 28 28 #ifdef QT_MAC_USE_COCOA 29 # include <ApplicationServices/ApplicationServices.h> 29 30 /** @todo include chocolatey headers... */ 30 31 #else … … 44 45 45 46 void updateDockOverlay(); 46 #ifndef QT_MAC_USE_COCOA47 //#ifndef QT_MAC_USE_COCOA 47 48 void updateDockPreview (CGImageRef aVMImage); 48 #endif49 //#endif 49 50 void updateDockPreview (VBoxFrameBuffer *aFrameBuffer); 50 51 51 52 private: 52 #ifdef QT_MAC_USE_COCOA53 //#ifdef QT_MAC_USE_COCOA 53 54 /** @todo Carbon -> Cocoa */ 54 #else55 //#else 55 56 inline void initPreviewImages(); 56 57 inline void initOverlayData (int aBitmapByteCount); … … 67 68 return aRect; 68 69 } 69 #endif /* !QT_MAC_USE_COCOA */70 //#endif /* !QT_MAC_USE_COCOA */ 70 71 71 72 /* Private member vars */ 72 73 VBoxConsoleWnd *mMainWnd; 73 #ifdef QT_MAC_USE_COCOA74 //#ifdef QT_MAC_USE_COCOA 74 75 /** @todo Carbon -> Cocoa */ 75 #else76 //#else 76 77 const CGRect mDockIconRect; 77 78 … … 88 89 CGRect mUpdateRect; 89 90 CGRect mMonitorRect; 90 #endif91 //#endif 91 92 }; 92 93 -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxUtils-darwin.h
r17150 r17175 151 151 class QImage; 152 152 153 # ifndef QT_MAC_USE_COCOA154 155 /* Asserts if a != noErr and prints the error code */156 # define AssertCarbonOSStatus(a) AssertMsg ((a) == noErr, ("Carbon OSStatus: %d\n", static_cast<int> (a)))157 158 153 /* Converting stuff */ 159 154 CGImageRef darwinToCGImageRef (const QImage *aImage); … … 171 166 return static_cast<CGContext *> (aWidget->macCGHandle()); 172 167 } 168 169 # ifndef QT_MAC_USE_COCOA 170 171 /* Asserts if a != noErr and prints the error code */ 172 # define AssertCarbonOSStatus(a) AssertMsg ((a) == noErr, ("Carbon OSStatus: %d\n", static_cast<int> (a))) 173 173 174 174 175 /**
Note:
See TracChangeset
for help on using the changeset viewer.