- Timestamp:
- Apr 28, 2007 6:49:40 PM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro
r2411 r2412 242 242 images/welcome.png \ 243 243 images/about_600px.png \ 244 images/dock_0.png \ 245 images/dock_1.png \ 244 246 images/dock_128x128_transparent.png 245 247 -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleWnd.h
r2411 r2412 277 277 CGImageRef dockImgStateSaving; 278 278 CGImageRef dockImgStateRestoring; 279 CGImageRef dockImgBack75x75; 280 CGImageRef dockImgBack100x75; 281 CGImageRef dockImgOS; 279 282 #endif 280 283 }; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r2411 r2412 161 161 , dockImgStateSaving (NULL) 162 162 , dockImgStateRestoring (NULL) 163 , dockImgBack75x75 (NULL) 164 , dockImgBack100x75 (NULL) 165 , dockImgOS (NULL) 163 166 #endif 164 167 { … … 530 533 dockImgStateSaving = ::DarwinCreateDockBadge ("state_saving_16px.png"); 531 534 dockImgStateRestoring = ::DarwinCreateDockBadge ("state_restoring_16px.png"); 535 dockImgBack75x75 = ::DarwinCreateDockBadge ("dock_0.png"); 536 dockImgBack100x75 = ::DarwinCreateDockBadge ("dock_1.png"); 537 SetApplicationDockTileImage (dockImgOS); 532 538 OverlayApplicationDockTileImage (dockImgStateRunning); 533 539 #endif … … 548 554 if (dockImgStateRestoring) 549 555 CGImageRelease (dockImgStateRestoring); 556 if (dockImgBack75x75) 557 CGImageRelease (dockImgBack75x75); 558 if (dockImgBack100x75) 559 CGImageRelease (dockImgBack100x75); 560 if (dockImgOS) 561 CGImageRelease (dockImgOS); 550 562 #endif 551 563 } … … 714 726 connect (console, SIGNAL (machineStateChanged (CEnums::MachineState)), 715 727 this, SLOT (updateMachineState (CEnums::MachineState))); 728 729 #ifdef Q_WS_MAC 730 QString osType = cmachine.GetOSType().GetId(); 731 # if 0 732 QImage osImg75x75 = vboxGlobal().vmGuestOSTypeIcon (osType).convertToImage().smoothScale (75, 75); 733 QImage osImg = QImage::fromMimeSource ("dock_0.png"); 734 bitBlt (&osImg, 25, 22, 735 &osImg75x75, 0, 0, 736 75, 75, /* conversion_flags */ 0); 737 # else 738 QImage osImg100x75 = vboxGlobal().vmGuestOSTypeIcon (osType).convertToImage().smoothScale (100, 75); 739 QImage osImg = QImage::fromMimeSource ("dock_1.png"); 740 bitBlt (&osImg, 14, 22, 741 &osImg100x75, 0, 0, 742 100, 75, /* conversion_flags */ 0); 743 # endif 744 if (dockImgOS) 745 CGImageRelease (dockImgOS); 746 dockImgOS = ::DarwinQImageToCGImage (&osImg); 747 #endif 716 748 717 749 /* set the correct initial machine_state value */ … … 1537 1569 else 1538 1570 img = NULL; 1539 RestoreApplicationDockTileImage();1571 SetApplicationDockTileImage (dockImgOS); 1540 1572 if (img) 1541 1573 OverlayApplicationDockTileImage (img);
Note:
See TracChangeset
for help on using the changeset viewer.