VirtualBox

Ignore:
Timestamp:
Apr 4, 2018 3:24:06 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9049: Small cleanup for VBoxUtils-darwin stuff.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin-cocoa.mm

    r69931 r71662  
    694694}
    695695
    696 void* darwinCocoaToCarbonEvent(void *pvCocoaEvent)
     696void *darwinCocoaToCarbonEvent(void *pvCocoaEvent)
    697697{
    698698    NSEvent *pEvent = (NSEvent*)pvCocoaEvent;
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.h

    r69931 r71662  
    55
    66/*
    7  * Copyright (C) 2010-2017 Oracle Corporation
     7 * Copyright (C) 2010-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1616 */
    1717
    18 #ifndef ___VBoxUtils_darwin_h
    19 #define ___VBoxUtils_darwin_h
    20 
     18#ifndef ___VBoxUtils_darwin_h___
     19#define ___VBoxUtils_darwin_h___
     20
     21/* Qt includes: */
     22#include <QRect>
     23
     24/* Other VBox includes: */
    2125#include <VBox/VBoxCocoa.h>
    2226#include <ApplicationServices/ApplicationServices.h>
    23 #undef PVM                              /* Stupid, stupid apple headers (sys/param.h)!!  */
    24 #include <iprt/cdefs.h> /* for RT_C_DECLS_BEGIN/RT_C_DECLS_END & stuff */
    25 
    26 #include <QRect>
    27 
    28 ADD_COCOA_NATIVE_REF(NSEvent);
    29 ADD_COCOA_NATIVE_REF(NSImage);
    30 ADD_COCOA_NATIVE_REF(NSView);
    31 ADD_COCOA_NATIVE_REF(NSWindow);
    32 ADD_COCOA_NATIVE_REF(NSButton);
    33 ADD_COCOA_NATIVE_REF(NSString);
    34 
     27#undef PVM // Stupid, stupid apple headers (sys/param.h)!!
     28#include <iprt/cdefs.h>
     29
     30/* External includes: */
     31#include <ApplicationServices/ApplicationServices.h>
     32
     33/* Forward declarations: */
    3534class QImage;
    3635class QMainWindow;
     
    3938class QToolBar;
    4039class QWidget;
     40
     41/* Cocoa declarations: */
     42ADD_COCOA_NATIVE_REF(NSButton);
     43ADD_COCOA_NATIVE_REF(NSEvent);
     44ADD_COCOA_NATIVE_REF(NSImage);
     45ADD_COCOA_NATIVE_REF(NSString);
     46ADD_COCOA_NATIVE_REF(NSView);
     47ADD_COCOA_NATIVE_REF(NSWindow);
     48
    4149
    4250/** Mac OS X: Standard window button types. */
     
    5159    StandardWindowButtonType_FullScreen        // Since OS X 10.7
    5260};
     61
    5362
    5463RT_C_DECLS_BEGIN
     
    203212NativeNSImageRef darwinToNSImageRef(const QPixmap *pPixmap);
    204213NativeNSImageRef darwinToNSImageRef(const char *pczSource);
    205 
    206 #ifndef __OBJC__
    207214
    208215#include <QEvent>
     
    289296void darwinMouseRelease(QWidget *pWidget);
    290297
    291 void* darwinCocoaToCarbonEvent(void *pvCocoaEvent);
    292 
    293 #endif /* !__OBJC__ */
    294 
    295 #endif /* !___VBoxUtils_darwin_h */
    296 
     298void *darwinCocoaToCarbonEvent(void *pvCocoaEvent);
     299
     300#endif /* !___VBoxUtils_darwin_h___ */
     301
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette