VirtualBox

Changeset 3718 in vbox for trunk


Ignore:
Timestamp:
Jul 19, 2007 11:48:44 AM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Added VBoxProblemReporter::remindAboutGoingSeamless().

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h

    r3448 r3718  
    216216    void remindAboutGoingFullscreen (const QString &hotKey,
    217217                                     const QString &hostKey);
     218    void remindAboutGoingSeamless (const QString &hotKey,
     219                                   const QString &hostKey);
    218220
    219221    void cannotRunInSelectorMode();
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r3704 r3718  
    13731373
    13741374    vmSeamlessAction->setMenuText (tr ("Seam&less Mode") + "\tHost+L");
    1375     vmSeamlessAction->setStatusTip (tr ("Switch to seamless mode"));
     1375    vmSeamlessAction->setStatusTip (tr ("Switch to desktop integration mode"));
    13761376
    13771377    vmDisMouseIntegrMenu->setToolTip (tr ("Mouse Integration",
     
    19051905    AssertReturnVoid ((hidden_children.isEmpty() == on));
    19061906
     1907    if (on)
     1908    {
     1909        /* take the Seamless hot key from the menu item */
     1910        QString hotKey = vmSeamlessAction->menuText();
     1911        hotKey = QStringList::split ('\t', hotKey) [1];
     1912        Assert (!hotKey.isEmpty());
     1913        /* get the host key name */
     1914        QString hostKey = QIHotKeyEdit::keyName (vboxGlobal().settings().hostKey());
     1915        /* show the info message */
     1916        vboxProblem().remindAboutGoingSeamless (hotKey, hostKey);
     1917    }
     1918
    19071919    /* activate the auto-resize feature required for the seamless mode */
    19081920    if (!vmAutoresizeGuestAction->isOn())
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r3450 r3718  
    14591459            "You can go back to windowed mode at any time by pressing "
    14601460            "<b>%1</b>. Note that the <i>Host</i> key is currently "
    1461             "defined as <b>%1</b>.</p>")
     1461            "defined as <b>%1</b>.</p>"
     1462            "<p>Note that the main menu bar is hidden fullscreen mode. You "
     1463            "can access it by pressing <b>Host+Home</b>.</p>")
    14621464            .arg (hotKey).arg (hostKey),
    14631465        "remindAboutGoingFullscreen");
     1466    NOREF(rc);
     1467}
     1468
     1469/**
     1470 *  @param  fullscreen hot key as defined in the menu
     1471 *  @param  current host key as in the global settings
     1472 *  @return true if the user has chosen to go fullscreen.
     1473 */
     1474void VBoxProblemReporter::remindAboutGoingSeamless (const QString &hotKey,
     1475                                                    const QString &hostKey)
     1476{
     1477    int rc = message (&vboxGlobal().consoleWnd(), Info,
     1478        tr ("<p>The virtual machine window will be now switched to "
     1479            "<b>Seamless</b> mode. "
     1480            "You can go back to windowed mode at any time by pressing "
     1481            "<b>%1</b>. Note that the <i>Host</i> key is currently "
     1482            "defined as <b>%1</b>.</p>"
     1483            "<p>Note that the main menu bar is hidden seamless mode. You "
     1484            "can access it by pressing <b>Host+Home</b>.</p>")
     1485            .arg (hotKey).arg (hostKey),
     1486        "remindAboutGoingSeamless");
    14641487    NOREF(rc);
    14651488}
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