VirtualBox

Changeset 44981 in vbox


Ignore:
Timestamp:
Mar 11, 2013 12:15:26 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84202
Message:

FE/Qt: Runtime UI: Little cleanup for fullscreen logic.

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

Legend:

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

    r44954 r44981  
    168168    /* Prepare action connections: */
    169169    prepareActionConnections();
     170
     171    /* Prepare other connections: */
     172    prepareOtherConnections();
    170173
    171174    /* Prepare handlers: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r44954 r44981  
    130130    virtual void prepareActionGroups();
    131131    virtual void prepareActionConnections();
     132    virtual void prepareOtherConnections() {}
    132133    virtual void prepareHandlers();
    133134    virtual void prepareMachineWindows() = 0;
     
    150151    virtual void cleanupMachineWindows() = 0;
    151152    virtual void cleanupHandlers();
     153    //virtual void cleanupOtherConnections() {}
    152154    //virtual void cleanupActionConnections() {}
    153155    virtual void cleanupActionGroups();
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp

    r44865 r44981  
    9292}
    9393
    94 void UIMachineLogicFullscreen::prepare()
    95 {
    96     /* Call to base-class: */
    97     UIMachineLogic::prepare();
    98 
    99 #ifdef Q_WS_MAC
    100     /* Prepare fullscreen connections: */
    101     prepareFullscreenConnections();
    102 #endif /* Q_WS_MAC */
    103 }
    104 
    10594int UIMachineLogicFullscreen::hostScreenForGuestScreen(int iScreenId) const
    10695{
     
    158147    pMenu->setVisible(true);
    159148}
     149
     150#ifdef Q_WS_MAC
     151void UIMachineLogicFullscreen::prepareOtherConnections()
     152{
     153    /* Presentation mode connection: */
     154    connect(gEDataEvents, SIGNAL(sigPresentationModeChange(bool)),
     155            this, SLOT(sltChangePresentationMode(bool)));
     156}
     157#endif /* Q_WS_MAC */
    160158
    161159void UIMachineLogicFullscreen::prepareMachineWindows()
     
    195193    setMachineWindowsCreated(true);
    196194}
    197 
    198 #ifdef Q_WS_MAC
    199 void UIMachineLogicFullscreen::prepareFullscreenConnections()
    200 {
    201     /* Presentation mode connection: */
    202     connect(gEDataEvents, SIGNAL(sigPresentationModeChange(bool)),
    203             this, SLOT(sltChangePresentationMode(bool)));
    204 }
    205 #endif /* Q_WS_MAC */
    206195
    207196void UIMachineLogicFullscreen::cleanupMachineWindows()
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.h

    r44865 r44981  
    4040    bool checkAvailability();
    4141
    42     /* Prepare logic: */
    43     void prepare();
    44 
    4542    /* Multi-screen stuff: */
    4643    int hostScreenForGuestScreen(int iScreenId) const;
     
    6057    /* Prepare helpers: */
    6158    void prepareActionGroups();
     59#ifdef Q_WS_MAC
     60    void prepareOtherConnections();
     61#endif /* Q_WS_MAC */
    6262    void prepareMachineWindows();
    63 #ifdef Q_WS_MAC
    64     void prepareFullscreenConnections();
    65 #endif /* Q_WS_MAC */
    6663
    6764    /* Cleanup helpers: */
     65    void cleanupMachineWindows();
    6866#ifdef Q_WS_MAC
    69     //void cleanupCommonConnections() {}
     67    //void cleanupOtherConnections() {}
    7068#endif /* Q_WS_MAC */
    71     void cleanupMachineWindows();
    7269    void cleanupActionGroups();
    7370
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