Changeset 73085 in vbox
- Timestamp:
- Jul 12, 2018 10:05:36 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123649
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp
r73082 r73085 55 55 , m_pAdditionalLabel(0) 56 56 , m_pManifestCheckbox(0) 57 , m_pIncludeISOsCheckbox(0) 57 58 , m_pProviderComboBoxLabel(0) 58 59 , m_pProviderComboBox(0) … … 234 235 } 235 236 237 void UIWizardExportAppPage3::refreshIncludeISOsCheckBoxAccess() 238 { 239 /* If the format is set to OPC: */ 240 if (fieldImp("format").toString() == "opc-1.0") 241 { 242 /* Disable manifest check-box: */ 243 m_pManifestCheckbox->setEnabled(false); 244 } 245 /* Otherwise: */ 246 else 247 { 248 /* Enable manifest check-box: */ 249 m_pManifestCheckbox->setEnabled(true); 250 } 251 } 252 236 253 void UIWizardExportAppPage3::updateFormatComboToolTip() 237 254 { … … 298 315 { 299 316 m_pManifestCheckbox->setChecked(fChecked); 317 } 318 319 bool UIWizardExportAppPage3::isIncludeISOsSelected() const 320 { 321 return m_pIncludeISOsCheckbox->isChecked(); 322 } 323 324 void UIWizardExportAppPage3::setIncludeISOsSelected(bool fChecked) 325 { 326 m_pIncludeISOsCheckbox->setChecked(fChecked); 300 327 } 301 328 … … 418 445 pSettingsLayout1->addWidget(m_pManifestCheckbox, 2, 1); 419 446 } 447 /* Create include ISOs check-box: */ 448 m_pIncludeISOsCheckbox = new QCheckBox; 449 if (m_pIncludeISOsCheckbox) 450 { 451 /* Add into layout: */ 452 pSettingsLayout1->addWidget(m_pIncludeISOsCheckbox, 3, 1); 453 } 420 454 421 455 /* Create placeholder: */ … … 424 458 { 425 459 /* Add into layout: */ 426 pSettingsLayout1->addWidget(pPlaceholder, 3, 0, 1, 2);460 pSettingsLayout1->addWidget(pPlaceholder, 4, 0, 1, 2); 427 461 } 428 462 } … … 531 565 registerField("format", this, "format"); 532 566 registerField("manifestSelected", this, "manifestSelected"); 567 registerField("includeISOsSelected", this, "includeISOsSelected"); 533 568 } 534 569 … … 582 617 m_pManifestCheckbox->setToolTip(UIWizardExportApp::tr("Create a Manifest file for automatic data integrity checks on import.")); 583 618 m_pManifestCheckbox->setText(UIWizardExportApp::tr("Write &Manifest file")); 619 m_pIncludeISOsCheckbox->setToolTip(UIWizardExportApp::tr("Include ISO image files into exported VM archive.")); 620 m_pIncludeISOsCheckbox->setText(UIWizardExportApp::tr("Include &ISO image files")); 584 621 585 622 /* Translate Provider combo-box: */ … … 623 660 /* Refresh manifest check-box access: */ 624 661 refreshManifestCheckBoxAccess(); 662 /* Refresh include ISOs check-box access: */ 663 refreshIncludeISOsCheckBoxAccess(); 625 664 } 626 665 … … 701 740 refreshFileSelectorExtension(); 702 741 refreshManifestCheckBoxAccess(); 742 refreshIncludeISOsCheckBoxAccess(); 703 743 } 704 744 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.h
r73072 r73085 64 64 /** Refresh Manifest check-box access. */ 65 65 void refreshManifestCheckBoxAccess(); 66 /** Refresh Include ISOs check-box access. */ 67 void refreshIncludeISOsCheckBoxAccess(); 66 68 67 69 /** Updates format combo tool-tips. */ … … 88 90 void setManifestSelected(bool fChecked); 89 91 92 /** Returns whether include ISOs selected. */ 93 bool isIncludeISOsSelected() const; 94 /** Defines whether include ISOs @a fSelected. */ 95 void setIncludeISOsSelected(bool fChecked); 96 90 97 /** Returns provider. */ 91 98 QString provider() const; … … 123 130 /** Holds the manifest check-box instance. */ 124 131 QCheckBox *m_pManifestCheckbox; 132 /** Holds the include ISOs check-box instance. */ 133 QCheckBox *m_pIncludeISOsCheckbox; 125 134 126 135 /** Holds the provider combo-box label instance. */ … … 145 154 Q_PROPERTY(QString format READ format WRITE setFormat); 146 155 Q_PROPERTY(bool manifestSelected READ isManifestSelected WRITE setManifestSelected); 156 Q_PROPERTY(bool includeISOsSelected READ isIncludeISOsSelected WRITE setIncludeISOsSelected); 147 157 Q_PROPERTY(QString provider READ provider WRITE setProvider); 148 158 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp
r73072 r73085 221 221 pSettingsLayout1->addWidget(m_pManifestCheckbox, 2, 1); 222 222 } 223 /* Create include ISOs check-box: */ 224 m_pIncludeISOsCheckbox = new QCheckBox; 225 if (m_pIncludeISOsCheckbox) 226 { 227 /* Add into layout: */ 228 pSettingsLayout1->addWidget(m_pIncludeISOsCheckbox, 3, 1); 229 } 223 230 224 231 /* Create placeholder: */ … … 227 234 { 228 235 /* Add into layout: */ 229 pSettingsLayout1->addWidget(pPlaceholder, 3, 0, 1, 2);236 pSettingsLayout1->addWidget(pPlaceholder, 4, 0, 1, 2); 230 237 } 231 238 } … … 358 365 registerField("format", this, "format"); 359 366 registerField("manifestSelected", this, "manifestSelected"); 367 registerField("includeISOsSelected", this, "includeISOsSelected"); 360 368 registerField("applianceWidget", this, "applianceWidget"); 361 369 } … … 417 425 m_pManifestCheckbox->setToolTip(UIWizardExportApp::tr("Create a Manifest file for automatic data integrity checks on import.")); 418 426 m_pManifestCheckbox->setText(UIWizardExportApp::tr("Write &Manifest file")); 427 m_pIncludeISOsCheckbox->setToolTip(UIWizardExportApp::tr("Include ISO image files into exported VM archive.")); 428 m_pIncludeISOsCheckbox->setText(UIWizardExportApp::tr("Include &ISO image files")); 419 429 420 430 /* Translate Provider combo-box: */ … … 455 465 /* Refresh manifest check-box access: */ 456 466 refreshManifestCheckBoxAccess(); 467 /* Refresh include ISOs check-box access: */ 468 refreshIncludeISOsCheckBoxAccess(); 457 469 458 470 /* Refresh appliance settings: */ … … 543 555 refreshFileSelectorExtension(); 544 556 refreshManifestCheckBoxAccess(); 557 refreshIncludeISOsCheckBoxAccess(); 545 558 } 546 559 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.h
r73072 r73085 44 44 Q_PROPERTY(QString format READ format WRITE setFormat); 45 45 Q_PROPERTY(bool manifestSelected READ isManifestSelected WRITE setManifestSelected); 46 Q_PROPERTY(bool includeISOsSelected READ isIncludeISOsSelected WRITE setIncludeISOsSelected); 46 47 Q_PROPERTY(ExportAppliancePointer applianceWidget READ applianceWidget); 47 48
Note:
See TracChangeset
for help on using the changeset viewer.