Changeset 99094 in vbox for trunk/src/VBox
- Timestamp:
- Mar 21, 2023 3:50:28 PM (23 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r99093 r99094 453 453 connect(pMachine, &UIMachine::sigMachineStateChange, 454 454 this, &UIIndicatorUSB::updateAppearance); 455 connect(pMachine, &UIMachine::sigUSBControllerChange, 456 this, &UIIndicatorUSB::updateAppearance); 457 connect(pMachine, &UIMachine::sigUSBDeviceStateChange, 458 this, &UIIndicatorUSB::updateAppearance); 455 459 /* Translate finally: */ 456 460 retranslateUi(); … … 499 503 /* Configure connection: */ 500 504 connect(pMachine, &UIMachine::sigMachineStateChange, 505 this, &UIIndicatorSharedFolders::updateAppearance); 506 connect(pMachine, &UIMachine::sigSharedFolderChange, 501 507 this, &UIIndicatorSharedFolders::updateAppearance); 502 508 /* Translate finally: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineDefs.h
r99093 r99094 49 49 UIVisualElement_MouseIntegrationStuff = RT_BIT(1), 50 50 UIVisualElement_IndicatorPoolStuff = RT_BIT(2), 51 UIVisualElement_USBStuff = RT_BIT(8),52 UIVisualElement_SharedFolderStuff = RT_BIT(9),53 51 UIVisualElement_Recording = RT_BIT(11), 54 52 UIVisualElement_FeaturesStuff = RT_BIT(12), -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r99093 r99094 83 83 } 84 84 85 void UIMachineWindowNormal::sltUSBControllerChange()86 {87 /* Update USB stuff: */88 updateAppearanceOf(UIVisualElement_USBStuff);89 }90 91 void UIMachineWindowNormal::sltUSBDeviceStateChange()92 {93 /* Update USB stuff: */94 updateAppearanceOf(UIVisualElement_USBStuff);95 }96 97 void UIMachineWindowNormal::sltSharedFolderChange()98 {99 /* Update shared-folders stuff: */100 updateAppearanceOf(UIVisualElement_SharedFolderStuff);101 }102 103 85 void UIMachineWindowNormal::sltRecordingChange() 104 86 { … … 228 210 229 211 /* Start watching for console events: */ 230 connect(machineLogic()->uimachine(), &UIMachine::sigUSBControllerChange,231 this, &UIMachineWindowNormal::sltUSBControllerChange);232 connect(machineLogic()->uimachine(), &UIMachine::sigUSBDeviceStateChange,233 this, &UIMachineWindowNormal::sltUSBDeviceStateChange);234 connect(machineLogic()->uimachine(), &UIMachine::sigSharedFolderChange,235 this, &UIMachineWindowNormal::sltSharedFolderChange);236 212 connect(machineLogic()->uimachine(), &UIMachine::sigRecordingChange, 237 213 this, &UIMachineWindowNormal::sltRecordingChange); … … 426 402 { 427 403 /* Stop watching for console events: */ 428 disconnect(machineLogic()->uimachine(), &UIMachine::sigUSBControllerChange,429 this, &UIMachineWindowNormal::sltUSBControllerChange);430 disconnect(machineLogic()->uimachine(), &UIMachine::sigUSBDeviceStateChange,431 this, &UIMachineWindowNormal::sltUSBDeviceStateChange);432 disconnect(machineLogic()->uimachine(), &UIMachine::sigSharedFolderChange,433 this, &UIMachineWindowNormal::sltSharedFolderChange);434 404 disconnect(machineLogic()->uimachine(), &UIMachine::sigRecordingChange, 435 405 this, &UIMachineWindowNormal::sltRecordingChange); … … 696 666 if (uimachine()->isRunning()) 697 667 { 698 if (iElement & UIVisualElement_USBStuff)699 m_pIndicatorsPool->updateAppearance(IndicatorType_USB);700 if (iElement & UIVisualElement_SharedFolderStuff)701 m_pIndicatorsPool->updateAppearance(IndicatorType_SharedFolders);702 668 if (iElement & UIVisualElement_FeaturesStuff) 703 669 m_pIndicatorsPool->updateAppearance(IndicatorType_Features); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h
r99093 r99094 59 59 /** Handles machine state change event. */ 60 60 void sltMachineStateChanged(); 61 /** Handles USB controller change event. */62 void sltUSBControllerChange();63 /** Handles USB device state change event. */64 void sltUSBDeviceStateChange();65 /** Handles shared folder change event. */66 void sltSharedFolderChange();67 61 /** Handles recording change event. */ 68 62 void sltRecordingChange();
Note:
See TracChangeset
for help on using the changeset viewer.