VirtualBox

Changeset 99140 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 23, 2023 12:26:28 PM (22 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: Runtime UI: Small rework for UIMachine prepare/cleanup cascade; Split screen data to host related and guest related.

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

Legend:

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

    r99139 r99140  
    14721472    prepareBranding();
    14731473    prepareActions();
    1474     prepareScreens();
     1474    prepareHostScreenData();
     1475    prepareGuestScreenData();
    14751476    prepareKeyboard();
    14761477    prepareClose();
     
    16501651}
    16511652
    1652 void UIMachine::prepareScreens()
     1653void UIMachine::prepareHostScreenData()
    16531654{
    16541655    /* Recache display data: */
     
    16641665                this, &UIMachine::sltCheckIfHostDisplayChanged);
    16651666    }
    1666 #endif /* VBOX_WS_MAC */
    1667 
    1668 #ifdef VBOX_WS_MAC
    16691667    /* Install native display reconfiguration callback: */
    16701668    CGDisplayRegisterReconfigurationCallback(cgDisplayReconfigurationCallback, this);
     
    16831681# endif /* !VBOX_WS_X11 || VBOX_GUI_WITH_CUSTOMIZATIONS1 */
    16841682#endif /* !VBOX_WS_MAC */
    1685 
     1683}
     1684
     1685void UIMachine::prepareGuestScreenData()
     1686{
    16861687    /* Accquire guest-screen count: */
    16871688    ulong cMonitorCount = 0;
     
    17971798}
    17981799
    1799 void UIMachine::cleanupScreens()
     1800void UIMachine::cleanupHostScreenData()
    18001801{
    18011802#ifdef VBOX_WS_MAC
     
    18441845    /* Cleanup stuff: */
    18451846    cleanupMachineLogic();
    1846     cleanupScreens();
     1847    cleanupHostScreenData();
    18471848    cleanupActions();
    18481849    cleanupBranding();
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h

    r99139 r99140  
    850850    /** Prepare routine: Actions stuff. */
    851851    void prepareActions();
    852     /** Prepare routine: Screens stuff. */
    853     void prepareScreens();
     852    /** Prepare routine: Host-screen data stuff. */
     853    void prepareHostScreenData();
     854    /** Prepare routine: Guest-screen data stuff. */
     855    void prepareGuestScreenData();
    854856    /** Prepare routine: Keyboard stuff. */
    855857    void prepareKeyboard();
     
    861863    /** Cleanup routine: Machine-logic stuff. */
    862864    void cleanupMachineLogic();
    863     /** Cleanup routine: Screens stuff. */
    864     void cleanupScreens();
     865    /** Cleanup routine: Host-screen data stuff. */
     866    void cleanupHostScreenData();
    865867    /** Cleanup routine: Actions stuff. */
    866868    void cleanupActions();
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