- Timestamp:
- Mar 8, 2023 9:34:42 AM (22 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r98855 r98874 1618 1618 1619 1619 if (!m_pVMInformationDialog) 1620 m_pVMInformationDialog = new UIVMInformationDialog (uimachine());1620 m_pVMInformationDialog = new UIVMInformationDialog; 1621 1621 1622 1622 if (m_pVMInformationDialog) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationConfiguration.h
r98769 r98874 51 51 public: 52 52 53 /** Constructs information-tab passing @a pParent to the QWidget base-class constructor. */53 /** Constructs information-tab passing @a pParent to the base-class. */ 54 54 UIInformationConfiguration(QWidget *pParent); 55 55 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.cpp
r98803 r98874 515 515 *********************************************************************************************************************************/ 516 516 517 UIInformationRuntime::UIInformationRuntime(QWidget *pParent , const UIMachine *pMachine)517 UIInformationRuntime::UIInformationRuntime(QWidget *pParent) 518 518 : QIWithRetranslateUI<QWidget>(pParent) 519 519 , m_pMainLayout(0) … … 521 521 , m_pCopyWholeTableAction(0) 522 522 { 523 connect( pMachine, &UIMachine::sigAdditionsStateChange, this, &UIInformationRuntime::sltGuestAdditionsStateChange);524 connect( pMachine, &UIMachine::sigGuestMonitorChange, this, &UIInformationRuntime::sltGuestMonitorChange);525 connect( pMachine, &UIMachine::sigVRDEChange, this, &UIInformationRuntime::sltVRDEChange);526 connect( pMachine, &UIMachine::sigClipboardModeChange, this, &UIInformationRuntime::sltClipboardChange);527 connect( pMachine, &UIMachine::sigDnDModeChange, this, &UIInformationRuntime::sltDnDModeChange);523 connect(gpMachine, &UIMachine::sigAdditionsStateChange, this, &UIInformationRuntime::sltGuestAdditionsStateChange); 524 connect(gpMachine, &UIMachine::sigGuestMonitorChange, this, &UIInformationRuntime::sltGuestMonitorChange); 525 connect(gpMachine, &UIMachine::sigVRDEChange, this, &UIInformationRuntime::sltVRDEChange); 526 connect(gpMachine, &UIMachine::sigClipboardModeChange, this, &UIInformationRuntime::sltClipboardChange); 527 connect(gpMachine, &UIMachine::sigDnDModeChange, this, &UIInformationRuntime::sltDnDModeChange); 528 528 529 529 prepareObjects(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.h
r98803 r98874 52 52 public: 53 53 54 /** Constructs information-tab passing @a pParent to the QWidget base-class constructor. */55 UIInformationRuntime(QWidget *pParent , const UIMachine *pMachine);54 /** Constructs information-tab passing @a pParent to the base-class. */ 55 UIInformationRuntime(QWidget *pParent); 56 56 57 57 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r98803 r98874 51 51 #include "VBoxUtils.h" 52 52 53 UIVMInformationDialog::UIVMInformationDialog( UIMachine *pMachine)53 UIVMInformationDialog::UIVMInformationDialog() 54 54 : QMainWindowWithRestorableGeometryAndRetranslateUi(0) 55 , m_pMachine(pMachine)56 55 , m_pTabWidget(0) 57 56 , m_fCloseEmitted(false) … … 156 155 void UIVMInformationDialog::prepare() 157 156 { 158 /* Load and clear: */159 AssertPtrReturnVoid(m_pMachine);160 161 157 m_uMachineId = uiCommon().managedVMUuid(); 162 m_strMachineName = m_pMachine->machineName();158 m_strMachineName = gpMachine->machineName(); 163 159 #ifdef VBOX_WS_MAC 164 160 /* No window-icon on Mac OS X, because it acts as proxy icon which isn't necessary here. */ … … 218 214 /* Create Runtime Information tab: */ 219 215 UIInformationRuntime *pInformationRuntimeWidget = 220 new UIInformationRuntime(this , m_pMachine);216 new UIInformationRuntime(this); 221 217 if (pInformationRuntimeWidget) 222 218 { … … 227 223 /* Create Performance Monitor tab: */ 228 224 UIVMActivityMonitor *pVMActivityMonitorWidget = 229 new UIVMActivityMonitor(EmbedTo_Dialog, this, m_pMachine->uisession()->machine());225 new UIVMActivityMonitor(EmbedTo_Dialog, this, gpMachine->uisession()->machine()); 230 226 if (pVMActivityMonitorWidget) 231 227 { 232 connect( m_pMachine, &UIMachine::sigAdditionsStateChange,228 connect(gpMachine, &UIMachine::sigAdditionsStateChange, 233 229 pVMActivityMonitorWidget, &UIVMActivityMonitor::sltGuestAdditionsStateChange); 234 230 m_tabs.insert(Tabs_ActivityMonitor, pVMActivityMonitorWidget); … … 238 234 /* Create Guest Process Control tab: */ 239 235 UIGuestProcessControlWidget *pGuestProcessControlWidget = 240 new UIGuestProcessControlWidget(EmbedTo_Dialog, m_pMachine->uisession()->guest(),236 new UIGuestProcessControlWidget(EmbedTo_Dialog, gpMachine->uisession()->guest(), 241 237 this, m_strMachineName, false /* fShowToolbar */); 242 238 if (pGuestProcessControlWidget) … … 283 279 void UIVMInformationDialog::loadDialogGeometry() 284 280 { 285 const QRect geo = gEDataManager->sessionInformationDialogGeometry(this, m_pMachine->activeWindow());281 const QRect geo = gEDataManager->sessionInformationDialogGeometry(this, gpMachine->activeWindow()); 286 282 LogRel2(("GUI: UIVMInformationDialog: Restoring geometry to: Origin=%dx%d, Size=%dx%d\n", 287 283 geo.x(), geo.y(), geo.width(), geo.height())); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.h
r98707 r98874 44 44 class QITabWidget; 45 45 class QIDialogButtonBox; 46 class UIMachine;47 46 48 47 /* Type definitions: */ … … 63 62 public: 64 63 65 /** Constructs information dialog for passed @a pMachine. */66 UIVMInformationDialog( UIMachine *pMachine);64 /** Constructs information dialog. */ 65 UIVMInformationDialog(); 67 66 68 67 /** Returns whether the dialog should be maximized when geometry being restored. */ … … 105 104 void saveDialogGeometry(); 106 105 107 /** Holds the machine UI reference. */108 UIMachine *m_pMachine;109 110 106 /** @name Widget variables. 111 107 * @{ */
Note:
See TracChangeset
for help on using the changeset viewer.