Changeset 103551 in vbox for trunk/src/VBox
- Timestamp:
- Feb 23, 2024 4:09:47 PM (12 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r103538 r103551 4892 4892 { 4893 4893 /* Current VM only: */ 4894 if ( uiCommon().uiType() == UI Common::UIType_RuntimeUI4894 if ( uiCommon().uiType() == UIType_RuntimeUI 4895 4895 && uMachineID == uiCommon().managedVMUuid()) 4896 4896 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r103538 r103551 633 633 } 634 634 635 if ( m_enmType== UIType_RuntimeUI && startVM)635 if (uiType() == UIType_RuntimeUI && startVM) 636 636 { 637 637 /* m_fSeparateProcess makes sense only if a VM is started. */ … … 677 677 678 678 /* For Selector UI: */ 679 if (uiType() == UIType_ SelectorUI)679 if (uiType() == UIType_ManagerUI) 680 680 { 681 681 /* We should create separate logging file for VM selector: */ … … 1404 1404 { 1405 1405 /* For Selector UI: */ 1406 case UIType_ SelectorUI:1406 case UIType_ManagerUI: 1407 1407 { 1408 1408 /* Just switch to existing VM window: */ … … 1585 1585 } 1586 1586 /* Is this a Selector UI call? */ 1587 else if (uiType() == UIType_ SelectorUI)1587 else if (uiType() == UIType_ManagerUI) 1588 1588 { 1589 1589 /* Open existing 'shared' session: */ … … 3085 3085 3086 3086 /* For Selector UI: */ 3087 if (uiType() == UIType_ SelectorUI)3087 if (uiType() == UIType_ManagerUI) 3088 3088 { 3089 3089 /* Recreate Main event listeners: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h
r103464 r103551 145 145 public: 146 146 147 /** UI types. */148 enum UIType149 {150 UIType_SelectorUI,151 UIType_RuntimeUI152 };153 154 147 /** VM launch running options. */ 155 148 enum LaunchRunning -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h
r103540 r103551 33 33 34 34 /* Qt includes: */ 35 #include <QEvent>36 35 #include <QStringList> 37 36 … … 84 83 85 84 85 /** UI types. */ 86 enum UIType 87 { 88 UIType_ManagerUI, 89 UIType_RuntimeUI 90 }; 91 92 86 93 /** VM launch modes. */ 87 94 enum UILaunchMode -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp
r103538 r103551 1070 1070 return m_enmSynthTestPolicy == DesktopWatchdogPolicy_SynthTest_Disabled 1071 1071 || ( m_enmSynthTestPolicy == DesktopWatchdogPolicy_SynthTest_ManagerOnly 1072 && uiCommon().uiType() == UI Common::UIType_RuntimeUI)1072 && uiCommon().uiType() == UIType_RuntimeUI) 1073 1073 || ( m_enmSynthTestPolicy == DesktopWatchdogPolicy_SynthTest_MachineOnly 1074 && uiCommon().uiType() == UI Common::UIType_SelectorUI);1074 && uiCommon().uiType() == UIType_ManagerUI); 1075 1075 } 1076 1076 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r103537 r103551 2190 2190 if (!strAutoConfirmId.isEmpty()) 2191 2191 { 2192 const QUuid uID = uiCommon().uiType() == UI Common::UIType_RuntimeUI2192 const QUuid uID = uiCommon().uiType() == UIType_RuntimeUI 2193 2193 ? uiCommon().managedVMUuid() 2194 2194 : UIExtraDataManager::GlobalID; -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r102726 r103551 997 997 998 998 /* Add a label tab with machine name on it. Used only in manager UI: */ 999 if (uiCommon().uiType() == UI Common::UIType_SelectorUI)999 if (uiCommon().uiType() == UIType_ManagerUI) 1000 1000 m_pTabWidget->addTab(new UILabelTab(this, uMachineId, strMachineName), strMachineName); 1001 1001 -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r103538 r103551 542 542 #ifndef VBOX_RUNTIME_UI 543 543 /* Create global app instance for Selector UI: */ 544 UICommon::create(UI Common::UIType_SelectorUI);544 UICommon::create(UIType_ManagerUI); 545 545 #else 546 546 /* Create global app instance for Runtime UI: */ 547 UICommon::create(UI Common::UIType_RuntimeUI);547 UICommon::create(UIType_RuntimeUI); 548 548 #endif 549 549 -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UIUpdateManager.cpp
r98103 r103551 272 272 #ifdef VBOX_WITH_UPDATE_REQUEST 273 273 /* Ask updater to check for the first time, for Selector UI only: */ 274 if (gEDataManager->applicationUpdateEnabled() && uiCommon().uiType() == UI Common::UIType_SelectorUI)274 if (gEDataManager->applicationUpdateEnabled() && uiCommon().uiType() == UIType_ManagerUI) 275 275 QTimer::singleShot(0, this, SLOT(sltCheckIfUpdateIsNecessary())); 276 276 #endif /* VBOX_WITH_UPDATE_REQUEST */ -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp
r103549 r103551 2391 2391 switch (uiCommon().uiType()) 2392 2392 { 2393 case UI Common::UIType_SelectorUI:2393 case UIType_ManagerUI: 2394 2394 { 2395 2395 /* Open a session thru which we will modify the machine: */ … … 2498 2498 switch (uiCommon().uiType()) 2499 2499 { 2500 case UI Common::UIType_SelectorUI:2500 case UIType_ManagerUI: 2501 2501 { 2502 2502 /* Acquire VM id: */ … … 2543 2543 switch (uiCommon().uiType()) 2544 2544 { 2545 case UI Common::UIType_RuntimeUI:2545 case UIType_RuntimeUI: 2546 2546 { 2547 2547 /* Check the console state, it might be already gone: */ … … 3720 3720 switch (uiCommon().uiType()) 3721 3721 { 3722 case UI Common::UIType_SelectorUI:3722 case UIType_ManagerUI: 3723 3723 { 3724 3724 /* Acquire session state: */ … … 3749 3749 break; 3750 3750 } 3751 case UI Common::UIType_RuntimeUI:3751 case UIType_RuntimeUI: 3752 3752 { 3753 3753 /* Get passed machine: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIShortcutConfigurationEditor.cpp
r102220 r103551 978 978 979 979 /* In the VM process we start by displaying the Runtime UI tab: */ 980 if (uiCommon().uiType() == UI Common::UIType_RuntimeUI)980 if (uiCommon().uiType() == UIType_RuntimeUI) 981 981 m_pTabWidget->setCurrentWidget(pTabMachine); 982 982 }
Note:
See TracChangeset
for help on using the changeset viewer.