Changeset 83064 in vbox
- Timestamp:
- Feb 12, 2020 7:24:33 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136104
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r83060 r83064 350 350 } 351 351 352 void UIVirtualBoxManager::sltHandleCloudMachineStateChange(const QString /* strMachineId */) 353 { 354 updateActionsAppearance(); 355 } 356 352 357 void UIVirtualBoxManager::sltHandleStateChange(const QUuid &) 353 358 { … … 1352 1357 connect(m_pWidget, &UIVirtualBoxManagerWidget::sigCurrentSnapshotItemChange, 1353 1358 this, &UIVirtualBoxManager::sltCurrentSnapshotItemChange); 1359 connect(m_pWidget, &UIVirtualBoxManagerWidget::sigCloudMachineStateChange, 1360 this, &UIVirtualBoxManager::sltHandleCloudMachineStateChange); 1354 1361 setCentralWidget(m_pWidget); 1355 1362 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.h
r83011 r83064 130 130 /** Handles current snapshot item change. */ 131 131 void sltCurrentSnapshotItemChange(); 132 133 /** Handles state change for cloud machine with specified @a strMachineId. */ 134 void sltHandleCloudMachineStateChange(const QString strMachineId); 132 135 /** @} */ 133 136 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r83059 r83064 371 371 if (m_pPaneChooser) 372 372 { 373 /* Configure Chooser-pane: */ 374 connect(m_pPaneChooser, &UIChooser::sigCloudMachineStateChange, 375 this, &UIVirtualBoxManagerWidget::sigCloudMachineStateChange); 373 376 /* Add into splitter: */ 374 377 m_pSplitter->addWidget(m_pPaneChooser); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h
r83059 r83064 65 65 /** Notifies listeners about current Snapshots pane item change. */ 66 66 void sigCurrentSnapshotItemChange(); 67 68 /** Notifies about state change for cloud machine with certain @a strMachineId. */ 69 void sigCloudMachineStateChange(const QString &strMachineId); 67 70 68 71 public: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp
r82968 r83064 169 169 connect(m_pChooserModel, &UIChooserModel::sigToolMenuRequested, 170 170 this, &UIChooser::sltToolMenuRequested); 171 connect(m_pChooserModel, &UIChooserModel::sigCloudMachineStateChange, 172 this, &UIChooser::sigCloudMachineStateChange); 171 173 172 174 /* Setup chooser-view connections: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.h
r82968 r83064 57 57 /** Notifies listeners about tool popup-menu request for certain tool @a enmClass and in specified @a position. */ 58 58 void sigToolMenuRequested(UIToolClass enmClass, const QPoint &position); 59 /** @} */ 60 61 /** @name Cloud machine stuff. 62 * @{ */ 63 /** Notifies about state change for cloud machine with certain @a strId. */ 64 void sigCloudMachineStateChange(const QString &strId); 59 65 /** @} */ 60 66 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r83063 r83064 308 308 } 309 309 #endif /* VBOX_GUI_WITH_CLOUD_VMS */ 310 311 void UIChooserAbstractModel::sltHandleCloudMachineStateChange() 312 { 313 UIVirtualMachineItem *pCache = qobject_cast<UIVirtualMachineItem*>(sender()); 314 AssertPtrReturnVoid(pCache); 315 sigCloudMachineStateChange(pCache->id()); 316 } 310 317 311 318 void UIChooserAbstractModel::sltGroupDefinitionsSaveComplete() -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h
r83041 r83064 50 50 signals: 51 51 52 /** @name Cloud machine stuff. 53 * @{ */ 54 /** Notifies about state change for cloud machine with certain @a strId. */ 55 void sigCloudMachineStateChange(const QString &strId); 56 /** @} */ 57 52 58 /** @name Group saving stuff. 53 59 * @{ */ … … 104 110 public slots: 105 111 106 /** @name Group saving stuff. 112 /** @name Cloud machine stuff. 113 * @{ */ 114 /** Handles cloud machine state change. */ 115 void sltHandleCloudMachineStateChange(); 116 /** @} */ 117 118 /** @name Group saving stuff. 107 119 * @{ */ 108 120 /** Handles group definition saving complete. */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeMachine.cpp
r83055 r83064 17 17 18 18 /* GUI includes: */ 19 #include "UIChooserAbstractModel.h" 19 20 #include "UIChooserNodeMachine.h" 20 21 #include "UIVirtualMachineItemCloud.h" … … 41 42 , m_pCache(new UIVirtualMachineItemCloud(guiCloudMachine)) 42 43 { 44 if (parentNode()) 45 parentNode()->addNode(this, iPosition); 43 46 /* Cloud VM item can notify machine node only directly (no console), we have to setup listener: */ 44 47 connect(static_cast<UIVirtualMachineItemCloud*>(m_pCache), &UIVirtualMachineItemCloud::sigStateChange, 45 48 this, &UIChooserNodeMachine::sltHandleStateChange); 46 if (parentNode())47 parentNode()->addNode(this, iPosition);49 connect(static_cast<UIVirtualMachineItemCloud*>(m_pCache), &UIVirtualMachineItemCloud::sigStateChange, 50 static_cast<UIChooserAbstractModel*>(model()), &UIChooserAbstractModel::sltHandleCloudMachineStateChange); 48 51 retranslateUi(); 49 52 }
Note:
See TracChangeset
for help on using the changeset viewer.