- Timestamp:
- May 12, 2021 8:37:23 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/activity
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/activity/UIMonitorCommon.h
r88119 r89000 40 40 public: 41 41 42 /** @name Static ut lity methods that query and parse IMachineDebugger outputs for specific metrix types.42 /** @name Static utility methods that query and parse IMachineDebugger outputs for specific metrix types. 43 43 * @{ */ 44 44 static void getNetworkLoad(CMachineDebugger &debugger, quint64 &uOutNetworkReceived, quint64 &uOutNetworkTransmitted); -
trunk/src/VBox/Frontends/VirtualBox/src/activity/overview/UIVMActivityOverviewWidget.cpp
r88999 r89000 1724 1724 } 1725 1725 1726 1727 /*********************************************************************************************************************************1728 * Class UIVMActivityOverviewFactory implementation. *1729 *********************************************************************************************************************************/1730 1731 UIVMActivityOverviewFactory::UIVMActivityOverviewFactory(UIActionPool *pActionPool /* = 0 */)1732 : m_pActionPool(pActionPool)1733 {1734 }1735 1736 void UIVMActivityOverviewFactory::create(QIManagerDialog *&pDialog, QWidget *pCenterWidget)1737 {1738 pDialog = new UIVMActivityOverviewDialog(pCenterWidget, m_pActionPool);1739 }1740 1741 1742 /*********************************************************************************************************************************1743 * Class UIActivityOverview implementation. *1744 *********************************************************************************************************************************/1745 1746 UIVMActivityOverviewDialog::UIVMActivityOverviewDialog(QWidget *pCenterWidget, UIActionPool *pActionPool)1747 : QIWithRetranslateUI<QIManagerDialog>(pCenterWidget)1748 , m_pActionPool(pActionPool)1749 {1750 }1751 1752 void UIVMActivityOverviewDialog::retranslateUi()1753 {1754 setWindowTitle(UIVMActivityOverviewWidget::tr("VM Activity Overview"));1755 }1756 1757 void UIVMActivityOverviewDialog::configure()1758 {1759 /* Apply window icons: */1760 setWindowIcon(UIIconPool::iconSetFull(":/host_iface_manager_32px.png", ":/host_iface_manager_16px.png"));1761 }1762 1763 void UIVMActivityOverviewDialog::configureCentralWidget()1764 {1765 UIVMActivityOverviewWidget *pWidget = new UIVMActivityOverviewWidget(EmbedTo_Dialog, m_pActionPool, true, this);1766 AssertPtrReturnVoid(pWidget);1767 {1768 setWidget(pWidget);1769 setWidgetMenu(pWidget->menu());1770 #ifdef VBOX_WS_MAC1771 setWidgetToolbar(pWidget->toolbar());1772 #endif1773 centralWidget()->layout()->addWidget(pWidget);1774 }1775 }1776 1777 void UIVMActivityOverviewDialog::configureButtonBox()1778 {1779 }1780 1781 void UIVMActivityOverviewDialog::finalize()1782 {1783 retranslateUi();1784 }1785 1786 UIVMActivityOverviewWidget *UIVMActivityOverviewDialog::widget()1787 {1788 return qobject_cast<UIVMActivityOverviewWidget*>(QIManagerDialog::widget());1789 }1790 1791 1792 1726 #include "UIVMActivityOverviewWidget.moc" -
trunk/src/VBox/Frontends/VirtualBox/src/activity/overview/UIVMActivityOverviewWidget.h
r88711 r89000 134 134 }; 135 135 136 class UIVMActivityOverviewFactory : public QIManagerDialogFactory137 {138 public:139 140 UIVMActivityOverviewFactory(UIActionPool *pActionPool = 0);141 142 protected:143 144 virtual void create(QIManagerDialog *&pDialog, QWidget *pCenterWidget) /* override */;145 UIActionPool *m_pActionPool;146 };147 148 class UIVMActivityOverviewDialog : public QIWithRetranslateUI<QIManagerDialog>149 {150 Q_OBJECT;151 152 private:153 154 UIVMActivityOverviewDialog(QWidget *pCenterWidget, UIActionPool *pActionPool);155 156 virtual void retranslateUi() /* override */;157 158 /** @name Prepare/cleanup cascade.159 * @{ */160 virtual void configure() /* override */;161 virtual void configureCentralWidget() /* override */;162 virtual void configureButtonBox() /* override */;163 virtual void finalize() /* override */;164 /** @} */165 166 /** @name Widget stuff.167 * @{ */168 virtual UIVMActivityOverviewWidget *widget() /* override */;169 /** @} */170 171 /** @name Action related variables.172 * @{ */173 UIActionPool *m_pActionPool;174 /** @} */175 friend class UIVMActivityOverviewFactory;176 };177 178 136 #endif /* !FEQT_INCLUDED_SRC_activity_overview_UIVMActivityOverviewWidget_h */
Note:
See TracChangeset
for help on using the changeset viewer.