VirtualBox

Ignore:
Timestamp:
Jul 2, 2020 6:13:37 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9515. Adding a message windows for IUnattended errors

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

Legend:

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

    r84964 r85039  
    8383#include "CExtPackFile.h"
    8484#include "CHostNetworkInterface.h"
     85#include "CUnattended.h"
    8586#include "CVFSExplorer.h"
    8687#include "CVirtualSystemDescription.h"
     
    22612262}
    22622263
     2264void UIMessageCenter::cannotRunUnattendedGuestInstall(const CUnattended &comUnattendedInstall, QWidget *pParent /* = 0 */)
     2265{
     2266    COMErrorInfo comErrorInfo =  comUnattendedInstall.errorInfo();    \
     2267    error(pParent, MessageType_Error,
     2268          tr("An error has occured during unattended guest install setup."),
     2269          UIErrorString::formatErrorInfo(comErrorInfo));
     2270}
     2271
     2272
    22632273void UIMessageCenter::showRuntimeError(const CConsole &console, bool fFatal, const QString &strErrorId, const QString &strErrorMsg) const
    22642274{
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r84217 r85039  
    446446    bool cannotExportAppliance(const CProgress &comProgress, const QString &strPath, QWidget *pParent = 0) const;
    447447    bool cannotAddDiskEncryptionPassword(const CAppliance &comAppliance, QWidget *pParent = 0);
     448    void cannotRunUnattendedGuestInstall(const CUnattended &comUnattendedInstall, QWidget *pParent = 0);
    448449
    449450    /* API: Runtime UI warnings: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp

    r85001 r85039  
    8282        COMErrorInfo comErrorInfo =  comUnattendedInstaller.errorInfo(); \
    8383        QString strErrorInfo = UIErrorString::formatErrorInfo(comErrorInfo); \
    84         printf("unattended install error %s\n", qPrintable(strErrorInfo)); \
     84        msgCenter().cannotRunUnattendedGuestInstall(comUnattendedInstaller); \
    8585        return; \
    8686        } \
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasicGAInstall.cpp

    r85001 r85039  
    139139void UIWizardNewVMPageBasicGAInstall::retranslateUi()
    140140{
    141     /* Translate page: */
    142     setTitle(UIWizardNewVM::tr("Unattended Guest OS Install"));
    143141
    144     /* Translate widgets: */
    145     m_pLabel->setText(UIWizardNewVM::tr("<p>Guest Additions install</p>"));
    146     m_pInstallGACheckBox->setText(UIWizardNewVM::tr("Install guest additions"));
    147     m_pISOPathLabel->setText(UIWizardNewVM::tr("Installation medium:"));
    148     m_pISOFilePathSelector->setToolTip(UIWizardNewVM::tr("Please select an installation medium (ISO file)"));
     142    setTitle(UIWizardNewVM::tr("Guest Additions install"));
     143    if (m_pLabel)
     144        m_pLabel->setText(UIWizardNewVM::tr("<p>You can enable the guest additions install which will be performed during the unattended "
     145                                            "guest OS install. </p>"));
     146
     147    if (m_pInstallGACheckBox)
     148        m_pInstallGACheckBox->setText(UIWizardNewVM::tr("Install guest additions"));
     149    if (m_pISOPathLabel)
     150        m_pISOPathLabel->setText(UIWizardNewVM::tr("Installation medium:"));
     151    if (m_pISOFilePathSelector)
     152        m_pISOFilePathSelector->setToolTip(UIWizardNewVM::tr("Please select an installation medium (ISO file)"));
    149153}
    150154
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasicUnattended.cpp

    r85001 r85039  
    215215
    216216    /* Translate widgets: */
    217     m_pLabel->setText(UIWizardNewVM::tr("You can enable the unattended (automated) guest OS install "
    218                                         "and select an installation medium. The guest OS will be "
    219                                         "installed after this wizard is closed. "));
    220     m_pUnattendedCheckBox->setText(UIWizardNewVM::tr("Enable unattended guest OS Install"));
     217    m_pLabel->setText(UIWizardNewVM::tr("<p>You can enable the unattended (automated) guest OS install. "
     218                                        "Optionally you can select to start the unattended on the background by selecting "
     219                                        "a headless virtual machine start.</p>"));
     220    if (m_pUnattendedCheckBox)
     221    {
     222        m_pUnattendedCheckBox->setText(UIWizardNewVM::tr("Enable unattended guest OS Install"));
     223        m_pUnattendedCheckBox->setToolTip(UIWizardNewVM::tr("When checkedan unattended guest OS will be initialized after this wizard is closed"));
     224    }
    221225    m_pISOSelectorLabel->setText(UIWizardNewVM::tr("Installation medium:"));
    222226    if (m_pStartHeadlessCheckBox)
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