VirtualBox

Changeset 56060 in vbox


Ignore:
Timestamp:
May 25, 2015 2:21:49 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Action-pool: Yet another small code reordering to sync with actual action positions (s.a. r100579).

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  
    568568        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_Seamless:             strResult = "Seamless"; break;
    569569        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_Scale:                strResult = "Scale"; break;
    570         case UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize:      strResult = "GuestAutoresize"; break;
    571570        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_MinimizeWindow:       strResult = "MinimizeWindow"; break;
    572571        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow:         strResult = "AdjustWindow"; break;
     572        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize:      strResult = "GuestAutoresize"; break;
    573573        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_TakeScreenshot:       strResult = "TakeScreenshot"; break;
    574574        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_VideoCapture:         strResult = "VideoCapture"; break;
     
    606606    keys << "Seamless";             values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_Seamless;
    607607    keys << "Scale";                values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_Scale;
    608     keys << "GuestAutoresize";      values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize;
    609608    keys << "MinimizeWindow";       values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_MinimizeWindow;
    610609    keys << "AdjustWindow";         values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow;
     610    keys << "GuestAutoresize";      values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize;
    611611    keys << "TakeScreenshot";       values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_TakeScreenshot;
    612612    keys << "VideoCapture";         values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_VideoCapture;
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h

    r56059 r56060  
    377377        RuntimeMenuViewActionType_Seamless             = RT_BIT(1),
    378378        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),
    382382        RuntimeMenuViewActionType_TakeScreenshot       = RT_BIT(6),
    383383        RuntimeMenuViewActionType_VideoCapture         = RT_BIT(7),
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r56059 r56060  
    15381538}
    15391539
     1540void 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
     1550void 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
    15401568void UIMachineLogic::sltToggleGuestAutoresize(bool fEnabled)
    15411569{
     
    15471575    foreach(UIMachineWindow *pMachineWindow, machineWindows())
    15481576        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     }
    15771577}
    15781578
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r56059 r56060  
    266266
    267267    /* "View" menu functionality: */
    268     void sltToggleGuestAutoresize(bool fEnabled);
    269268    void sltMinimizeWindow();
    270269    void sltAdjustWindow();
     270    void sltToggleGuestAutoresize(bool fEnabled);
    271271    void sltTakeScreenshot();
    272272    void sltOpenVideoCaptureOptions();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette