VirtualBox

Changeset 104566 in vbox


Ignore:
Timestamp:
May 8, 2024 4:37:21 PM (7 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10670: New Cloud VM wizard: A bunch of coding-style fixes in the same area.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp

    r104564 r104566  
    248248    /* Translate provider label: */
    249249    if (m_pProviderLabel)
    250         m_pProviderLabel->setText(UIWizardNewCloudVM::tr("&Location:"));
     250        m_pProviderLabel->setText(UIWizardNewCloudVM::tr("&Provider:"));
    251251    /* Translate received values of Provider combo-box.
    252252     * We are enumerating starting from 0 for simplicity: */
     
    260260    /* Translate profile stuff: */
    261261    if (m_pProfileLabel)
    262         m_pProfileLabel->setText(UIWizardNewCloudVM::tr("&Profile:"));
     262        m_pProfileLabel->setText(UIWizardNewCloudVM::tr("P&rofile:"));
    263263    if (m_pProfileComboBox)
    264264        m_pProfileComboBox->setToolTip(UIWizardNewCloudVM::tr("Selects cloud profile."));
     
    277277
    278278    /* Translate source image list: */
    279     m_pSourceImageList->setWhatsThis(UIWizardNewCloudVM::tr("Lists all the source images or boot volumes."));
     279    if (m_pSourceImageList)
     280        m_pSourceImageList->setWhatsThis(UIWizardNewCloudVM::tr("Lists all the source images or boot volumes."));
    280281
    281282    /* Translate cloud VM properties table: */
    282     m_pFormEditor->setWhatsThis(UIWizardNewCloudVM::tr("Lists all the cloud VM properties."));
     283    if (m_pFormEditor)
     284        m_pFormEditor->setWhatsThis(UIWizardNewCloudVM::tr("Lists all the cloud VM properties."));
    283285}
    284286
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h

    r104563 r104566  
    3939class QGridLayout;
    4040class QLabel;
     41class QIListWidget;
    4142class UIToolBox;
    4243class UIWizardNewCloudVM;
     
    99100    UIToolBox *m_pToolBox;
    100101
    101     /** Holds the location layout instance. */
     102    /** Holds the provider layout instance. */
    102103    QGridLayout  *m_pLayoutProvider;
    103104    /** Holds the provider type label instance. */
    104105    QLabel       *m_pProviderLabel;
    105     /** Holds the location type combo-box instance. */
     106    /** Holds the provider type combo-box instance. */
    106107    QIComboBox   *m_pProviderComboBox;
    107108    /** Holds the profile label instance. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.cpp

    r104564 r104566  
    102102
    103103    /* Translate description label: */
    104     m_pLabel->setText(UIWizardNewCloudVM::tr("These are the the suggested settings of the cloud VM creation procedure, they are "
    105                                              "influencing the resulting cloud VM instance.  You can change many of the "
    106                                              "properties shown by double-clicking on the items and disable others using the "
    107                                              "check boxes below."));
     104    if (m_pLabel)
     105        m_pLabel->setText(UIWizardNewCloudVM::tr("These are the the suggested settings of the cloud VM creation procedure, they "
     106                                                 "are influencing the resulting cloud VM instance.  You can change many of the "
     107                                                 "properties shown by double-clicking on the items and disable others using the "
     108                                                 "check boxes below."));
    108109
    109110    /* Translate cloud VM properties table: */
    110     m_pFormEditor->setWhatsThis(UIWizardNewCloudVM::tr("Lists all the cloud VM properties."));
     111    if (m_pFormEditor)
     112        m_pFormEditor->setWhatsThis(UIWizardNewCloudVM::tr("Lists all the cloud VM properties."));
    111113}
    112114
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp

    r104563 r104566  
    470470
    471471    /* Translate main label: */
    472     m_pLabelMain->setText(UIWizardNewCloudVM::tr("Please choose the location to create cloud virtual machine in.  This can "
    473                                                  "be one of known cloud service providers below."));
     472    if (m_pLabelMain)
     473        m_pLabelMain->setText(UIWizardNewCloudVM::tr("Please choose the location to create cloud virtual machine in.  This can "
     474                                                     "be one of known cloud service providers below."));
    474475
    475476    /* Translate provider label: */
    476     m_pProviderLabel->setText(UIWizardNewCloudVM::tr("&Location:"));
     477    if (m_pProviderLabel)
     478        m_pProviderLabel->setText(UIWizardNewCloudVM::tr("&Provider:"));
    477479    /* Translate received values of Provider combo-box.
    478480     * We are enumerating starting from 0 for simplicity: */
     
    485487
    486488    /* Translate description label: */
    487     m_pLabelDescription->setText(UIWizardNewCloudVM::tr("Please choose one of cloud service profiles you have registered to "
    488                                                         "create virtual machine for.  Existing images list will be "
    489                                                         "updated.  To continue, select one of images to create virtual "
    490                                                         "machine on the basis of it."));
     489    if (m_pLabelDescription)
     490        m_pLabelDescription->setText(UIWizardNewCloudVM::tr("Please choose one of cloud service profiles you have registered to "
     491                                                            "create virtual machine for.  Existing images list will be "
     492                                                            "updated.  To continue, select one of images to create virtual "
     493                                                            "machine on the basis of it."));
    491494
    492495    /* Translate profile stuff: */
    493     m_pProfileLabel->setText(UIWizardNewCloudVM::tr("&Profile:"));
     496    if (m_pProfileLabel)
     497        m_pProfileLabel->setText(UIWizardNewCloudVM::tr("P&rofile:"));
    494498    if (m_pProfileComboBox)
    495499        m_pProfileComboBox->setToolTip(UIWizardNewCloudVM::tr("Selects cloud profile."));
     
    499503        m_pProfileToolButton->setToolTip(UIWizardNewCloudVM::tr("Opens cloud profile manager..."));
    500504    }
    501     m_pSourceImageLabel->setText(UIWizardNewCloudVM::tr("&Source:"));
    502 
    503     /* Translate source tab-bar: */
    504     m_pSourceTabBar->setTabText(0, UIWizardNewCloudVM::tr("&Images"));
    505     m_pSourceTabBar->setTabText(1, UIWizardNewCloudVM::tr("&Boot Volumes"));
     505
     506    /* Translate source stuff: */
     507    if (m_pSourceImageLabel)
     508        m_pSourceImageLabel->setText(UIWizardNewCloudVM::tr("&Source:"));
     509    if (m_pSourceTabBar)
     510    {
     511        m_pSourceTabBar->setTabText(0, UIWizardNewCloudVM::tr("&Images"));
     512        m_pSourceTabBar->setTabText(1, UIWizardNewCloudVM::tr("&Boot Volumes"));
     513    }
    506514
    507515    /* Translate source image list: */
    508     m_pSourceImageList->setWhatsThis(UIWizardNewCloudVM::tr("Lists all the source images or boot volumes."));
     516    if (m_pSourceImageList)
     517        m_pSourceImageList->setWhatsThis(UIWizardNewCloudVM::tr("Lists all the source images or boot volumes."));
    509518
    510519    /* Adjust label widths: */
    511520    QList<QWidget*> labels;
    512     labels << m_pProviderLabel;
    513     labels << m_pProfileLabel;
    514     labels << m_pSourceImageLabel;
     521    if (m_pProviderLabel)
     522        labels << m_pProviderLabel;
     523    if (m_pProfileLabel)
     524        labels << m_pProfileLabel;
     525    if (m_pSourceImageLabel)
     526        labels << m_pSourceImageLabel;
    515527    int iMaxWidth = 0;
    516528    foreach (QWidget *pLabel, labels)
    517529        iMaxWidth = qMax(iMaxWidth, pLabel->minimumSizeHint().width());
    518     m_pProviderLayout->setColumnMinimumWidth(0, iMaxWidth);
    519     m_pOptionsLayout->setColumnMinimumWidth(0, iMaxWidth);
     530    if (m_pProviderLayout)
     531        m_pProviderLayout->setColumnMinimumWidth(0, iMaxWidth);
     532    if (m_pOptionsLayout)
     533        m_pOptionsLayout->setColumnMinimumWidth(0, iMaxWidth);
    520534}
    521535
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h

    r104563 r104566  
    166166    /** Holds the profile management tool-button instance. */
    167167    QIToolButton *m_pProfileToolButton;
     168
    168169    /** Holds the source image label instance. */
    169170    QLabel       *m_pSourceImageLabel;
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