VirtualBox

Ignore:
Timestamp:
May 7, 2010 12:14:18 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61277
Message:

more manual Oracle rebranding in headers

Location:
trunk/src/VBox/Frontends/VirtualBox/src/darwin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/CocoaDockIconPreview.mm

    r24377 r29200  
    77
    88/*
    9  * Copyright (C) 2009 Sun Microsystems, Inc.
     9 * Copyright (C) 2009-2010 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1616 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    1717 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    18  *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
    20  * Clara, CA 95054 USA or visit http://www.sun.com if you need
    21  * additional information or have any questions.
    2218 */
    2319
     
    6763@end
    6864
    69 /* 
     65/*
    7066 * Helper class which allow us to access all members/methods of AbstractDockIconPreviewHelper
    7167 * from any Cocoa class.
     
    7571public:
    7672    inline CocoaDockIconPreviewPrivate (VBoxConsoleWnd *aMainWnd, const QPixmap& aOverlayImage)
    77       :AbstractDockIconPreviewHelper (aMainWnd, aOverlayImage) 
     73      :AbstractDockIconPreviewHelper (aMainWnd, aOverlayImage)
    7874    {
    7975        mDockTile = [[DockTile alloc] initWithParent:this];
     
    8480        [mDockTile release];
    8581    }
    86      
     82
    8783    DockTile *mDockTile;
    8884};
    8985
    90 /* 
    91  * Cocoa wrapper for the abstract dock icon preview class 
     86/*
     87 * Cocoa wrapper for the abstract dock icon preview class
    9288 */
    9389CocoaDockIconPreview::CocoaDockIconPreview (VBoxConsoleWnd *aMainWnd, const QPixmap& aOverlayImage)
     
    135131}
    136132
    137 /* 
     133/*
    138134 * Class for arranging/updating the layers for the glossy monitor preview.
    139135 */
     
    199195@end
    200196
    201 /* 
     197/*
    202198 * Simple implementation for the overlay of the OS & the state icon. Is used both
    203199 * in the application icon & preview mode.
     
    222218@end
    223219
    224 /* 
     220/*
    225221 * VirtualBox Dock Tile implementation. Manage the switching between the icon
    226222 * and preview mode & forwards all update request to the appropriate methods.
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/UICocoaDockIconPreview.mm

    r28540 r29200  
    77
    88/*
    9  * Copyright (C) 2009 Sun Microsystems, Inc.
     9 * Copyright (C) 2009-2010 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1616 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    1717 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    18  *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
    20  * Clara, CA 95054 USA or visit http://www.sun.com if you need
    21  * additional information or have any questions.
    2218 */
    2319
     
    6864@end
    6965
    70 /* 
     66/*
    7167 * Helper class which allow us to access all members/methods of AbstractDockIconPreviewHelper
    7268 * from any Cocoa class.
     
    7672public:
    7773    inline UICocoaDockIconPreviewPrivate(UISession *pSession, const QPixmap& overlayImage)
    78       :UIAbstractDockIconPreviewHelper(pSession, overlayImage) 
     74      :UIAbstractDockIconPreviewHelper(pSession, overlayImage)
    7975    {
    8076        mUIDockTile = [[UIDockTile alloc] initWithParent:this];
     
    8783        [mUIDockTile release];
    8884    }
    89      
     85
    9086    UIDockTile *mUIDockTile;
    9187};
    9288
    93 /* 
    94  * Cocoa wrapper for the abstract dock icon preview class 
     89/*
     90 * Cocoa wrapper for the abstract dock icon preview class
    9591 */
    9692UICocoaDockIconPreview::UICocoaDockIconPreview(UISession *pSession, const QPixmap& overlayImage)
     
    137133}
    138134
    139 /* 
     135/*
    140136 * Class for arranging/updating the layers for the glossy monitor preview.
    141137 */
     
    201197@end
    202198
    203 /* 
     199/*
    204200 * Simple implementation for the overlay of the OS & the state icon. Is used both
    205201 * in the application icon & preview mode.
     
    224220@end
    225221
    226 /* 
     222/*
    227223 * VirtualBox Dock Tile implementation. Manage the switching between the icon
    228224 * and preview mode & forwards all update request to the appropriate methods.
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxCocoaSpecialControls.mm

    r27690 r29200  
    77
    88/*
    9  * Copyright (C) 2009 Sun Microsystems, Inc.
     9 * Copyright (C) 2009-2010 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1616 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    1717 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    18  *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
    20  * Clara, CA 95054 USA or visit http://www.sun.com if you need
    21  * additional information or have any questions.
    2218 */
    2319
     
    3733#include <QKeyEvent>
    3834
    39 @interface NSButtonTarget: NSObject 
     35@interface NSButtonTarget: NSObject
    4036{
    4137    VBoxCocoaButton *mRealTarget;
     
    6157@end
    6258
    63 @interface NSSegmentedButtonTarget: NSObject 
     59@interface NSSegmentedButtonTarget: NSObject
    6460{
    6561    VBoxCocoaSegmentedButton *mRealTarget;
     
    8581@end
    8682
    87 @interface VBSearchField: NSSearchField 
     83@interface VBSearchField: NSSearchField
    8884{
    8985    VBoxCocoaSearchField *mRealTarget;
     
    110106
    111107    /* Get the pressed character */
    112     if ([str length] > 0) 
     108    if ([str length] > 0)
    113109        ch = [str characterAtIndex:0];
    114110
    115     if (ch == NSCarriageReturnCharacter || ch == NSEnterCharacter) 
     111    if (ch == NSCarriageReturnCharacter || ch == NSEnterCharacter)
    116112    {
    117113        QKeyEvent ke(QEvent::KeyPress, Qt::Key_Enter, Qt::NoModifier);
    118114        QApplication::sendEvent (mRealTarget, &ke);
    119     } 
     115    }
    120116    else if (ch == 27) /* Escape */
    121117    {
    122118        QKeyEvent ke(QEvent::KeyPress, Qt::Key_Escape, Qt::NoModifier);
    123119        QApplication::sendEvent (mRealTarget, &ke);
    124     } 
     120    }
    125121    else if (ch == NSF3FunctionKey)
    126122    {
     
    152148@end
    153149@implementation VBSearchFieldDelegate
    154 -(BOOL)control:(NSControl*)control textView:(NSTextView*)textView doCommandBySelector:(SEL)commandSelector 
     150-(BOOL)control:(NSControl*)control textView:(NSTextView*)textView doCommandBySelector:(SEL)commandSelector
    155151{
    156152//    NSLog (NSStringFromSelector (commandSelector));
    157153    /* Don't execute the selector for Enter & Escape. */
    158     if (   commandSelector == @selector(insertNewline:) 
    159             || commandSelector == @selector(cancelOperation:)) 
     154    if (   commandSelector == @selector(insertNewline:)
     155            || commandSelector == @selector(cancelOperation:))
    160156                return YES;
    161157    return NO;
     
    163159@end
    164160
    165 @interface VBSearchFieldCell: NSSearchFieldCell 
     161@interface VBSearchFieldCell: NSSearchFieldCell
    166162{
    167163    NSColor *mBGColor;
     
    173169- (void)setBackgroundColor:(NSColor*)aBGColor
    174170{
    175     if (mBGColor != aBGColor) 
     171    if (mBGColor != aBGColor)
    176172    {
    177173        [mBGColor release];
     
    295291    [mNativeRef setSegmentStyle:NSSegmentStyleRoundRect];
    296292    [[mNativeRef cell] setTrackingMode: NSSegmentSwitchTrackingMomentary];
    297     [mNativeRef setFont: [NSFont controlContentFontOfSize: 
     293    [mNativeRef setFont: [NSFont controlContentFontOfSize:
    298294        [NSFont systemFontSizeForControlSize: NSSmallControlSize]]];
    299295    [mNativeRef sizeToFit];
     
    353349    mNativeRef = [[VBSearchField alloc] initWithObject2: this];
    354350    [[mNativeRef cell] setControlSize: NSSmallControlSize];
    355     [mNativeRef setFont: [NSFont controlContentFontOfSize: 
     351    [mNativeRef setFont: [NSFont controlContentFontOfSize:
    356352        [NSFont systemFontSizeForControlSize: NSSmallControlSize]]];
    357353    [mNativeRef sizeToFit];
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxDockIconPreview-cocoa.mm

    r26716 r29200  
    77
    88/*
    9  * Copyright (C) 2009 Sun Microsystems, Inc.
     9 * Copyright (C) 2009-2010 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1616 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    1717 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    18  *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
    20  * Clara, CA 95054 USA or visit http://www.sun.com if you need
    21  * additional information or have any questions.
    2218 */
    2319
     
    9187    /* Convert the CGImage to an NSImage */
    9288    NSBitmapImageRep *bitmapImageRep = [[NSBitmapImageRep alloc] initWithCGImage:pImage];
    93     if (bitmapImageRep) 
     89    if (bitmapImageRep)
    9490    {
    9591        NSImage *badgeImage = [[NSImage alloc] initWithSize:[bitmapImageRep size]];
     
    105101    /* Set the new application icon */
    106102    [NSApp setApplicationIconImage:gDockIconImage];
    107    
     103
    108104    [pool release];
    109105}
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxUtils-darwin-cocoa.mm

    r27534 r29200  
    88
    99/*
    10  * Copyright (C) 2009 Sun Microsystems, Inc.
     10 * Copyright (C) 2009-2010 Oracle Corporation
    1111 *
    1212 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1717 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    1818 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    19  *
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
    21  * Clara, CA 95054 USA or visit http://www.sun.com if you need
    22  * additional information or have any questions.
    2319 */
    2420
     
    3834    if (aView)
    3935        window = [aView window];
    40    
     36
    4137    [pool release];
    4238    return window;
     
    4945    NativeViewRef view = NULL;
    5046    if (aWindow)
    51         view = [aWindow contentView];   
     47        view = [aWindow contentView];
    5248
    5349    [pool release];
     
    188184{
    189185    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    190    
     186
    191187    bool fResult = [aWindow isZoomed];
    192188
Note: See TracChangeset for help on using the changeset viewer.

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