Changeset 104566 in vbox
- Timestamp:
- May 8, 2024 4:37:21 PM (7 months ago)
- 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 248 248 /* Translate provider label: */ 249 249 if (m_pProviderLabel) 250 m_pProviderLabel->setText(UIWizardNewCloudVM::tr("& Location:"));250 m_pProviderLabel->setText(UIWizardNewCloudVM::tr("&Provider:")); 251 251 /* Translate received values of Provider combo-box. 252 252 * We are enumerating starting from 0 for simplicity: */ … … 260 260 /* Translate profile stuff: */ 261 261 if (m_pProfileLabel) 262 m_pProfileLabel->setText(UIWizardNewCloudVM::tr(" &Profile:"));262 m_pProfileLabel->setText(UIWizardNewCloudVM::tr("P&rofile:")); 263 263 if (m_pProfileComboBox) 264 264 m_pProfileComboBox->setToolTip(UIWizardNewCloudVM::tr("Selects cloud profile.")); … … 277 277 278 278 /* 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.")); 280 281 281 282 /* 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.")); 283 285 } 284 286 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h
r104563 r104566 39 39 class QGridLayout; 40 40 class QLabel; 41 class QIListWidget; 41 42 class UIToolBox; 42 43 class UIWizardNewCloudVM; … … 99 100 UIToolBox *m_pToolBox; 100 101 101 /** Holds the locationlayout instance. */102 /** Holds the provider layout instance. */ 102 103 QGridLayout *m_pLayoutProvider; 103 104 /** Holds the provider type label instance. */ 104 105 QLabel *m_pProviderLabel; 105 /** Holds the locationtype combo-box instance. */106 /** Holds the provider type combo-box instance. */ 106 107 QIComboBox *m_pProviderComboBox; 107 108 /** Holds the profile label instance. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.cpp
r104564 r104566 102 102 103 103 /* 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.")); 108 109 109 110 /* 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.")); 111 113 } 112 114 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp
r104563 r104566 470 470 471 471 /* 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.")); 474 475 475 476 /* Translate provider label: */ 476 m_pProviderLabel->setText(UIWizardNewCloudVM::tr("&Location:")); 477 if (m_pProviderLabel) 478 m_pProviderLabel->setText(UIWizardNewCloudVM::tr("&Provider:")); 477 479 /* Translate received values of Provider combo-box. 478 480 * We are enumerating starting from 0 for simplicity: */ … … 485 487 486 488 /* 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.")); 491 494 492 495 /* Translate profile stuff: */ 493 m_pProfileLabel->setText(UIWizardNewCloudVM::tr("&Profile:")); 496 if (m_pProfileLabel) 497 m_pProfileLabel->setText(UIWizardNewCloudVM::tr("P&rofile:")); 494 498 if (m_pProfileComboBox) 495 499 m_pProfileComboBox->setToolTip(UIWizardNewCloudVM::tr("Selects cloud profile.")); … … 499 503 m_pProfileToolButton->setToolTip(UIWizardNewCloudVM::tr("Opens cloud profile manager...")); 500 504 } 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 } 506 514 507 515 /* 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.")); 509 518 510 519 /* Adjust label widths: */ 511 520 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; 515 527 int iMaxWidth = 0; 516 528 foreach (QWidget *pLabel, labels) 517 529 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); 520 534 } 521 535 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h
r104563 r104566 166 166 /** Holds the profile management tool-button instance. */ 167 167 QIToolButton *m_pProfileToolButton; 168 168 169 /** Holds the source image label instance. */ 169 170 QLabel *m_pSourceImageLabel;
Note:
See TracChangeset
for help on using the changeset viewer.