Changeset 98421 in vbox for trunk/src/VBox
- Timestamp:
- Feb 2, 2023 9:21:40 AM (23 months ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo
-
old new 19 19 /branches/dsen/gui2:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 20 20 /branches/dsen/gui3:79645-79692 21 /branches/dsen/gui4:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-15551 021 /branches/dsen/gui4:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-155511 22 22 /trunk/src:92342,154921
-
- Property svn:mergeinfo
-
trunk/src/VBox
- Property svn:mergeinfo
-
old new 19 19 /branches/dsen/gui2/src/VBox:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 20 20 /branches/dsen/gui3/src/VBox:79645-79692 21 /branches/dsen/gui4/src/VBox:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-15551 021 /branches/dsen/gui4/src/VBox:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-155511
-
- Property svn:mergeinfo
-
trunk/src/VBox/Frontends
- Property svn:mergeinfo
-
old new 16 16 /branches/dsen/gui2/src/VBox/Frontends:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 17 17 /branches/dsen/gui3/src/VBox/Frontends:79645-79692 18 /branches/dsen/gui4/src/VBox/Frontends:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-15551 018 /branches/dsen/gui4/src/VBox/Frontends:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-155511
-
- Property svn:mergeinfo
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/DockIconPreview.h
r98103 r98421 41 41 public: 42 42 43 /** Constructor taking passed @a p Sessionand @a overlayImage. */44 UIDockIconPreview(UI Session *pSession, const QPixmap& overlayImage)45 : UICocoaDockIconPreview(p Session, overlayImage) {}43 /** Constructor taking passed @a pMachine and @a overlayImage. */ 44 UIDockIconPreview(UIMachine *pMachine, const QPixmap& overlayImage) 45 : UICocoaDockIconPreview(pMachine, overlayImage) {} 46 46 }; 47 47 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UIAbstractDockIconPreview.cpp
r98103 r98421 31 31 /* GUI includes: */ 32 32 #include "UIAbstractDockIconPreview.h" 33 #include "UICommon.h" 33 34 #include "UIConverter.h" 34 35 #include "UIExtraDataManager.h" 35 36 #include "UIFrameBuffer.h" 37 #include "UIMachine.h" 36 38 #include "UIMachineLogic.h" 37 39 #include "UIMachineView.h" 38 #include "UISession.h"39 #include "UICommon.h"40 40 41 41 /* COM includes: */ … … 43 43 44 44 45 UIAbstractDockIconPreview::UIAbstractDockIconPreview(UI Session * /* pSession */, const QPixmap& /* overlayImage */)45 UIAbstractDockIconPreview::UIAbstractDockIconPreview(UIMachine *, const QPixmap &) 46 46 { 47 47 } … … 68 68 } 69 69 70 UIAbstractDockIconPreviewHelper::UIAbstractDockIconPreviewHelper(UI Session *pSession, const QPixmap& overlayImage)71 : m_p Session(pSession)70 UIAbstractDockIconPreviewHelper::UIAbstractDockIconPreviewHelper(UIMachine *pMachine, const QPixmap& overlayImage) 71 : m_pMachine(pMachine) 72 72 , m_dockIconRect(CGRectMake(0, 0, 128, 128)) 73 73 , m_dockMonitor(NULL) … … 84 84 /* Get the MachineView which is currently previewed and return the win id 85 85 of the viewport. */ 86 UIMachineView* pView = m_p Session->machineLogic()->dockPreviewView();86 UIMachineView* pView = m_pMachine->machineLogic()->dockPreviewView(); 87 87 if (pView) 88 88 return (void*)pView->viewport()->winId(); -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UIAbstractDockIconPreview.h
r98103 r98421 39 39 40 40 class UIFrameBuffer; 41 class UI Session;41 class UIMachine; 42 42 43 43 class QPixmap; … … 46 46 { 47 47 public: 48 UIAbstractDockIconPreview(UI Session *pSession, const QPixmap& overlayImage);48 UIAbstractDockIconPreview(UIMachine *pMachine, const QPixmap& overlayImage); 49 49 virtual ~UIAbstractDockIconPreview() {} 50 50 … … 59 59 { 60 60 public: 61 UIAbstractDockIconPreviewHelper(UI Session *pSession, const QPixmap& overlayImage);61 UIAbstractDockIconPreviewHelper(UIMachine *pMachine, const QPixmap& overlayImage); 62 62 virtual ~UIAbstractDockIconPreviewHelper(); 63 63 void initPreviewImages(); … … 72 72 73 73 /* Private member vars */ 74 UI Session *m_pSession;74 UIMachine *m_pMachine; 75 75 const CGRect m_dockIconRect; 76 76 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaDockIconPreview.h
r98103 r98421 40 40 { 41 41 public: 42 UICocoaDockIconPreview(UI Session *pSession, const QPixmap& overlayImage);42 UICocoaDockIconPreview(UIMachine *pMachine, const QPixmap& overlayImage); 43 43 ~UICocoaDockIconPreview(); 44 44 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaDockIconPreview.mm
r98103 r98421 79 79 { 80 80 public: 81 inline UICocoaDockIconPreviewPrivate(UI Session *pSession, const QPixmap& overlayImage)82 :UIAbstractDockIconPreviewHelper(pSession, overlayImage)81 inline UICocoaDockIconPreviewPrivate(UIMachine *pMachine, const QPixmap& overlayImage) 82 : UIAbstractDockIconPreviewHelper(pMachine, overlayImage) 83 83 { 84 84 mUIDockTile = [[UIDockTile alloc] initWithParent:this]; … … 98 98 * Cocoa wrapper for the abstract dock icon preview class 99 99 */ 100 UICocoaDockIconPreview::UICocoaDockIconPreview(UI Session *pSession, const QPixmap& overlayImage)101 : UIAbstractDockIconPreview(pSession, overlayImage)102 { 103 CocoaAutoreleasePool pool; 104 105 d = new UICocoaDockIconPreviewPrivate(p Session, overlayImage);100 UICocoaDockIconPreview::UICocoaDockIconPreview(UIMachine *pMachine, const QPixmap& overlayImage) 101 : UIAbstractDockIconPreview(pMachine, overlayImage) 102 { 103 CocoaAutoreleasePool pool; 104 105 d = new UICocoaDockIconPreviewPrivate(pMachine, overlayImage); 106 106 } 107 107 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r98419 r98421 1242 1242 if (pixmap.isNull()) 1243 1243 pixmap = generalIconPool().guestOSTypePixmap(guest().GetOSTypeId(), QSize(42, 42)); 1244 m_pDockIconPreview = new UIDockIconPreview(ui session(), pixmap);1244 m_pDockIconPreview = new UIDockIconPreview(uimachine(), pixmap); 1245 1245 1246 1246 /* Should the dock-icon be updated at runtime? */
Note:
See TracChangeset
for help on using the changeset viewer.