Changeset 56060 in vbox
- Timestamp:
- May 25, 2015 2:21:49 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r56059 r56060 568 568 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_Seamless: strResult = "Seamless"; break; 569 569 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_Scale: strResult = "Scale"; break; 570 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize: strResult = "GuestAutoresize"; break;571 570 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_MinimizeWindow: strResult = "MinimizeWindow"; break; 572 571 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow: strResult = "AdjustWindow"; break; 572 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize: strResult = "GuestAutoresize"; break; 573 573 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_TakeScreenshot: strResult = "TakeScreenshot"; break; 574 574 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_VideoCapture: strResult = "VideoCapture"; break; … … 606 606 keys << "Seamless"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_Seamless; 607 607 keys << "Scale"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_Scale; 608 keys << "GuestAutoresize"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize;609 608 keys << "MinimizeWindow"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_MinimizeWindow; 610 609 keys << "AdjustWindow"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow; 610 keys << "GuestAutoresize"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize; 611 611 keys << "TakeScreenshot"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_TakeScreenshot; 612 612 keys << "VideoCapture"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_VideoCapture; -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r56059 r56060 377 377 RuntimeMenuViewActionType_Seamless = RT_BIT(1), 378 378 RuntimeMenuViewActionType_Scale = RT_BIT(2), 379 RuntimeMenuViewActionType_ GuestAutoresize= RT_BIT(3),380 RuntimeMenuViewActionType_ MinimizeWindow= RT_BIT(4),381 RuntimeMenuViewActionType_ AdjustWindow= RT_BIT(5),379 RuntimeMenuViewActionType_MinimizeWindow = RT_BIT(3), 380 RuntimeMenuViewActionType_AdjustWindow = RT_BIT(4), 381 RuntimeMenuViewActionType_GuestAutoresize = RT_BIT(5), 382 382 RuntimeMenuViewActionType_TakeScreenshot = RT_BIT(6), 383 383 RuntimeMenuViewActionType_VideoCapture = RT_BIT(7), -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r56059 r56060 1538 1538 } 1539 1539 1540 void UIMachineLogic::sltMinimizeWindow() 1541 { 1542 /* Do not process if window(s) missed! */ 1543 if (!isMachineWindowsCreated()) 1544 return; 1545 1546 /* Minimize currently active machine-window: */ 1547 activeMachineWindow()->showMinimized(); 1548 } 1549 1550 void UIMachineLogic::sltAdjustWindow() 1551 { 1552 /* Do not process if window(s) missed! */ 1553 if (!isMachineWindowsCreated()) 1554 return; 1555 1556 /* Adjust all window(s)! */ 1557 foreach(UIMachineWindow *pMachineWindow, machineWindows()) 1558 { 1559 /* Exit maximized window state if actual: */ 1560 if (pMachineWindow->isMaximized()) 1561 pMachineWindow->showNormal(); 1562 1563 /* Normalize window geometry: */ 1564 pMachineWindow->normalizeGeometry(true /* adjust position */); 1565 } 1566 } 1567 1540 1568 void UIMachineLogic::sltToggleGuestAutoresize(bool fEnabled) 1541 1569 { … … 1547 1575 foreach(UIMachineWindow *pMachineWindow, machineWindows()) 1548 1576 pMachineWindow->machineView()->setGuestAutoresizeEnabled(fEnabled); 1549 }1550 1551 void UIMachineLogic::sltMinimizeWindow()1552 {1553 /* Do not process if window(s) missed! */1554 if (!isMachineWindowsCreated())1555 return;1556 1557 /* Minimize currently active machine-window: */1558 activeMachineWindow()->showMinimized();1559 }1560 1561 void UIMachineLogic::sltAdjustWindow()1562 {1563 /* Do not process if window(s) missed! */1564 if (!isMachineWindowsCreated())1565 return;1566 1567 /* Adjust all window(s)! */1568 foreach(UIMachineWindow *pMachineWindow, machineWindows())1569 {1570 /* Exit maximized window state if actual: */1571 if (pMachineWindow->isMaximized())1572 pMachineWindow->showNormal();1573 1574 /* Normalize window geometry: */1575 pMachineWindow->normalizeGeometry(true /* adjust position */);1576 }1577 1577 } 1578 1578 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r56059 r56060 266 266 267 267 /* "View" menu functionality: */ 268 void sltToggleGuestAutoresize(bool fEnabled);269 268 void sltMinimizeWindow(); 270 269 void sltAdjustWindow(); 270 void sltToggleGuestAutoresize(bool fEnabled); 271 271 void sltTakeScreenshot(); 272 272 void sltOpenVideoCaptureOptions();
Note:
See TracChangeset
for help on using the changeset viewer.