Changeset 73025 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 10, 2018 10:00:15 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123577
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp
r73014 r73025 58 58 } 59 59 60 void UIWizardExportAppPage3::populateFormats() 61 { 62 AssertReturnVoid(m_pFormatComboBox->count() == 0); 63 64 /* Apply hardcoded format list: */ 65 QStringList formats; 66 formats << "ovf-0.9"; 67 formats << "ovf-1.0"; 68 formats << "ovf-2.0"; 69 formats << "opc-1.0"; 70 m_pFormatComboBox->addItems(formats); 71 72 /* Duplicate non-translated names to data fields: */ 73 for (int i = 0; i < m_pFormatComboBox->count(); ++i) 74 m_pFormatComboBox->setItemData(i, m_pFormatComboBox->itemText(i)); 75 76 /* Set default: */ 77 setFormat("ovf-1.0"); 78 } 79 60 80 void UIWizardExportAppPage3::populateProviders() 61 81 { … … 75 95 for (int i = 0; i < m_pProviderComboBox->count(); ++i) 76 96 m_pProviderComboBox->setItemData(i, m_pProviderComboBox->itemText(i)); 77 } 78 79 void UIWizardExportAppPage3::chooseDefaultSettings() 80 { 81 /* Choose defaults: */ 82 setFormat("ovf-1.0"); 97 98 /* Set default: */ 83 99 setProvider("OCI"); 84 100 } … … 263 279 if (m_pFormatComboBox) 264 280 { 265 const QString strFormatOVF09("ovf-0.9");266 const QString strFormatOVF10("ovf-1.0");267 const QString strFormatOVF20("ovf-2.0");268 const QString strFormatOPC10("opc-1.0");269 m_pFormatComboBox->addItem(strFormatOVF09, strFormatOVF09);270 m_pFormatComboBox->addItem(strFormatOVF10, strFormatOVF10);271 m_pFormatComboBox->addItem(strFormatOVF20, strFormatOVF20);272 m_pFormatComboBox->addItem(strFormatOPC10, strFormatOPC10);273 274 281 /* Add into layout: */ 275 282 pSettingsLayout1->addWidget(m_pFormatComboBox, 1, 1); … … 367 374 } 368 375 376 /* Populate formats: */ 377 populateFormats(); 369 378 /* Populate providers: */ 370 379 populateProviders(); 371 /* Choose default settings: */372 chooseDefaultSettings();373 380 374 381 /* Setup connections: */ … … 516 523 void UIWizardExportAppPageBasic3::sltHandleFormatComboChange() 517 524 { 525 /* Update tool-tip: */ 526 updateFormatComboToolTip(); 527 528 /* Refresh current settings: */ 518 529 refreshCurrentSettings(); 519 updateFormatComboToolTip();520 530 } 521 531 522 532 void UIWizardExportAppPageBasic3::sltHandleProviderComboChange() 523 533 { 534 /* Update tool-tip: */ 535 updateProviderComboToolTip(); 536 537 /* Refresh current settings: */ 524 538 refreshCurrentSettings(); 525 updateProviderComboToolTip(); 526 } 539 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.h
r73011 r73025 43 43 UIWizardExportAppPage3(); 44 44 45 /** Populates formats. */ 46 void populateFormats(); 45 47 /** Populates providers. */ 46 48 void populateProviders(); 47 48 /** Chooses default settings. */49 void chooseDefaultSettings();50 49 51 50 /** Updates page appearance. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp
r73020 r73025 189 189 if (m_pFormatComboBox) 190 190 { 191 const QString strFormatOVF09("ovf-0.9");192 const QString strFormatOVF10("ovf-1.0");193 const QString strFormatOVF20("ovf-2.0");194 const QString strFormatOPC10("opc-1.0");195 m_pFormatComboBox->addItem(strFormatOVF09, strFormatOVF09);196 m_pFormatComboBox->addItem(strFormatOVF10, strFormatOVF10);197 m_pFormatComboBox->addItem(strFormatOVF20, strFormatOVF20);198 m_pFormatComboBox->addItem(strFormatOPC10, strFormatOPC10);199 200 191 /* Add into layout: */ 201 192 pSettingsLayout1->addWidget(m_pFormatComboBox, 1, 1); … … 304 295 /* Choose default storage type: */ 305 296 chooseDefaultStorageType(); 297 /* Populate formats: */ 298 populateFormats(); 306 299 /* Populate providers: */ 307 300 populateProviders(); 308 /* Choose default settings: */309 chooseDefaultSettings();310 301 311 302 /* Setup connections: */ … … 387 378 /* Refresh current settings: */ 388 379 refreshCurrentSettings(); 380 381 /* Update tool-tips: */ 389 382 updateFormatComboToolTip(); 390 383 updateProviderComboToolTip(); … … 398 391 /* Refresh current settings: */ 399 392 refreshCurrentSettings(); 393 /* Refresh appliance settings: */ 400 394 refreshApplianceSettingsWidget(); 401 395 } … … 478 472 void UIWizardExportAppPageExpert::sltHandleFormatComboChange() 479 473 { 474 /* Update tool-tip: */ 475 updateFormatComboToolTip(); 476 480 477 /* Refresh current settings: */ 481 478 refreshCurrentSettings(); 482 updateFormatComboToolTip();483 479 } 484 480 485 481 void UIWizardExportAppPageExpert::sltHandleProviderComboChange() 486 482 { 483 /* Update tool-tip: */ 484 updateProviderComboToolTip(); 485 487 486 /* Refresh current settings: */ 488 487 refreshCurrentSettings(); 489 updateProviderComboToolTip(); 490 } 488 }
Note:
See TracChangeset
for help on using the changeset viewer.