VirtualBox

Changeset 750 in vbox


Ignore:
Timestamp:
Feb 7, 2007 2:50:42 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18405
Message:

FE/Qt: Improved remindAboutCapture/Integration message boxes.

File:
1 edited

Legend:

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

    r712 r750  
    11301130bool VBoxProblemReporter::remindAboutInputCapture()
    11311131{
    1132     int rc = message (
    1133         &vboxGlobal().consoleWnd(),
    1134         Info,
    1135         tr (
    1136             "<p>You have <b>clicked the mouse</b> inside the Virtual Machine display "
     1132    int rc = message (&vboxGlobal().consoleWnd(), Info,
     1133        tr ("<p>You have <b>clicked the mouse</b> inside the Virtual Machine display "
    11371134            "or pressed the <b>host key</b>. This will cause the Virtual Machine to "
    11381135            "<b>capture</b> the host mouse pointer (only if the mouse pointer "
    11391136            "integration is not currently supported by the guest OS) and the "
    11401137            "keyboard, which will make them unavailable to other applications "
    1141             "running on your host machine.</p>"
    1142             "<p>You can press the host key at any time to <b>uncapture</b> the "
     1138            "running on your host machine."
     1139            "</p>"
     1140            "<p>You can press the <b>host key</b> at any time to <b>uncapture</b> the "
    11431141            "keyboard and mouse (if it is captured) and return them to normal "
    11441142            "operation. The currently assigned host key is shown on the status bar "
    1145             "at the bottom of the Virtual Machine window. "
    1146             "There are also a keyboard icon and a mouse icon indicating the "
    1147             "current keyboard and mouse capture state.</p>"
    1148         ),
    1149         "remindAboutInputCapture"
    1150     );
     1143            "at the bottom of the Virtual Machine window, next to the&nbsp;"
     1144            "<img src=hostkey_16px.png/>&nbsp;icon. This icon, together "
     1145            "with the mouse icon placed nearby, indicate the current keyboard "
     1146            "and mouse capture state."
     1147            "</p>"),
     1148        "remindAboutInputCapture");
     1149
    11511150    return !(rc & AutoConfirmed);
    11521151}
     
    11551154bool VBoxProblemReporter::remindAboutAutoCapture()
    11561155{
    1157     int rc = message (
    1158         &vboxGlobal().consoleWnd(),
    1159         Info,
    1160         tr (
    1161             "<p>You have the <b>Auto capture keyboard</b> option turned on. "
     1156    int rc = message ( &vboxGlobal().consoleWnd(), Info,
     1157        tr ("<p>You have the <b>Auto capture keyboard</b> option turned on. "
    11621158            "This will cause the Virtual Machine to automatically <b>capture</b> "
    11631159            "the keyboard every time the VM window is activated and make it "
    11641160            "unavailable to other applications running on your host machine: "
    11651161            "when the keyboard is captured, all keystrokes (including system ones "
    1166             "like Alt-Tab) will be directed to the VM.</p>"
     1162            "like Alt-Tab) will be directed to the VM."
     1163            "</p>"
    11671164            "<p>You can press the <b>host key</b> at any time to <b>uncapture</b> the "
    11681165            "keyboard and mouse (if it is captured) and return them to normal "
    11691166            "operation. The currently assigned host key is shown on the status bar "
    1170             "at the bottom of the Virtual Machine window. "
    1171             "There are also a keyboard icon and a mouse icon indicating the "
    1172             "current keyboard and mouse capture state.</p>"
    1173         ),
    1174         "remindAboutAutoCapture"
    1175     );
     1167            "at the bottom of the Virtual Machine window, next to the&nbsp;"
     1168            "<img src=hostkey_16px.png/>&nbsp;icon. This icon, together "
     1169            "with the mouse icon placed nearby, indicate the current keyboard "
     1170            "and mouse capture state."
     1171            "</p>"),
     1172        "remindAboutAutoCapture");
     1173
    11761174    return !(rc & AutoConfirmed);
    11771175}
     
    11861184    };
    11871185
    1188     // close the previous reminder if it is still active -- already outdated
    1189     // (the name of the modal window will correspond to autoConfirmId if
    1190     // it is our reminder)
     1186    /* close the previous reminder if it is still active -- already outdated
     1187     * (the name of the modal window will correspond to autoConfirmId if
     1188     * it is our reminder) */
    11911189    QWidget *modal = QApplication::activeModalWidget();
    11921190    if (modal && !strcmp (modal->name(), names [int (!supportsAbsolute)]))
     
    11951193    if (supportsAbsolute)
    11961194    {
    1197         int rc = message (
    1198             &vboxGlobal().consoleWnd(),
    1199             Info,
    1200             tr (
    1201                 "<p>The Virtual Machine reports that the guest OS supports the "
    1202                 "<b>mouse pointer integration</b>. This means that you do not need "
    1203                 "to capture the host mouse pointer to be able to use it in "
    1204                 "your guest OS -- all "
     1195        int rc = message (&vboxGlobal().consoleWnd(), Info,
     1196            tr ("<p>The Virtual Machine reports that the guest OS supports "
     1197                "<b>mouse pointer integration</b>. This means that you do not "
     1198                "need to <i>capture</i> the mouse pointer to be able to use it "
     1199                "in your guest OS -- all "
    12051200                "mouse actions you perform when the mouse pointer is over the "
    1206                 "Virtual Machine's display are directly sent to the guest OS."
     1201                "Virtual Machine's display are directly sent to the guest OS. "
    12071202                "If the mouse is currently captured, it will be automatically "
    1208                 "uncaptured.</p>"
    1209                 "<p>The mouse icon on the status bar displays arrows around "
    1210                 "the mouse when the guest OS supports the pointer integration.</p>"
    1211                 "<p><b>Note</b>: some applications may behave incorrectly in "
     1203                "uncaptured."
     1204                "</p>"
     1205                "<p>The mouse icon on the status bar will look like&nbsp;"
     1206                "<img src=mouse_seamless_16px.png/>&nbsp;to inform you that mouse "
     1207                "pointer integration is supported by the guest OS and is "
     1208                "currently turned on."
     1209                "</p>"
     1210                "<p><b>Note</b>: Some applications may behave incorrectly in "
    12121211                "mouse pointer integration mode. You can always disable it for "
    1213                 "the current session (and enable again) by selecting the "
    1214                 "corresponding action from the menu bar.</p>"
    1215             ),
    1216             names [1] // autoConfirmId
    1217         );
     1212                "the current session (and enable it again) by selecting the "
     1213                "corresponding action from the menu bar."
     1214                "</p>"),
     1215            names [1] /* autoConfirmId */);
     1216
    12181217        return !(rc & AutoConfirmed);
    12191218    }
    12201219    else
    12211220    {
    1222         int rc = message (
    1223             &vboxGlobal().consoleWnd(),
    1224             Info,
    1225             tr (
    1226                 "<p>The Virtual Machine reports that the guest OS does not "
     1221        int rc = message (&vboxGlobal().consoleWnd(), Info,
     1222            tr ("<p>The Virtual Machine reports that the guest OS does not "
    12271223                "support <b>mouse pointer integration</b> in the current video "
    12281224                "mode. You need to capture the mouse (by clicking over the VM "
    12291225                "display or pressing the host key) in order to use the "
    1230                 "mouse inside the guest OS.</p>"
    1231             ),
    1232             names [0] // autoConfirmId
    1233         );
     1226                "mouse inside the guest OS.</p>"),
     1227            names [0] /* autoConfirmId */);
     1228
    12341229        return !(rc & AutoConfirmed);
    12351230    }
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