- Timestamp:
- Jun 29, 2021 1:48:59 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145412
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r89950 r89954 162 162 const QString &strButtonText1 /* = QString() */, 163 163 const QString &strButtonText2 /* = QString() */, 164 const QString &strButtonText3 /* = QString() */) const 164 const QString &strButtonText3 /* = QString() */, 165 const QString &strHelpKeyword /* = QString() */) const 165 166 { 166 167 /* If this is NOT a GUI thread: */ … … 173 174 iButton1, iButton2, iButton3, 174 175 strButtonText1, strButtonText2, strButtonText3, 175 QString(pcszAutoConfirmId) );176 QString(pcszAutoConfirmId), strHelpKeyword); 176 177 /* Inter-thread communications are not yet implemented: */ 177 178 return 0; … … 182 183 iButton1, iButton2, iButton3, 183 184 strButtonText1, strButtonText2, strButtonText3, 184 QString(pcszAutoConfirmId) );185 QString(pcszAutoConfirmId), strHelpKeyword); 185 186 } 186 187 … … 188 189 const QString &strMessage, 189 190 const QString &strDetails, 190 const char *pcszAutoConfirmId /* = 0*/) const 191 const char *pcszAutoConfirmId /* = 0*/, 192 const QString &strHelpKeyword /* = QString() */) const 191 193 { 192 194 message(pParent, enmType, strMessage, strDetails, pcszAutoConfirmId, 193 AlertButton_Ok | AlertButtonOption_Default | AlertButtonOption_Escape); 195 AlertButton_Ok | AlertButtonOption_Default | AlertButtonOption_Escape, 0 /* Button 2 */, 0 /* Button 3 */, 196 QString() /* strButtonText1 */, QString() /* strButtonText2 */, QString() /* strButtonText3 */, strHelpKeyword); 194 197 } 195 198 … … 630 633 error(pParent, MessageType_Warning, 631 634 tr("Failed to enumerate host USB devices."), 632 UIErrorString::formatErrorInfo(comHost), "USBEnumerationWarning"); 635 UIErrorString::formatErrorInfo(comHost), "USBEnumerationWarning", 636 "install-linux-vboxusers" /* help keyword */); 633 637 } 634 638 … … 3437 3441 int iButton1, int iButton2, int iButton3, 3438 3442 const QString &strButtonText1, const QString &strButtonText2, const QString &strButtonText3, 3439 const QString &strAutoConfirmId ) const3443 const QString &strAutoConfirmId, const QString &strHelpKeyword) const 3440 3444 { 3441 3445 /* Now we can show a message-box directly: */ … … 3444 3448 iButton1, iButton2, iButton3, 3445 3449 strButtonText1, strButtonText2, strButtonText3, 3446 strAutoConfirmId );3450 strAutoConfirmId, strHelpKeyword); 3447 3451 } 3448 3452 … … 3506 3510 int iButton1, int iButton2, int iButton3, 3507 3511 const QString &strButtonText1, const QString &strButtonText2, const QString &strButtonText3, 3508 const QString &strAutoConfirmId ) const3512 const QString &strAutoConfirmId, const QString &strHelpKeyword) const 3509 3513 { 3510 3514 /* Choose the 'default' button: */ … … 3571 3575 QPointer<QIMessageBox> pMessageBox = new QIMessageBox(title, strMessage, icon, 3572 3576 iButton1, iButton2, iButton3, 3573 pMessageBoxParent );3577 pMessageBoxParent, strHelpKeyword); 3574 3578 windowManager().registerNewParent(pMessageBox, pMessageBoxParent); 3575 3579 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r89950 r89954 79 79 int iButton1, int iButton2, int iButton3, 80 80 const QString &strButtonText1, const QString &strButtonText2, const QString &strButtonText3, 81 const QString &strAutoConfirmId ) const;81 const QString &strAutoConfirmId, const QString &strHelpKeyword) const; 82 82 83 83 public: … … 104 104 * @param strButtonText1 Brings the button 1 text. 105 105 * @param strButtonText2 Brings the button 2 text. 106 * @param strButtonText3 Brings the button 3 text. */ 106 * @param strButtonText3 Brings the button 3 text. 107 * @param strHelpKeyword Brings the help keyword string. */ 107 108 int message(QWidget *pParent, MessageType enmType, 108 109 const QString &strMessage, const QString &strDetails, … … 111 112 const QString &strButtonText1 = QString(), 112 113 const QString &strButtonText2 = QString(), 113 const QString &strButtonText3 = QString()) const; 114 const QString &strButtonText3 = QString(), 115 const QString &strHelpKeyword = QString()) const; 114 116 115 117 /** Shows an 'Error' type of 'Message'. … … 119 121 * @param strMessage Brings the message. 120 122 * @param strDetails Brings the details. 121 * @param pcszAutoConfirmId Brings the auto-confirm ID. */ 123 * @param pcszAutoConfirmId Brings the auto-confirm ID. 124 * @param strHelpKeyword Brings the help keyword string. */ 122 125 void error(QWidget *pParent, MessageType enmType, 123 126 const QString &strMessage, 124 127 const QString &strDetails, 125 const char *pcszAutoConfirmId = 0) const; 128 const char *pcszAutoConfirmId = 0, 129 const QString &strHelpKeyword = QString()) const; 126 130 127 131 /** Shows an 'Error with Question' type of 'Message'. … … 594 598 * @param strButtonText2 Brings the button 2 text. 595 599 * @param strButtonText3 Brings the button 3 text. 596 * @param strAutoConfirmId Brings whether this message can be auto-confirmed. */ 600 * @param strAutoConfirmId Brings whether this message can be auto-confirmed. 601 * @param strHelpKeyword Brings the help keyword string. */ 597 602 void sltShowMessageBox(QWidget *pParent, MessageType enmType, 598 603 const QString &strMessage, const QString &strDetails, 599 604 int iButton1, int iButton2, int iButton3, 600 605 const QString &strButtonText1, const QString &strButtonText2, const QString &strButtonText3, 601 const QString &strAutoConfirmId ) const;606 const QString &strAutoConfirmId, const QString &strHelpKeyword) const; 602 607 603 608 private: … … 624 629 * @param strButtonText2 Brings the button 2 text. 625 630 * @param strButtonText3 Brings the button 3 text. 626 * @param strAutoConfirmId Brings whether this message can be auto-confirmed. */ 631 * @param strAutoConfirmId Brings whether this message can be auto-confirmed. 632 * @param strHelpKeyword Brings the help keyowrd. */ 627 633 int showMessageBox(QWidget *pParent, MessageType type, 628 634 const QString &strMessage, const QString &strDetails, 629 635 int iButton1, int iButton2, int iButton3, 630 636 const QString &strButtonText1, const QString &strButtonText2, const QString &strButtonText3, 631 const QString &strAutoConfirmId ) const;637 const QString &strAutoConfirmId, const QString &strHelpKeyword) const; 632 638 void showHelpBrowser(const QString &strHelpFilePath, QWidget *pParent = 0); 633 639
Note:
See TracChangeset
for help on using the changeset viewer.