VirtualBox

Changeset 46984 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 4, 2013 4:16:52 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Popup-center: Few more messages for popup-center.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/globals
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp

    r46976 r46984  
    2424#include "QIMessageBox.h"
    2525#include "VBoxGlobal.h"
     26#include "UIHostComboEditor.h"
    2627
    2728/* Other VBox includes: */
     
    376377}
    377378
     379void UIPopupCenter::cannotSendACPIToMachine(QWidget *pParent)
     380{
     381    alert(pParent,  "cannotSendACPIToMachine",
     382          QApplication::translate("UIMessageCenter", "You are trying to shut down the guest with the ACPI power button. "
     383                                                     "This is currently not possible because the guest does not support software shutdown."));
     384}
     385
     386void UIPopupCenter::remindAboutAutoCapture(QWidget *pParent)
     387{
     388    alert(pParent, "remindAboutAutoCapture",
     389          QApplication::translate("UIMessageCenter", "<p>You have the <b>Auto capture keyboard</b> option turned on. "
     390                                                     "This will cause the Virtual Machine to automatically <b>capture</b> "
     391                                                     "the keyboard every time the VM window is activated and make it "
     392                                                     "unavailable to other applications running on your host machine: "
     393                                                     "when the keyboard is captured, all keystrokes (including system ones "
     394                                                     "like Alt-Tab) will be directed to the VM.</p>"
     395                                                     "<p>You can press the <b>host key</b> at any time to <b>uncapture</b> the "
     396                                                     "keyboard and mouse (if it is captured) and return them to normal "
     397                                                     "operation. The currently assigned host key is shown on the status bar "
     398                                                     "at the bottom of the Virtual Machine window, next to the&nbsp;"
     399                                                     "<img src=:/hostkey_16px.png/>&nbsp;icon. This icon, together "
     400                                                     "with the mouse icon placed nearby, indicate the current keyboard "
     401                                                     "and mouse capture state.</p>") +
     402          QApplication::translate("UIMessageCenter", "<p>The host key is currently defined as <b>%1</b>.</p>",
     403                                                     "additional message box paragraph")
     404                                                     .arg(UIHostCombo::toReadableString(vboxGlobal().settings().hostCombo())),
     405          true);
     406}
     407
    378408void UIPopupCenter::remindAboutMouseIntegration(QWidget *pParent, bool fSupportsAbsolute)
    379409{
    380410    if (fSupportsAbsolute)
    381411    {
    382         alert(pParent, QString("remindAboutMouseIntegration"),
    383               tr("<p>The Virtual Machine reports that the guest OS supports <b>mouse pointer integration</b>. "
    384                  "This means that you do not need to <i>capture</i> the mouse pointer to be able to use it in your guest OS -- "
    385                  "all mouse actions you perform when the mouse pointer is over the Virtual Machine's display "
    386                  "are directly sent to the guest OS. If the mouse is currently captured, it will be automatically uncaptured.</p>"
    387                  "<p>The mouse icon on the status bar will look like&nbsp;<img src=:/mouse_seamless_16px.png/>&nbsp;to inform you "
    388                  "that mouse pointer integration is supported by the guest OS and is currently turned on.</p>"
    389                  "<p><b>Note</b>: Some applications may behave incorrectly in mouse pointer integration mode. "
    390                  "You can always disable it for the current session (and enable it again) "
    391                  "by selecting the corresponding action from the menu bar.</p>"),
     412        alert(pParent, "remindAboutMouseIntegration",
     413              QApplication::translate("UIMessageCenter", "<p>The Virtual Machine reports that the guest OS supports <b>mouse pointer integration</b>. "
     414                                                         "This means that you do not need to <i>capture</i> the mouse pointer to be able to use it in your guest OS -- "
     415                                                         "all mouse actions you perform when the mouse pointer is over the Virtual Machine's display "
     416                                                         "are directly sent to the guest OS. If the mouse is currently captured, it will be automatically uncaptured.</p>"
     417                                                         "<p>The mouse icon on the status bar will look like&nbsp;<img src=:/mouse_seamless_16px.png/>&nbsp;to inform you "
     418                                                         "that mouse pointer integration is supported by the guest OS and is currently turned on.</p>"
     419                                                         "<p><b>Note</b>: Some applications may behave incorrectly in mouse pointer integration mode. "
     420                                                         "You can always disable it for the current session (and enable it again) "
     421                                                         "by selecting the corresponding action from the menu bar.</p>"),
    392422              true);
    393423    }
    394424    else
    395425    {
    396         alert(pParent, QString("remindAboutMouseIntegration"),
    397               tr("<p>The Virtual Machine reports that the guest OS does not support <b>mouse pointer integration</b> "
    398                  "in the current video mode. You need to capture the mouse (by clicking over the VM display "
    399                  "or pressing the host key) in order to use the mouse inside the guest OS.</p>"),
     426        alert(pParent, "remindAboutMouseIntegration",
     427              QApplication::translate("UIMessageCenter", "<p>The Virtual Machine reports that the guest OS does not support <b>mouse pointer integration</b> "
     428                                                         "in the current video mode. You need to capture the mouse (by clicking over the VM display "
     429                                                         "or pressing the host key) in order to use the mouse inside the guest OS.</p>"),
    400430              true);
    401431    }
    402432}
    403433
     434void UIPopupCenter::remindAboutPausedVMInput(QWidget *pParent)
     435{
     436    alert(pParent, "remindAboutPausedVMInput",
     437          QApplication::translate("UIMessageCenter", "<p>The Virtual Machine is currently in the <b>Paused</b> state and not able to see any keyboard or mouse input. "
     438                                                     "If you want to continue to work inside the VM, you need to resume it by selecting the corresponding action "
     439                                                     "from the menu bar.</p>"),
     440          true);
     441}
     442
     443void UIPopupCenter::remindAboutGuestAdditionsAreNotActive(QWidget *pParent)
     444{
     445    alert(pParent, "remindAboutGuestAdditionsAreNotActive",
     446          QApplication::translate("UIMessageCenter", "<p>The VirtualBox Guest Additions do not appear to be available on this virtual machine, "
     447                                                     "and shared folders cannot be used without them. To use shared folders inside the virtual machine, "
     448                                                     "please install the Guest Additions if they are not installed, or re-install them if they are "
     449                                                     "not working correctly, by selecting <b>Install Guest Additions</b> from the <b>Devices</b> menu. "
     450                                                     "If they are installed but the machine is not yet fully started then shared folders will be available once it is.</p>"),
     451          true);
     452}
     453
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.h

    r46976 r46984  
    9696
    9797    /* API: Runtime UI stuff: */
     98    void cannotSendACPIToMachine(QWidget *pParent);
     99    void remindAboutAutoCapture(QWidget *pParent);
    98100    void remindAboutMouseIntegration(QWidget *pParent, bool fSupportsAbsolute);
     101    void remindAboutPausedVMInput(QWidget *pParent);
     102    void remindAboutGuestAdditionsAreNotActive(QWidget *pParent);
    99103
    100104private slots:
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