Changeset 88081 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 11, 2021 10:12:28 AM (4 years ago)
- 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 1596 1596 1597 1597 /********************************************************************************************************************************* 1598 * Class UI ResourceMonitorFactory implementation. *1598 * Class UIVMActivityOverviewFactory implementation. * 1599 1599 *********************************************************************************************************************************/ 1600 1600 1601 UI ResourceMonitorFactory::UIResourceMonitorFactory(UIActionPool *pActionPool /* = 0 */)1601 UIVMActivityOverviewFactory::UIVMActivityOverviewFactory(UIActionPool *pActionPool /* = 0 */) 1602 1602 : m_pActionPool(pActionPool) 1603 1603 { 1604 1604 } 1605 1605 1606 void UI ResourceMonitorFactory::create(QIManagerDialog *&pDialog, QWidget *pCenterWidget)1607 { 1608 pDialog = new UI ResourceMonitor(pCenterWidget, m_pActionPool);1606 void UIVMActivityOverviewFactory::create(QIManagerDialog *&pDialog, QWidget *pCenterWidget) 1607 { 1608 pDialog = new UIVMActivityOverviewDialog(pCenterWidget, m_pActionPool); 1609 1609 } 1610 1610 … … 1614 1614 *********************************************************************************************************************************/ 1615 1615 1616 UI ResourceMonitor::UIResourceMonitor(QWidget *pCenterWidget, UIActionPool *pActionPool)1616 UIVMActivityOverviewDialog::UIVMActivityOverviewDialog(QWidget *pCenterWidget, UIActionPool *pActionPool) 1617 1617 : QIWithRetranslateUI<QIManagerDialog>(pCenterWidget) 1618 1618 , m_pActionPool(pActionPool) … … 1620 1620 } 1621 1621 1622 void UI ResourceMonitor::retranslateUi()1622 void UIVMActivityOverviewDialog::retranslateUi() 1623 1623 { 1624 1624 setWindowTitle(UIResourceMonitorWidget::tr("VM Resource Monitor")); 1625 1625 } 1626 1626 1627 void UI ResourceMonitor::configure()1627 void UIVMActivityOverviewDialog::configure() 1628 1628 { 1629 1629 /* Apply window icons: */ … … 1631 1631 } 1632 1632 1633 void UI ResourceMonitor::configureCentralWidget()1633 void UIVMActivityOverviewDialog::configureCentralWidget() 1634 1634 { 1635 1635 UIResourceMonitorWidget *pWidget = new UIResourceMonitorWidget(EmbedTo_Dialog, m_pActionPool, true, this); … … 1645 1645 } 1646 1646 1647 void UI ResourceMonitor::configureButtonBox()1648 { 1649 } 1650 1651 void UI ResourceMonitor::finalize()1647 void UIVMActivityOverviewDialog::configureButtonBox() 1648 { 1649 } 1650 1651 void UIVMActivityOverviewDialog::finalize() 1652 1652 { 1653 1653 retranslateUi(); 1654 1654 } 1655 1655 1656 UIResourceMonitorWidget *UI ResourceMonitor::widget()1656 UIResourceMonitorWidget *UIVMActivityOverviewDialog::widget() 1657 1657 { 1658 1658 return qobject_cast<UIResourceMonitorWidget*>(QIManagerDialog::widget()); -
trunk/src/VBox/Frontends/VirtualBox/src/monitor/resource/UIResourceMonitor.h
r88071 r88081 133 133 }; 134 134 135 class UI ResourceMonitorFactory : public QIManagerDialogFactory135 class UIVMActivityOverviewFactory : public QIManagerDialogFactory 136 136 { 137 137 public: 138 138 139 UI ResourceMonitorFactory(UIActionPool *pActionPool = 0);139 UIVMActivityOverviewFactory(UIActionPool *pActionPool = 0); 140 140 141 141 protected: … … 145 145 }; 146 146 147 class UI ResourceMonitor: public QIWithRetranslateUI<QIManagerDialog>147 class UIVMActivityOverviewDialog : public QIWithRetranslateUI<QIManagerDialog> 148 148 { 149 149 Q_OBJECT; … … 151 151 private: 152 152 153 UI ResourceMonitor(QWidget *pCenterWidget, UIActionPool *pActionPool);153 UIVMActivityOverviewDialog(QWidget *pCenterWidget, UIActionPool *pActionPool); 154 154 155 155 virtual void retranslateUi() /* override */; … … 173 173 /** @} */ 174 174 175 friend class UI ResourceMonitorFactory;175 friend class UIVMActivityOverviewFactory; 176 176 }; 177 177
Note:
See TracChangeset
for help on using the changeset viewer.