VirtualBox

儲存庫 vbox 的更動 86


忽略:
時間撮記:
2007-1-17 上午10:58:51 (18 年 以前)
作者:
vboxsync
訊息:

FE/Qt: Added the "going to fullscreen" reminder.

位置:
trunk/src/VBox/Frontends/VirtualBox
檔案:
修改 3 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h

    r70 r86  
    189189    bool remindAboutInaccessibleMedia();
    190190
     191    void remindAboutGoingFullscreen (const QString &hotKey,
     192                                     const QString &hostKey);
     193
    191194    static QString highlight (const QString &str);
    192195    static QString formatErrorInfo (const COMErrorInfo &info,
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r1 r86  
    12571257    AssertReturnVoid ((hidden_children.isEmpty() == on));
    12581258
     1259    if (on)
     1260    {
     1261        /* take the Fullscreen hot key from the menu item */
     1262        QString hotKey = vmFullscreenAction->menuText();
     1263        hotKey = QStringList::split ('\t', hotKey) [1];
     1264        Assert (!hotKey.isEmpty());
     1265        /* get the host key name */
     1266        QString hostKey = QIHotKeyEdit::keyName (vboxGlobal().settings().hostKey());
     1267        /* show the info message */
     1268        vboxProblem().remindAboutGoingFullscreen (hotKey, hostKey);
     1269    }
     1270
    12591271    full_screen = on;
    12601272
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r70 r86  
    12461246}
    12471247
     1248/**
     1249 *  @param  fullscreen hot key as defined in the menu
     1250 *  @param  current host key as in the global settings
     1251 *  @return true if the user has chosen to go fullscreen.
     1252 */
     1253void VBoxProblemReporter::remindAboutGoingFullscreen (const QString &hotKey,
     1254                                                      const QString &hostKey)
     1255{
     1256    int rc = message (&vboxGlobal().consoleWnd(), Info,
     1257        tr ("<p>The Virtual Machine window will be now switched to the "
     1258            "<b>fullscreen</b> mode. "
     1259            "You can go back to the windowed mode at any time by pressing "
     1260            "the <b>%1</b> key combination. Note that the current "
     1261            "Host key is defined as <b>%1</b>.</p>")
     1262            .arg (hotKey).arg (hostKey),
     1263        "remindAboutGoingFullscreen");
     1264}
     1265
    12481266// static
    12491267QString VBoxProblemReporter::highlight (const QString &str)
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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