VirtualBox

Changeset 40147 in vbox


Ignore:
Timestamp:
Feb 16, 2012 11:25:30 AM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: 6063: Novice warning in the New VM wizard: Initial implementation.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp

    r40146 r40147  
    184184    /* Decorate page */
    185185    Ui::UINewVMWzdPage1::setupUi(this);
     186
     187    /* Register 'message-box-warning-icon' image in m_pPage1Text1 as 'image': */
     188    m_pPage1Text1->registerImage(UIIconPool::defaultIcon(UIIconPool::MessageBoxWarningIcon).pixmap(256, 256).toImage(), "image");
     189
     190    /* Prepare table template: */
     191    QString strTable("<table cellspacing=0 cellpadding=0>%1</table>");
     192    QString strTableRow("<tr>%1</tr>");
     193    QString strTableData("<td>%1</td>");
     194    QString strTableDataCentered("<td valign=middle>%1</td>");
     195    QString strImage("<img src=\"image\"/>");
     196    QString strSpacing("&nbsp;&nbsp;&nbsp;");
     197    QString strTableDataImage(strTableDataCentered.arg(strImage));
     198    QString strTableDataSpacing(strTableData.arg(strSpacing));
     199    m_strTableTemplate = strTable.arg(strTableRow.arg(strTableDataImage + strTableDataSpacing + strTableData));
    186200}
    187201
     
    194208    setTitle(tr("Welcome to the New Virtual Machine Wizard!"));
    195209
    196     m_pPage1Text1->setText(tr("<p>This wizard will guide you through the steps that are necessary "
     210    m_pPage1Text1->setText(m_strTableTemplate.arg("<b>STOP!</b> Before continuing, please understand what you are doing. "
     211                                                  "Computer system virtualization involves complex concepts, "
     212                                                  "which no user interface can hide. Please make sure that you have read "
     213                                                  "the first section of the user manual before continuing "
     214                                                  "or seeking out online assistance!"));
     215
     216    m_pPage1Text2->setText(tr("<p>This wizard will guide you through the steps that are necessary "
    197217                              "to create a new virtual machine for VirtualBox.</p><p>%1</p>")
    198218                           .arg(standardHelpText()));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.h

    r34740 r40147  
    6161
    6262    void initializePage();
     63
     64private:
     65
     66    QString m_strTableTemplate;
    6367};
    6468
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzdPage1.ui

    r40142 r40147  
    2929   </item>
    3030   <item>
     31    <widget class="QIRichTextLabel" name="m_pPage1Text2"/>
     32   </item>
     33   <item>
    3134    <spacer name="m_pSpacer">
    3235     <property name="orientation" >
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