VirtualBox

Changeset 30544 in vbox


Ignore:
Timestamp:
Jun 30, 2010 10:37:36 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63252
Message:

FE/Qt: New running VM core: Rearranging attributes passed to UIMachineView + sub-children.

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

Legend:

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

    r30542 r30544  
    111111
    112112UIMachineView* UIMachineView::create(  UIMachineWindow *pMachineWindow
     113                                     , ulong uScreenId
     114                                     , UIVisualStateType visualStateType
    113115#ifdef VBOX_WITH_VIDEOHWACCEL
    114116                                     , bool bAccelerate2DVideo
    115117#endif
    116                                      , UIVisualStateType visualStateType
    117                                      , ulong uScreenId)
     118                                     )
    118119{
    119120    UIMachineView *view = 0;
     
    122123        case UIVisualStateType_Normal:
    123124            view = new UIMachineViewNormal(  pMachineWindow
     125                                           , uScreenId
    124126#ifdef VBOX_WITH_VIDEOHWACCEL
    125127                                           , bAccelerate2DVideo
    126128#endif
    127                                            , uScreenId);
     129                                           );
    128130            break;
    129131        case UIVisualStateType_Fullscreen:
    130132            view = new UIMachineViewFullscreen(  pMachineWindow
     133                                               , uScreenId
    131134#ifdef VBOX_WITH_VIDEOHWACCEL
    132135                                               , bAccelerate2DVideo
    133136#endif
    134                                                , uScreenId);
     137                                               );
    135138            break;
    136139        case UIVisualStateType_Seamless:
    137140            view = new UIMachineViewSeamless(  pMachineWindow
     141                                             , uScreenId
    138142#ifdef VBOX_WITH_VIDEOHWACCEL
    139143                                             , bAccelerate2DVideo
    140144#endif
    141                                              , uScreenId);
     145                                             );
    142146            break;
    143147        default:
     
    147151}
    148152
    149 void UIMachineView::destroy(UIMachineView *pWhichView)
    150 {
    151     delete pWhichView;
     153void UIMachineView::destroy(UIMachineView *pMachineView)
     154{
     155    delete pMachineView;
    152156}
    153157
     
    159163
    160164UIMachineView::UIMachineView(  UIMachineWindow *pMachineWindow
     165                             , ulong uScreenId
    161166#ifdef VBOX_WITH_VIDEOHWACCEL
    162167                             , bool bAccelerate2DVideo
    163168#endif
    164                              , ulong uScreenId)
    165 // TODO_NEW_CORE: really think of if this is right
    166 //    : QAbstractScrollArea(((QMainWindow*)pMachineWindow->machineWindow())->centralWidget())
     169                             )
    167170    : QAbstractScrollArea(pMachineWindow->machineWindow())
    168171    , m_pMachineWindow(pMachineWindow)
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h

    r30408 r30544  
    4848    enum DesktopGeo { DesktopGeo_Invalid = 0, DesktopGeo_Fixed, DesktopGeo_Automatic, DesktopGeo_Any };
    4949
    50     /* Factory function to create required view sub-child: */
     50    /* Factory function to create machine-view: */
    5151    static UIMachineView* create(  UIMachineWindow *pMachineWindow
     52                                 , ulong uScreenId
     53                                 , UIVisualStateType visualStateType
    5254#ifdef VBOX_WITH_VIDEOHWACCEL
    5355                                 , bool bAccelerate2DVideo
    5456#endif
    55                                  , UIVisualStateType visualStateType
    56                                  , ulong uScreenId);
    57     static void destroy(UIMachineView *pWhichView);
     57    );
     58    /* Factory function to destroy required machine-view: */
     59    static void destroy(UIMachineView *pMachineView);
    5860
    5961    /* Public getters: */
     
    7779protected:
    7880
    79     /* Machine view constructor/destructor: */
     81    /* Machine-view constructor: */
    8082    UIMachineView(  UIMachineWindow *pMachineWindow
     83                  , ulong uScreenId
    8184#ifdef VBOX_WITH_VIDEOHWACCEL
    8285                  , bool bAccelerate2DVideo
    8386#endif
    84                   , ulong uScreenId);
     87    );
     88    /* Machine-view destructor: */
    8589    virtual ~UIMachineView();
    8690
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp

    r30408 r30544  
    4141
    4242UIMachineViewFullscreen::UIMachineViewFullscreen(  UIMachineWindow *pMachineWindow
     43                                                 , ulong uScreenId
    4344#ifdef VBOX_WITH_VIDEOHWACCEL
    4445                                                 , bool bAccelerate2DVideo
    4546#endif
    46                                                  , ulong uMonitor)
     47                                                 )
    4748    : UIMachineView(  pMachineWindow
     49                    , uScreenId
    4850#ifdef VBOX_WITH_VIDEOHWACCEL
    4951                    , bAccelerate2DVideo
    5052#endif
    51                     , uMonitor)
     53                    )
    5254    , m_bIsGuestAutoresizeEnabled(pMachineWindow->machineLogic()->actionsPool()->action(UIActionIndex_Toggle_GuestAutoresize)->isChecked())
    5355    , m_fShouldWeDoResize(false)
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.h

    r30347 r30544  
    2929protected:
    3030
    31     /* Fullscreen machine-view constructor/destructor: */
     31    /* Fullscreen machine-view constructor: */
    3232    UIMachineViewFullscreen(  UIMachineWindow *pMachineWindow
     33                            , ulong uScreenId
    3334#ifdef VBOX_WITH_VIDEOHWACCEL
    3435                            , bool bAccelerate2DVideo
    3536#endif
    36                             , ulong uMonitor);
     37    );
     38    /* Fullscreen machine-view destructor: */
    3739    virtual ~UIMachineViewFullscreen();
    3840
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp

    r30542 r30544  
    219219
    220220    m_pMachineView = UIMachineView::create(  this
     221                                           , m_uScreenId
     222                                           , machineLogic()->visualStateType()
    221223#ifdef VBOX_WITH_VIDEOHWACCEL
    222224                                           , bAccelerate2DVideo
    223225#endif
    224                                            , machineLogic()->visualStateType()
    225                                            , m_uScreenId);
     226                                           );
    226227
    227228    /* Add machine view into layout: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp

    r30408 r30544  
    3636
    3737UIMachineViewNormal::UIMachineViewNormal(  UIMachineWindow *pMachineWindow
     38                                         , ulong uScreenId
    3839#ifdef VBOX_WITH_VIDEOHWACCEL
    3940                                         , bool bAccelerate2DVideo
    4041#endif
    41                                          , ulong uMonitor)
     42                                         )
    4243    : UIMachineView(  pMachineWindow
     44                    , uScreenId
    4345#ifdef VBOX_WITH_VIDEOHWACCEL
    4446                    , bAccelerate2DVideo
    4547#endif
    46                     , uMonitor)
     48                    )
    4749    , m_bIsGuestAutoresizeEnabled(pMachineWindow->machineLogic()->actionsPool()->action(UIActionIndex_Toggle_GuestAutoresize)->isChecked())
    4850    , m_fShouldWeDoResize(false)
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.h

    r30347 r30544  
    2929protected:
    3030
    31     /* Normal machine-view constructor/destructor: */
     31    /* Normal machine-view constructor: */
    3232    UIMachineViewNormal(  UIMachineWindow *pMachineWindow
     33                        , ulong uScreenId
    3334#ifdef VBOX_WITH_VIDEOHWACCEL
    3435                        , bool bAccelerate2DVideo
    3536#endif
    36                         , ulong uMonitor);
     37    );
     38    /* Normal machine-view destructor: */
    3739    virtual ~UIMachineViewNormal();
    3840
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r30542 r30544  
    480480
    481481    m_pMachineView = UIMachineView::create(  this
     482                                           , m_uScreenId
     483                                           , machineLogic()->visualStateType()
    482484#ifdef VBOX_WITH_VIDEOHWACCEL
    483485                                           , bAccelerate2DVideo
    484486#endif
    485                                            , machineLogic()->visualStateType()
    486                                            , m_uScreenId);
     487                                           );
    487488
    488489    /* Add machine view into layout: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp

    r30408 r30544  
    4040
    4141UIMachineViewSeamless::UIMachineViewSeamless(  UIMachineWindow *pMachineWindow
     42                                             , ulong uScreenId
    4243#ifdef VBOX_WITH_VIDEOHWACCEL
    4344                                             , bool bAccelerate2DVideo
    4445#endif
    45                                              , ulong uMonitor)
     46                                             )
    4647    : UIMachineView(  pMachineWindow
     48                    , uScreenId
    4749#ifdef VBOX_WITH_VIDEOHWACCEL
    4850                    , bAccelerate2DVideo
    4951#endif
    50                     , uMonitor)
     52                    )
    5153    , m_fShouldWeDoResize(false)
    5254    , m_pSyncBlocker(0)
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.h

    r30407 r30544  
    2929protected:
    3030
    31     /* Seamless machine-view constructor/destructor: */
     31    /* Seamless machine-view constructor: */
    3232    UIMachineViewSeamless(  UIMachineWindow *pMachineWindow
     33                          , ulong uScreenId
    3334#ifdef VBOX_WITH_VIDEOHWACCEL
    3435                          , bool bAccelerate2DVideo
    3536#endif
    36                           , ulong uMonitor);
     37    );
     38    /* Seamless machine-view destructor: */
    3739    virtual ~UIMachineViewSeamless();
    3840
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp

    r30542 r30544  
    270270
    271271    m_pMachineView = UIMachineView::create(  this
     272                                           , m_uScreenId
     273                                           , machineLogic()->visualStateType()
    272274#ifdef VBOX_WITH_VIDEOHWACCEL
    273275                                           , bAccelerate2DVideo
    274276#endif
    275                                            , machineLogic()->visualStateType()
    276                                            , m_uScreenId);
     277                                           );
    277278
    278279    /* Add machine view into layout: */
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