VirtualBox

Ignore:
Timestamp:
Jun 29, 2021 12:53:54 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145408
Message:

FE/Qt: bugref:10049. Reverting UIMessageCenter changes.

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

Legend:

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

    r89946 r89950  
    3939
    4040
    41 QIMessageBox::QIMessageBox(const QString &strTitle, const QString &strMessage, const QString &strHelpKeyword, AlertIconType iconType,
    42                            int iButton1 /* = 0*/, int iButton2 /* = 0*/, int iButton3 /* = 0*/, QWidget *pParent /* = 0*/)
     41QIMessageBox::QIMessageBox(const QString &strTitle, const QString &strMessage, AlertIconType iconType,
     42                           int iButton1 /* = 0*/, int iButton2 /* = 0*/, int iButton3 /* = 0*/, QWidget *pParent /* = 0*/,
     43                           const QString &strHelpKeyword /* = QString() */)
    4344    : QIDialog(pParent)
    4445    , m_strTitle(strTitle)
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.h

    r89946 r89950  
    9797      * @param  iButton2    Brings the integer-code for the 2nd button.
    9898      * @param  iButton3    Brings the integer-code for the 3rd button. */
    99     QIMessageBox(const QString &strTitle, const QString &strMessage, const QString &strHelpKeyword, AlertIconType iconType,
    100                  int iButton1 = 0, int iButton2 = 0, int iButton3 = 0, QWidget *pParent = 0);
     99    QIMessageBox(const QString &strTitle, const QString &strMessage, AlertIconType iconType,
     100                 int iButton1 = 0, int iButton2 = 0, int iButton3 = 0, QWidget *pParent = 0,
     101                 const QString &strHelpKeyword = QString());
    101102
    102103    /** Defines details-text. */
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r89933 r89950  
    916916            if (!msgCenter().questionBinary(this, MessageType_Question,
    917917                                            QString("Overwriting already existing key, Continue?"),
    918                                             QString() /* help keyword */,
    919918                                            0 /* auto-confirm id */,
    920919                                            QString("Overwrite") /* ok button text */,
     
    11071106            if (!msgCenter().questionBinary(this, MessageType_Question,
    11081107                                            QString("Overwriting already existing key, Continue?"),
    1109                                             QString() /* help keyword */,
    11101108                                            0 /* auto-confirm id */,
    11111109                                            QString("Overwrite") /* ok button text */,
     
    11531151                                       QString("<p>Do you really wish to "
    11541152                                               "remove chosen records?</p>"),
    1155                                        strDetails,
    1156                                        QString() /* help keyword */))
     1153                                       strDetails))
    11571154        return;
    11581155
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r89944 r89950  
    156156                             const QString &strMessage,
    157157                             const QString &strDetails,
    158                              const QString &strHelpKeyword,
    159158                             const char *pcszAutoConfirmId /* = 0*/,
    160159                             int iButton1 /* = 0*/,
     
    171170         * to show a message-box in the GUI thread: */
    172171        emit sigToShowMessageBox(pParent, enmType,
    173                                  strMessage, strDetails, strHelpKeyword,
     172                                 strMessage, strDetails,
    174173                                 iButton1, iButton2, iButton3,
    175174                                 strButtonText1, strButtonText2, strButtonText3,
     
    180179    /* In usual case we can chow a message-box directly: */
    181180    return showMessageBox(pParent, enmType,
    182                           strMessage, strDetails, strHelpKeyword,
     181                          strMessage, strDetails,
    183182                          iButton1, iButton2, iButton3,
    184183                          strButtonText1, strButtonText2, strButtonText3,
     
    189188                           const QString &strMessage,
    190189                           const QString &strDetails,
    191                            const QString &strHelpKeyword  /* = QString() */,
    192190                           const char *pcszAutoConfirmId /* = 0*/) const
    193191{
    194     message(pParent, enmType, strMessage, strDetails, strHelpKeyword, pcszAutoConfirmId,
     192    message(pParent, enmType, strMessage, strDetails, pcszAutoConfirmId,
    195193            AlertButton_Ok | AlertButtonOption_Default | AlertButtonOption_Escape);
    196194}
     
    199197                                        const QString &strMessage,
    200198                                        const QString &strDetails,
    201                                         const QString &strHelpKeyword,
    202199                                        const char *pcszAutoConfirmId /* = 0*/,
    203200                                        const QString &strOkButtonText /* = QString()*/,
    204201                                        const QString &strCancelButtonText /* = QString()*/) const
    205202{
    206     return (message(pParent, enmType, strMessage, strDetails, strHelpKeyword, pcszAutoConfirmId,
     203    return (message(pParent, enmType, strMessage, strDetails, pcszAutoConfirmId,
    207204                    AlertButton_Ok | AlertButtonOption_Default,
    208205                    AlertButton_Cancel | AlertButtonOption_Escape,
     
    223220int UIMessageCenter::question(QWidget *pParent, MessageType enmType,
    224221                              const QString &strMessage,
    225                               const QString &strHelpKeyword,
    226222                              const char *pcszAutoConfirmId/* = 0*/,
    227223                              int iButton1 /* = 0*/,
     
    232228                              const QString &strButtonText3 /* = QString()*/) const
    233229{
    234     return message(pParent, enmType, strMessage, QString()  /* details */, strHelpKeyword, pcszAutoConfirmId,
     230    return message(pParent, enmType, strMessage, QString(), pcszAutoConfirmId,
    235231                   iButton1, iButton2, iButton3, strButtonText1, strButtonText2, strButtonText3);
    236232}
     
    238234bool UIMessageCenter::questionBinary(QWidget *pParent, MessageType enmType,
    239235                                     const QString &strMessage,
    240                                      const QString &strHelpKeyword /* = QString() */,
    241236                                     const char *pcszAutoConfirmId /* = 0*/,
    242237                                     const QString &strOkButtonText /* = QString()*/,
     
    245240{
    246241    return fDefaultFocusForOk ?
    247            ((question(pParent, enmType, strMessage, strHelpKeyword, pcszAutoConfirmId,
     242           ((question(pParent, enmType, strMessage, pcszAutoConfirmId,
    248243                      AlertButton_Ok | AlertButtonOption_Default,
    249244                      AlertButton_Cancel | AlertButtonOption_Escape,
     
    253248                      QString() /* third button */) &
    254249             AlertButtonMask) == AlertButton_Ok) :
    255            ((question(pParent, enmType, strMessage, strHelpKeyword, pcszAutoConfirmId,
     250           ((question(pParent, enmType, strMessage, pcszAutoConfirmId,
    256251                      AlertButton_Ok,
    257252                      AlertButton_Cancel | AlertButtonOption_Default | AlertButtonOption_Escape,
     
    265260int UIMessageCenter::questionTrinary(QWidget *pParent, MessageType enmType,
    266261                                     const QString &strMessage,
    267                                      const QString &strHelpKeyword /* = QString() */,
    268262                                     const char *pcszAutoConfirmId /* = 0*/,
    269263                                     const QString &strChoice1ButtonText /* = QString()*/,
     
    271265                                     const QString &strCancelButtonText /* = QString()*/) const
    272266{
    273     return question(pParent, enmType, strMessage, strHelpKeyword, pcszAutoConfirmId,
     267    return question(pParent, enmType, strMessage, pcszAutoConfirmId,
    274268                    AlertButton_Choice1,
    275269                    AlertButton_Choice2 | AlertButtonOption_Default,
     
    283277                                       const QString &strMessage,
    284278                                       const QString &strOptionText,
    285                                        const QString &strHelpKeyword,
    286279                                       bool fDefaultOptionValue /* = true */,
    287280                                       int iButton1 /* = 0*/,
     
    330323    /* Create message-box: */
    331324    QWidget *pBoxParent = windowManager().realParentWindow(pParent ? pParent : windowManager().mainWindowShown());
    332     QPointer<QIMessageBox> pBox = new QIMessageBox(strTitle, strMessage, strHelpKeyword, icon,
     325    QPointer<QIMessageBox> pBox = new QIMessageBox(strTitle, strMessage, icon,
    333326                                                   iButton1, iButton2, iButton3, pBoxParent);
    334327    windowManager().registerNewParent(pBox, pBoxParent);
     
    671664                             "<p>Would you like to automatically rename it?</p>")
    672665                             .arg(strName, strGroupName),
    673                           QString() /* = QString() */,
    674666                          0 /* auto-confirm id */,
    675667                          tr("Rename"));
     
    695687                             "<p><b>%1</b></p><p>Do you wish to proceed?</p>")
    696688                             .arg(names.join(", ")),
    697                           QString() /* help keyword */,
    698689                          0 /* auto-confirm id */,
    699690                          tr("Remove") /* ok button text */,
     
    767758    return cInacessibleMachineCount == machines.size() ?
    768759           message(0, MessageType_Question,
    769                    strText, QString(), QString() /* help keyword */,
     760                   strText, QString(),
    770761                   0 /* auto-confirm id */,
    771762                   AlertButton_Ok,
     
    774765                   tr("Remove")) :
    775766           message(0, MessageType_Question,
    776                    strText, QString(), QString() /* help keyword */,
     767                   strText, QString(),
    777768                   0 /* auto-confirm id */,
    778769                   AlertButton_Choice1,
     
    802793    /* Prepare message itself: */
    803794    return message(0, MessageType_Question,
    804                    strText, QString(), QString() /* help keyword */,
     795                   strText, QString(),
    805796                   0 /* auto-confirm id */,
    806797                   AlertButton_Choice1,
     
    852843                             "see which files are inaccessible, or press <b>Ignore</b> to "
    853844                             "ignore this message.</p>"),
    854                           QString() /* help keyword */,
    855845                          "warnAboutInaccessibleMedia",
    856846                          tr("Check", "inaccessible media message box"), tr("Ignore"));
     
    865855                             "the machine without doing a proper shutdown of the guest OS.</p>")
    866856                             .arg(strNames),
    867                           QString() /* help keyword */,
    868857                          0 /* auto-confirm id */,
    869858                          tr("Discard", "saved state"));
     
    876865                             "of the following virtual machines?</p><p><b>%1</b></p>")
    877866                             .arg(strNames),
    878                           QString() /* help keyword */,
    879867                          0 /* auto-confirm id */,
    880868                          tr("Terminate", "cloud instance"));
     
    888876                             "in applications running inside it to be lost.</p>")
    889877                             .arg(strNames),
    890                           QString() /* help keyword */,
    891878                          "confirmResetMachine" /* auto-confirm id */,
    892879                          tr("Reset", "machine"));
     
    899886                             "to the following virtual machines?</p><p><b>%1</b></p>")
    900887                             .arg(strNames),
    901                           QString() /* help keyword */,
    902888                          "confirmACPIShutdownMachine" /* auto-confirm id */,
    903889                          tr("ACPI Shutdown", "machine"));
     
    911897                             "running inside it to be lost.</p>")
    912898                             .arg(strNames),
    913                           QString() /* help keyword */,
    914899                          "confirmPowerOffMachine" /* auto-confirm id */,
    915900                          tr("Power Off", "machine"));
     
    11381123                                .arg(strSnapshotName),
    11391124                             tr("Create a snapshot of the current machine state"),
    1140                              QString() /* Help keyword */,
    11411125                             !gEDataManager->messagesWithInvertedOption().contains("confirmSnapshotRestoring"),
    11421126                             AlertButton_Ok,
     
    11481132                      .arg(strSnapshotName),
    11491133                   QString() /* details */,
    1150                    QString() /* help keyword */,
    11511134                   0 /* auto-confirm id */,
    11521135                   AlertButton_Ok,
     
    11641147                             "</p>Are you sure you want to delete the selected snapshot <b>%1</b>?</p>")
    11651148                             .arg(strSnapshotName),
    1166                           QString() /* help keyword */,
    11671149                          0 /* auto-confirm id */,
    11681150                          tr("Delete") /* ok button text */,
     
    11821164                              "the snapshot at your own risk.</p>")
    11831165                              .arg(strSnapshotName, strTargetImageName, strTargetImageMaxSize, strTargetFileSystemFree),
    1184                           QString() /* help keyword */,
    11851166                          0 /* auto-confirm id */,
    11861167                          tr("Delete") /* ok button text */,
     
    12921273                             "type.</p>")
    12931274                             .arg(strName),
    1294                           QString() /* help keyword */,
    12951275                          0 /* auto-confirm id */,
    12961276                          tr("Remove") /* ok button text */,
     
    13411321                             "You currently have unsaved setting changes.</p>"
    13421322                             "<p>Would you like to reload the changed settings or to keep your own changes?</p>"),
    1343                           QString() /* help keyword */,
    13441323                          0 /* auto-confirm id */,
    13451324                          tr("Reload settings"), tr("Keep changes"));
     
    13521331                             "<p>You will not be able to insert any optical disks or ISO images "
    13531332                             "or install the Guest Additions without it!</p>"),
    1354                           QString() /* help keyword */,
    13551333                          0 /* auto-confirm id */,
    13561334                          tr("&Remove", "medium") /* ok button text */,
     
    14521430                          tr("<p>There are unsaved changes in the port forwarding configuration.</p>"
    14531431                             "<p>If you proceed your changes will be discarded.</p>"),
    1454                           QString() /* help keyword */,
    14551432                          0 /* auto-confirm id */,
    14561433                          QString() /* ok button text */,
     
    15601537                               "<p>This will detach it from the following virtual machine(s): <b>%2</b>.</p>")
    15611538                               .arg(medium.location(), usage.join(", ")),
    1562                             QString() /* help keyword */,
    15631539                            0 /* auto-confirm id */,
    15641540                            tr("Release", "detach medium"))
     
    15691545                               "<p>This will detach it from the following virtual machine(s): <b>%2</b>.</p>")
    15701546                               .arg(medium.location(), usage.join(", ")),
    1571                             QString() /* help keyword */,
    15721547                            0 /* auto-confirm id */,
    15731548                            tr("Release", "detach medium"));
     
    16211596    return questionBinary(pParent, MessageType_Question,
    16221597                          strMessage.arg(medium.location()),
    1623                           QString() /* help keyword */,
    16241598                          0 /* auto-confirm id */,
    16251599                          tr("Remove", "medium") /* ok button text */,
     
    16411615                              "disk to the list later again.</p>")
    16421616                              .arg(strLocation),
    1643                            QString() /* help keyword */,
    16441617                           0 /* auto-confirm id */,
    16451618                           tr("Delete", "hard disk storage"),
     
    17561729                                 strMessage.arg(medium.isHostDrive() ? medium.name() : medium.location(), CMachine(machine).GetName()),
    17571730                                 UIErrorString::formatErrorInfo(machine),
    1758                                  QString() /* help keyword */,
    17591731                                 0 /* Auto Confirm ID */,
    17601732                                 tr("Force Unmount"));
     
    18121784                             "name or a different adapter attachment type.</p>")
    18131785                             .arg(strName),
    1814                           QString() /* help keyword */,
    18151786                          0 /* auto-confirm id */,
    18161787                          tr("Remove") /* ok button text */,
     
    21832154                          tr("<p>Do you want to remove the cloud profile <nobr><b>%1</b>?</nobr></p>")
    21842155                             .arg(strName),
    2185                           QString() /* help keyword */,
    21862156                          0 /* auto-confirm id */,
    21872157                          tr("Remove") /* ok button text */,
     
    21952165                          tr("<p>Do you want to import cloud profiles from external files?</p>"
    21962166                             "<p>VirtualBox cloud profiles will be overwritten and their data will be lost.</p>"),
    2197                           QString() /* help keyword */,
    21982167                          0 /* auto-confirm id */,
    21992168                          tr("Import") /* ok button text */,
     
    22442213                       "You can choose to <b>Accept</b> or <b>Reject</b> them automatically "
    22452214                       "or cancel to keep the dialog opened.</p>"),
    2246                     QString() /* help keyword */,
    22472215                    0 /* auto-confirm id */,
    22482216                    AlertButton_Choice1,
     
    22582226                          tr("<p>Do you want to remove the cloud console application <nobr><b>%1</b>?</nobr></p>")
    22592227                             .arg(strName),
    2260                           QString() /* help keyword */,
    22612228                          0 /* auto-confirm id */,
    22622229                          tr("Remove") /* ok button text */,
     
    22702237                          tr("<p>Do you want to remove the cloud console profile <nobr><b>%1</b>?</nobr></p>")
    22712238                             .arg(strName),
    2272                           QString() /* help keyword */,
    22732239                          0 /* auto-confirm id */,
    22742240                          tr("Remove") /* ok button text */,
     
    22842250                             "until you add one. In the mean time you will only be able to start the "
    22852251                             "machine using a virtual optical disk or from the network."),
    2286                           QString() /* help keyword */,
    22872252                          0 /* auto-confirm id */,
    22882253                          tr("Continue", "no hard disk attached"),
     
    25192484                             "how many machines are in the list and doesn't need to be told).", machineNames.size())
    25202485                             .arg(machineNames.join(", ")),
    2521                           QString() /* help keyword */,
    25222486                          0 /* auto-confirm id */,
    25232487                          tr("Continue"));
     
    26862650                             "so it is recommended to press <b>OK</b> now.</p>")
    26872651                             .arg(strLogFolder),
    2688                           QString() /* help keyword */,
    26892652                          0 /* auto-confirm id */,
    26902653                          QIMessageBox::tr("OK"),
     
    27192682                                 "Your 64-bit guest will fail to detect a 64-bit CPU and will not be able to boot.</p>"
    27202683                                 "<p>Please ensure that you have enabled VT-x/AMD-V properly in the BIOS of your host computer.</p>"),
    2721                               QString() /* help keyword */,
    27222684                              0 /* auto-confirm id */,
    27232685                              tr("Close VM"), tr("Continue"));
     
    27262688                              tr("<p>VT-x/AMD-V hardware acceleration is not available on your system. "
    27272689                                 "Your 64-bit guest will fail to detect a 64-bit CPU and will not be able to boot."),
    2728                               QString() /* help keyword */,
    27292690                              0 /* auto-confirm id */,
    27302691                              tr("Close VM"), tr("Continue"));
     
    27382699                                 "Certain guests (e.g. OS/2 and QNX) require this feature.</p>"
    27392700                                 "<p>Please ensure that you have enabled VT-x/AMD-V properly in the BIOS of your host computer.</p>"),
    2740                               QString() /* help keyword */,
    27412701                              0 /* auto-confirm id */,
    27422702                              tr("Close VM"), tr("Continue"));
     
    27452705                              tr("<p>VT-x/AMD-V hardware acceleration is not available on your system. "
    27462706                                 "Certain guests (e.g. OS/2 and QNX) require this feature and will fail to boot without it.</p>"),
    2747                               QString() /* help keyword */,
    27482707                              0 /* auto-confirm id */,
    27492708                              tr("Close VM"), tr("Continue"));
     
    27572716                             "<p>You can either change the machine's network settings or stop the machine.</p>")
    27582717                             .arg(strMachineName, strIfNames),
    2759                           QString() /* help keyword */,
    27602718                          0 /* auto-confirm id */,
    27612719                          tr("Change Network Settings"), tr("Close VM"));
     
    27922750                      tr("<p>The host key is currently defined as <b>%1</b>.</p>", "additional message box paragraph")
    27932751                         .arg(UIHostCombo::toReadableString(gEDataManager->hostKeyCombination())),
    2794                       QString() /* help keyword */,
    27952752                      "confirmInputCapture",
    27962753                      AlertButton_Ok | AlertButtonOption_Default,
     
    28132770                             "You can access it by pressing <b>Host+Home</b>.</p>")
    28142771                             .arg(strHotKey, UIHostCombo::toReadableString(gEDataManager->hostKeyCombination())),
    2815                           QString() /* help keyword */,
    28162772                          "confirmGoingFullscreen",
    28172773                          tr("Switch"));
     
    28272783                             "You can access it by pressing <b>Host+Home</b>.</p>")
    28282784                             .arg(strHotKey, UIHostCombo::toReadableString(gEDataManager->hostKeyCombination())),
    2829                           QString() /* help keyword */,
    28302785                          "confirmGoingSeamless",
    28312786                          tr("Switch"));
     
    28412796                             "You can access it by pressing <b>Host+Home</b>.</p>")
    28422797                             .arg(strHotKey, UIHostCombo::toReadableString(gEDataManager->hostKeyCombination())),
    2843                           QString() /* help keyword */,
    28442798                          "confirmGoingScale",
    28452799                          tr("Switch"));
     
    28532807                             "<p>Press <b>Ignore</b> to switch to full-screen mode anyway or press <b>Cancel</b> to cancel the operation.</p>")
    28542808                             .arg(UICommon::formatSize(uMinVRAM)),
    2855                           QString() /* help keyword */,
    28562809                          0 /* auto-confirm id */,
    28572810                          tr("Ignore"));
     
    28752828                             "<p>Press <b>Ignore</b> to switch the screen anyway or press <b>Cancel</b> to cancel the operation.</p>")
    28762829                             .arg(UICommon::formatSize(uMinVRAM)),
    2877                           QString() /* help keyword */,
    28782830                          0 /* auto-confirm id */,
    28792831                          tr("Ignore"));
     
    29402892                          tr("<p>Could not find the <b>VirtualBox Guest Additions</b> disk image file.</p>"
    29412893                             "<p>Do you wish to download this disk image file from the Internet?</p>"),
    2942                           QString() /* help keyword */,
    29432894                          0 /* auto-confirm id */,
    29442895                          tr("Download"));
     
    29512902                             "from <nobr><a href=\"%1\">%1</a></nobr> (size %2 bytes)?</p>")
    29522903                             .arg(strUrl, QLocale(UICommon::languageId()).toString(uSize)),
    2953                           QString() /* help keyword */,
    29542904                          0 /* auto-confirm id */,
    29552905                          tr("Download"));
     
    29742924                             "<p>Do you wish to register this disk image file and insert it into the virtual optical drive?</p>")
    29752925                             .arg(strUrl, strSrc),
    2976                           QString() /* help keyword */,
    29772926                          0 /* auto-confirm id */,
    29782927                          tr("Insert", "additions"));
     
    30042953                             "<p>Do you wish to download this file from the Internet?</p>")
    30052954                             .arg(strMissedLocation),
    3006                           QString() /* help keyword */,
    30072955                          0 /* auto-confirm id */,
    30082956                          tr("Download"));
     
    30152963                             "from <nobr><a href=\"%1\">%1</a></nobr> (size %2 bytes)?</p>")
    30162964                             .arg(strURL, QLocale(UICommon::languageId()).toString(uSize)),
    3017                           QString() /* help keyword */,
    30182965                          0 /* auto-confirm id */,
    30192966                          tr("Download"));
     
    30452992                             "<p>Do you wish to download latest one from the Internet?</p>")
    30462993                             .arg(strExtPackVersion).arg(strExtPackName),
    3047                           QString() /* help keyword */,
    30482994                          0 /* auto-confirm id */,
    30492995                          tr("Download"));
     
    30563002                             "from <nobr><a href=\"%2\">%2</a></nobr> (size %3 bytes)?</p>")
    30573003                             .arg(strExtPackName, strURL, QLocale(UICommon::languageId()).toString(uSize)),
    3058                           QString() /* help keyword */,
    30593004                          0 /* auto-confirm id */,
    30603005                          tr("Download"));
     
    30793024                             "<p>Do you wish to install this extension pack?</p>")
    30803025                             .arg(strExtPackName, strFrom, strTo),
    3081                           QString() /* help keyword */,
    30823026                          0 /* auto-confirm id */,
    30833027                          tr("Install", "extension pack"));
     
    31003044                          tr("Do you want to delete the downloaded file <nobr><b>%1</b></nobr>?")
    31013045                             .arg(strTo),
    3102                           QString() /* help keyword */,
    31033046                          0 /* auto-confirm id */,
    31043047                          tr("Delete", "extension pack"));
     
    31103053                          tr("Do you want to delete following list of files <nobr><b>%1</b></nobr>?")
    31113054                             .arg(strFiles.join(",")),
    3112                           QString() /* help keyword */,
    31133055                          0 /* auto-confirm id */,
    31143056                          tr("Delete", "extension pack"));
     
    31303072                             "</table></p>")
    31313073                             .arg(strPackName).arg(strPackVersion).arg(strPackDescription),
    3132                           QString() /* help keyword */,
    31333074                          0 /* auto-confirm id */,
    31343075                          tr("Install", "extension pack"));
     
    31633104                                "</table></p>")
    31643105                                .arg(strBelehrung).arg(strPackName).arg(strPackVersionNew).arg(strPackVersionOld).arg(strPackDescription),
    3165                              QString() /* help keyword */,
    31663106                             0 /* auto-confirm id */,
    31673107                             tr("&Upgrade"));
     
    31773117                                "</table></p>")
    31783118                                .arg(strBelehrung).arg(strPackName).arg(strPackVersionNew).arg(strPackVersionOld).arg(strPackDescription),
    3179                              QString() /* help keyword */,
    31803119                             0 /* auto-confirm id */,
    31813120                             tr("&Downgrade"));
     
    31903129                                "</table></p>")
    31913130                                .arg(strBelehrung).arg(strPackName).arg(strPackVersionOld).arg(strPackDescription),
    3192                              QString() /* help keyword */,
    31933131                             0 /* auto-confirm id */,
    31943132                             tr("&Reinstall"));
     
    32023140                             "<p>Are you sure you want to proceed?</p>")
    32033141                             .arg(strPackName),
    3204                           QString() /* help keyword */,
    32053142                          0 /* auto-confirm id */,
    32063143                          tr("&Remove") /* ok button text */,
     
    33353272                             "Replacing it will overwrite its contents.")
    33363273                             .arg(strPath),
    3337                           QString() /* help keyword */,
    33383274                          0 /* auto-confirm id */,
    33393275                          QString() /* ok button text */,
     
    33533289                                 "Replacing them will overwrite their contents.")
    33543290                                 .arg(QStringList(strPaths.toList()).join("<br />")),
    3355                               QString() /* help keyword */,
    33563291                              0 /* auto-confirm id */,
    33573292                              QString() /* ok button text */,
     
    34993434
    35003435void UIMessageCenter::sltShowMessageBox(QWidget *pParent, MessageType enmType,
    3501                                         const QString &strMessage, const QString &strDetails, const QString &strHelpKeyword,
     3436                                        const QString &strMessage, const QString &strDetails,
    35023437                                        int iButton1, int iButton2, int iButton3,
    35033438                                        const QString &strButtonText1, const QString &strButtonText2, const QString &strButtonText3,
     
    35063441    /* Now we can show a message-box directly: */
    35073442    showMessageBox(pParent, enmType,
    3508                    strMessage, strDetails, strHelpKeyword,
     3443                   strMessage, strDetails,
    35093444                   iButton1, iButton2, iButton3,
    35103445                   strButtonText1, strButtonText2, strButtonText3,
     
    35683503
    35693504int UIMessageCenter::showMessageBox(QWidget *pParent, MessageType enmType,
    3570                                     const QString &strMessage, const QString &strDetails, const QString &strHelpKeyword,
     3505                                    const QString &strMessage, const QString &strDetails,
    35713506                                    int iButton1, int iButton2, int iButton3,
    35723507                                    const QString &strButtonText1, const QString &strButtonText2, const QString &strButtonText3,
     
    36343569    /* Create message-box: */
    36353570    QWidget *pMessageBoxParent = windowManager().realParentWindow(pParent ? pParent : windowManager().mainWindowShown());
    3636     QPointer<QIMessageBox> pMessageBox = new QIMessageBox(title, strMessage, strHelpKeyword, icon,
     3571    QPointer<QIMessageBox> pMessageBox = new QIMessageBox(title, strMessage, icon,
    36373572                                                          iButton1, iButton2, iButton3,
    36383573                                                          pMessageBoxParent);
     
    37153650#if defined(VBOX_WITH_QHELP_VIEWER)
    37163651    sltHandleHelpRequestWithKeyword(uiCommon().helpKeyword(sender()));
    3717 #endif
     3652#endif /* #if (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))&& (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)) */
    37183653}
    37193654
     
    37283663#else
    37293664    Q_UNUSED(strHelpKeyword);
    3730 # endif
    3731 }
     3665# endif /* #if (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))&& (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)) */
     3666}
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r89933 r89950  
    6868      * @param  strMessage        Brings the message.
    6969      * @param  strDetails        Brings the details.
    70       * @param  strHelpKeyword    Brings the help keyword.
    7170      * @param  iButton1          Brings the button 1 type.
    7271      * @param  iButton2          Brings the button 2 type.
     
    7776      * @param  strAutoConfirmId  Brings whether this message can be auto-confirmed. */
    7877    void sigToShowMessageBox(QWidget *pParent, MessageType enmType,
    79                              const QString &strMessage, const QString &strDetails, const QString &strHelpKeyword,
     78                             const QString &strMessage, const QString &strDetails,
    8079                             int iButton1, int iButton2, int iButton3,
    8180                             const QString &strButtonText1, const QString &strButtonText2, const QString &strButtonText3,
     
    9998      * @param  strMessage         Brings the message.
    10099      * @param  strDetails         Brings the details.
    101       * @param  strHelpKeyword     Brings the help keyword
    102100      * @param  pcszAutoConfirmId  Brings the auto-confirm ID.
    103101      * @param  iButton1           Brings the button 1 type.
     
    108106      * @param  strButtonText3     Brings the button 3 text. */
    109107    int message(QWidget *pParent, MessageType enmType,
    110                 const QString &strMessage, const QString &strDetails, const QString &strHelpKeyword,
     108                const QString &strMessage, const QString &strDetails,
    111109                const char *pcszAutoConfirmId = 0,
    112110                int iButton1 = 0, int iButton2 = 0, int iButton3 = 0,
     
    121119      * @param  strMessage         Brings the message.
    122120      * @param  strDetails         Brings the details.
    123       * @param  strHelpKeyword     Brings the help keyword
    124121      * @param  pcszAutoConfirmId  Brings the auto-confirm ID. */
    125122    void error(QWidget *pParent, MessageType enmType,
    126123               const QString &strMessage,
    127124               const QString &strDetails,
    128                const QString &strHelpKeyword = QString(),
    129125               const char *pcszAutoConfirmId = 0) const;
    130126
     
    135131      * @param  strMessage           Brings the message.
    136132      * @param  strDetails           Brings the details.
    137       * @param  strHelpKeyword       Brings the help keyword
    138133      * @param  pcszAutoConfirmId    Brings the auto-confirm ID.
    139134      * @param  strOkButtonText      Brings the Ok button text.
     
    142137                           const QString &strMessage,
    143138                           const QString &strDetails,
    144                            const QString &strHelpKeyword,
    145139                           const char *pcszAutoConfirmId = 0,
    146140                           const QString &strOkButtonText = QString(),
     
    162156      * @param  enmType            Brings the message-box type.
    163157      * @param  strMessage         Brings the message.
    164       * @param  strHelpKeyword     Brings the help keyword.
    165158      * @param  pcszAutoConfirmId  Brings the auto-confirm ID.
    166159      * @param  iButton1           Brings the button 1 type.
     
    172165    int question(QWidget *pParent, MessageType enmType,
    173166                 const QString &strMessage,
    174                  const QString &strHelpKeyword,
    175167                 const char *pcszAutoConfirmId = 0,
    176168                 int iButton1 = 0, int iButton2 = 0, int iButton3 = 0,
     
    184176      * @param  enmType              Brings the message-box type.
    185177      * @param  strMessage           Brings the message.
    186       * @param  strHelpKeyword       Brings the help keyword.
    187178      * @param  pcszAutoConfirmId    Brings the auto-confirm ID.
    188179      * @param  strOkButtonText      Brings the button 1 text.
     
    191182    bool questionBinary(QWidget *pParent, MessageType enmType,
    192183                        const QString &strMessage,
    193                         const QString &strHelpKeyword = QString(),
    194184                        const char *pcszAutoConfirmId = 0,
    195185                        const QString &strOkButtonText = QString(),
     
    202192      * @param  enmType               Brings the message-box type.
    203193      * @param  strMessage            Brings the message.
    204       * @param  strHelpKeyword        Brings the help keyword.
    205194      * @param  pcszAutoConfirmId     Brings the auto-confirm ID.
    206195      * @param  strChoice1ButtonText  Brings the button 1 text.
     
    209198    int questionTrinary(QWidget *pParent, MessageType enmType,
    210199                        const QString &strMessage,
    211                         const QString &strHelpKeyword = QString(),
    212200                        const char *pcszAutoConfirmId = 0,
    213201                        const QString &strChoice1ButtonText = QString(),
     
    220208      * @param  strMessage           Brings the message.
    221209      * @param  strOptionText        Brings the option text.
    222       * @param  strHelpKeyword       Brings the help keyword which is used in context sensitive help.
    223210      * @param  fDefaultOptionValue  Brings the default option value.
    224211      * @param  iButton1             Brings the button 1 type.
     
    231218                          const QString &strMessage,
    232219                          const QString &strOptionText,
    233                           const QString &strHelpKeyword,
    234220                          bool fDefaultOptionValue = true,
    235221                          int iButton1 = 0, int iButton2 = 0, int iButton3 = 0,
     
    601587      * @param  enmType           Brings the message-box type.
    602588      * @param  strMessage        Brings the message.
    603       * @param  strMessage        Brings the help keyword.
    604589      * @param  strDetails        Brings the details.
    605590      * @param  iButton1          Brings the button 1 type.
     
    611596      * @param  strAutoConfirmId  Brings whether this message can be auto-confirmed. */
    612597    void sltShowMessageBox(QWidget *pParent, MessageType enmType,
    613                            const QString &strMessage, const QString &strDetails, const QString &strHelpKeyword,
     598                           const QString &strMessage, const QString &strDetails,
    614599                           int iButton1, int iButton2, int iButton3,
    615600                           const QString &strButtonText1, const QString &strButtonText2, const QString &strButtonText3,
     
    633618      * @param  strMessage        Brings the message.
    634619      * @param  strDetails        Brings the details.
    635       * @param  strHelpKeyword    Brings the help keyword
    636620      * @param  iButton1          Brings the button 1 type.
    637621      * @param  iButton2          Brings the button 2 type.
     
    642626      * @param  strAutoConfirmId  Brings whether this message can be auto-confirmed. */
    643627    int showMessageBox(QWidget *pParent, MessageType type,
    644                        const QString &strMessage, const QString &strDetails, const QString &strHelpKeyword,
     628                       const QString &strMessage, const QString &strDetails,
    645629                       int iButton1, int iButton2, int iButton3,
    646630                       const QString &strButtonText1, const QString &strButtonText2, const QString &strButtonText3,
  • trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp

    r89933 r89950  
    27152715        if (!msgCenter().questionBinary(this, MessageType_Question,
    27162716                                        QString(UISoftKeyboard::tr("This will delete the keyboard layout file as well. Proceed?")),
    2717                                         QString() /* help keyword */,
    27182717                                        0 /* auto-confirm id */,
    27192718                                        QString("Delete") /* ok button text */,
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