VirtualBox

Changeset 30330 in vbox for trunk


Ignore:
Timestamp:
Jun 21, 2010 1:30:27 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt: New running VM core: reworking some UIMachineLogic(+specific part) code to bring it to common form.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r30192 r30330  
    630630}
    631631
    632 void UIMachineLogic::cleanupMachineWindows()
    633 {
    634 #ifdef Q_WS_MAC
    635     /* We need to clean up the dock stuff before the machine windows. */
    636     cleanupDock();
    637 #endif /* Q_WS_MAC */
    638 }
    639 
    640632#ifdef Q_WS_MAC
    641633void UIMachineLogic::cleanupDock()
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r29014 r30330  
    119119    /* Cleanup helpers: */
    120120    //virtual void cleanupRequiredFeatures() {}
    121     virtual void cleanupMachineWindows();
    122121#ifdef Q_WS_MAC
    123122    virtual void cleanupDock();
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp

    r29069 r30330  
    4747UIMachineLogicFullscreen::~UIMachineLogicFullscreen()
    4848{
    49     /* Cleanup machine window: */
     49#ifdef Q_WS_MAC
     50    /* Cleanup the dock stuff before the machine window(s): */
     51    cleanupDock();
     52#endif /* Q_WS_MAC */
     53
     54    /* Cleanup machine window(s): */
    5055    cleanupMachineWindows();
    5156
     
    217222        return;
    218223
    219     /* Base class cleanup: */
    220     UIMachineLogic::cleanupMachineWindows();
    221 
    222     /* Cleanup normal machine window: */
     224    /* Cleanup machine window(s): */
    223225    foreach (UIMachineWindow *pMachineWindow, machineWindows())
    224226        UIMachineWindow::destroy(pMachineWindow);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp

    r28800 r30330  
    4242UIMachineLogicNormal::~UIMachineLogicNormal()
    4343{
    44     /* Cleanup normal machine window: */
     44#ifdef Q_WS_MAC
     45    /* Cleanup the dock stuff before the machine window(s): */
     46    cleanupDock();
     47#endif /* Q_WS_MAC */
     48
     49    /* Cleanup machine window(s): */
    4550    cleanupMachineWindow();
    4651}
     
    131136        return;
    132137
    133     /* Base class cleanup: */
    134     UIMachineLogic::cleanupMachineWindows();
    135 
    136138#ifdef Q_WS_MAC // TODO: Is that really need here?
    137139    /* We have to make sure that we are getting the front most process.
     
    159161        return;
    160162
    161     /* Cleanup normal machine window: */
     163    /* Cleanup machine window(s): */
    162164    foreach (UIMachineWindow *pMachineWindow, machineWindows())
    163165        UIMachineWindow::destroy(pMachineWindow);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp

    r28800 r30330  
    4545UIMachineLogicSeamless::~UIMachineLogicSeamless()
    4646{
    47     /* Cleanup normal machine window: */
     47#ifdef Q_WS_MAC
     48    /* Cleanup the dock stuff before the machine window(s): */
     49    cleanupDock();
     50#endif /* Q_WS_MAC */
     51
     52    /* Cleanup machine window(s): */
    4853    cleanupMachineWindows();
    4954
     
    197202        return;
    198203
    199     /* Base class cleanup: */
    200     UIMachineLogic::cleanupMachineWindows();
    201 
    202     /* Cleanup normal machine window: */
     204    /* Cleanup machine window(s): */
    203205    foreach (UIMachineWindow *pMachineWindow, machineWindows())
    204206        UIMachineWindow::destroy(pMachineWindow);
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