VirtualBox

Changeset 30407 in vbox


Ignore:
Timestamp:
Jun 24, 2010 2:16:55 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63033
Message:

FE/Qt: New running VM core: some code cosmetics.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r30356 r30407  
    323323        src/widgets/VBoxProgressDialog.h \
    324324        src/widgets/VBoxWarningPane.h \
     325        src/runtime/UIMachine.h \
    325326        src/runtime/UISession.h \
    326327        src/runtime/UIActionsPool.h \
    327328        src/runtime/UIIndicatorsPool.h \
    328         src/runtime/UIMachine.h \
    329329        src/runtime/UIMachineLogic.h \
    330330        src/runtime/UIMachineView.h \
     
    456456        src/widgets/VBoxProgressDialog.cpp \
    457457        src/widgets/VBoxWarningPane.cpp \
     458        src/runtime/UIMachine.cpp \
    458459        src/runtime/UISession.cpp \
    459460        src/runtime/UIActionsPool.cpp \
     
    463464        src/runtime/UIFrameBufferQImage.cpp \
    464465        src/runtime/UIFrameBufferSDL.cpp \
    465         src/runtime/UIMachine.cpp \
    466466        src/runtime/UIMachineLogic.cpp \
    467467        src/runtime/UIMachineWindow.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r30348 r30407  
    231231UISession* UIMachineView::uisession() const
    232232{
    233     return machineWindowWrapper()->machineLogic()->uisession();
     233    return machineLogic()->uisession();
    234234}
    235235
     
    11051105                break;
    11061106            }
    1107 #if defined (Q_WS_WIN32)
     1107#ifdef Q_WS_WIN
    11081108            /* Install/uninstall low-level kbd hook on every activation/deactivation to:
    11091109             * a) avoid excess hook calls when we're not active and
     
    11271127                break;
    11281128            }
    1129 #endif /* defined (Q_WS_WIN32) */
     1129#endif /* Q_WS_WIN */
    11301130#ifdef Q_WS_MAC
    11311131            /* Install/remove the keyboard event handler: */
     
    11731173                viewport()->repaint();
    11741174            }
    1175             /* reuse the focus event handler to uncapture everything */
     1175            /* Reuse the focus event handler to uncapture everything: */
    11761176            if (hasFocus())
    1177                 focusEvent (false /* aHasFocus*/, false /* aReleaseHostKey */);
     1177                focusEvent(false /* aHasFocus*/, false /* aReleaseHostKey */);
    11781178            break;
    11791179        }
     
    12011201                }
    12021202            }
    1203             /* Reuse the focus event handler to capture input: */
     1203            /* Reuse the focus event handler to capture keyboard: */
    12041204            if (hasFocus())
    12051205                focusEvent(true /* aHasFocus */);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp

    r30330 r30407  
    195195
    196196    /* Create machine window(s): */
    197     for (int screenId = 0; screenId < m_pScreenLayout->guestScreenCount(); ++screenId)
    198         addMachineWindow(UIMachineWindow::create(this, visualStateType(), screenId));
     197    for (int cScreenId = 0; cScreenId < m_pScreenLayout->guestScreenCount(); ++cScreenId)
     198        addMachineWindow(UIMachineWindow::create(this, visualStateType(), cScreenId));
    199199
    200200    /* Connect screen-layout change handler: */
    201     foreach (UIMachineWindow *pMachineWindow, machineWindows())
     201    for (int i = 0; i < machineWindows().size(); ++i)
    202202        connect(m_pScreenLayout, SIGNAL(screenLayoutChanged()),
    203                 static_cast<UIMachineWindowFullscreen*>(pMachineWindow), SLOT(sltPlaceOnScreen()));
     203                static_cast<UIMachineWindowFullscreen*>(machineWindows()[i]), SLOT(sltPlaceOnScreen()));
    204204
    205205#ifdef Q_WS_MAC
     
    218218void UIMachineLogicFullscreen::cleanupMachineWindows()
    219219{
    220     /* Do not cleanup machine window if it is not present: */
     220    /* Do not cleanup machine window(s) if not present: */
    221221    if (!isMachineWindowsCreated())
    222222        return;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp

    r30330 r30407  
    157157void UIMachineLogicNormal::cleanupMachineWindow()
    158158{
    159     /* Do not cleanup machine window if it is not present: */
     159    /* Do not cleanup machine window(s) if not present: */
    160160    if (!isMachineWindowsCreated())
    161161        return;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp

    r30330 r30407  
    181181#endif /* Q_WS_MAC */
    182182
    183     /* Update the multi screen layout */
     183    /* Update the multi screen layout: */
    184184    m_pScreenLayout->update();
    185185
    186186    /* Create machine window(s): */
    187     for (int screenId = 0; screenId < m_pScreenLayout->guestScreenCount(); ++screenId)
    188         addMachineWindow(UIMachineWindow::create(this, visualStateType(), screenId));
    189 
    190     foreach (UIMachineWindow *pMachineWindow, machineWindows())
     187    for (int cScreenId = 0; cScreenId < m_pScreenLayout->guestScreenCount(); ++cScreenId)
     188        addMachineWindow(UIMachineWindow::create(this, visualStateType(), cScreenId));
     189
     190    /* Connect screen-layout change handler: */
     191    for (int i = 0; i < machineWindows().size(); ++i)
    191192        connect(m_pScreenLayout, SIGNAL(screenLayoutChanged()),
    192                 static_cast<UIMachineWindowSeamless*>(pMachineWindow), SLOT(sltPlaceOnScreen()));
     193                static_cast<UIMachineWindowSeamless*>(machineWindows()[i]), SLOT(sltPlaceOnScreen()));
    193194
    194195    /* Remember what machine window(s) created: */
     
    198199void UIMachineLogicSeamless::cleanupMachineWindows()
    199200{
    200     /* Do not cleanup machine window if it is not present: */
     201    /* Do not cleanup machine window(s) if not present: */
    201202    if (!isMachineWindowsCreated())
    202203        return;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.h

    r30347 r30407  
    6666    //void prepareConnections() {}
    6767    //void cleanupFilters() {}
    68     //void cleanupCommon();
     68    //void cleanupCommon() {}
    6969
    7070    /* Private helpers: */
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