VirtualBox

Ignore:
Timestamp:
Mar 11, 2021 10:12:28 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9510. Refactoring

Location:
trunk/src/VBox/Frontends/VirtualBox/src/monitor/resource
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/monitor/resource/UIResourceMonitor.cpp

    r88074 r88081  
    15961596
    15971597/*********************************************************************************************************************************
    1598 *   Class UIResourceMonitorFactory implementation.                                                                               *
     1598*   Class UIVMActivityOverviewFactory implementation.                                                                               *
    15991599*********************************************************************************************************************************/
    16001600
    1601 UIResourceMonitorFactory::UIResourceMonitorFactory(UIActionPool *pActionPool /* = 0 */)
     1601UIVMActivityOverviewFactory::UIVMActivityOverviewFactory(UIActionPool *pActionPool /* = 0 */)
    16021602    : m_pActionPool(pActionPool)
    16031603{
    16041604}
    16051605
    1606 void UIResourceMonitorFactory::create(QIManagerDialog *&pDialog, QWidget *pCenterWidget)
    1607 {
    1608     pDialog = new UIResourceMonitor(pCenterWidget, m_pActionPool);
     1606void UIVMActivityOverviewFactory::create(QIManagerDialog *&pDialog, QWidget *pCenterWidget)
     1607{
     1608    pDialog = new UIVMActivityOverviewDialog(pCenterWidget, m_pActionPool);
    16091609}
    16101610
     
    16141614*********************************************************************************************************************************/
    16151615
    1616 UIResourceMonitor::UIResourceMonitor(QWidget *pCenterWidget, UIActionPool *pActionPool)
     1616UIVMActivityOverviewDialog::UIVMActivityOverviewDialog(QWidget *pCenterWidget, UIActionPool *pActionPool)
    16171617    : QIWithRetranslateUI<QIManagerDialog>(pCenterWidget)
    16181618    , m_pActionPool(pActionPool)
     
    16201620}
    16211621
    1622 void UIResourceMonitor::retranslateUi()
     1622void UIVMActivityOverviewDialog::retranslateUi()
    16231623{
    16241624    setWindowTitle(UIResourceMonitorWidget::tr("VM Resource Monitor"));
    16251625}
    16261626
    1627 void UIResourceMonitor::configure()
     1627void UIVMActivityOverviewDialog::configure()
    16281628{
    16291629    /* Apply window icons: */
     
    16311631}
    16321632
    1633 void UIResourceMonitor::configureCentralWidget()
     1633void UIVMActivityOverviewDialog::configureCentralWidget()
    16341634{
    16351635    UIResourceMonitorWidget *pWidget = new UIResourceMonitorWidget(EmbedTo_Dialog, m_pActionPool, true, this);
     
    16451645}
    16461646
    1647 void UIResourceMonitor::configureButtonBox()
    1648 {
    1649 }
    1650 
    1651 void UIResourceMonitor::finalize()
     1647void UIVMActivityOverviewDialog::configureButtonBox()
     1648{
     1649}
     1650
     1651void UIVMActivityOverviewDialog::finalize()
    16521652{
    16531653    retranslateUi();
    16541654}
    16551655
    1656 UIResourceMonitorWidget *UIResourceMonitor::widget()
     1656UIResourceMonitorWidget *UIVMActivityOverviewDialog::widget()
    16571657{
    16581658    return qobject_cast<UIResourceMonitorWidget*>(QIManagerDialog::widget());
  • trunk/src/VBox/Frontends/VirtualBox/src/monitor/resource/UIResourceMonitor.h

    r88071 r88081  
    133133};
    134134
    135 class UIResourceMonitorFactory : public QIManagerDialogFactory
     135class UIVMActivityOverviewFactory : public QIManagerDialogFactory
    136136{
    137137public:
    138138
    139     UIResourceMonitorFactory(UIActionPool *pActionPool = 0);
     139    UIVMActivityOverviewFactory(UIActionPool *pActionPool = 0);
    140140
    141141protected:
     
    145145};
    146146
    147 class UIResourceMonitor : public QIWithRetranslateUI<QIManagerDialog>
     147class UIVMActivityOverviewDialog : public QIWithRetranslateUI<QIManagerDialog>
    148148{
    149149    Q_OBJECT;
     
    151151private:
    152152
    153     UIResourceMonitor(QWidget *pCenterWidget, UIActionPool *pActionPool);
     153    UIVMActivityOverviewDialog(QWidget *pCenterWidget, UIActionPool *pActionPool);
    154154
    155155    virtual void retranslateUi() /* override */;
     
    173173    /** @} */
    174174
    175     friend class UIResourceMonitorFactory;
     175    friend class UIVMActivityOverviewFactory;
    176176};
    177177
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