Changeset 3947 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 31, 2007 6:03:55 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 23362
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h
r3943 r3947 218 218 void remindAboutWrongColorDepth (ulong aRealBPP, ulong aWantedBPP); 219 219 220 int remindAboutUnsetHD (QWidget *aParent); 221 220 222 void cannotRunInSelectorMode(); 221 223 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp
r3943 r3947 1573 1573 } 1574 1574 1575 int VBoxProblemReporter::remindAboutUnsetHD (QWidget *aParent) 1576 { 1577 return message ( 1578 aParent, 1579 Warning, 1580 tr ("<p>You didn't attach any hard disk to the created virtual machine. " 1581 "As a result, the machine will not be able to boot unless you attach " 1582 "a hard disk with the guest operating system or some other bootable " 1583 "media to it later using the machine settings dialog or the First " 1584 "Run Wizard.</p><p>Do you want to continue?</p>"), 1585 0, /* autoConfirmId */ 1586 QIMessageBox::Yes | QIMessageBox::Default, 1587 QIMessageBox::No | QIMessageBox::Escape); 1588 } 1589 1575 1590 void VBoxProblemReporter::cannotRunInSelectorMode() 1576 1591 { -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxNewVMWzd.ui.h
r3802 r3947 243 243 if (page == pageSummary) 244 244 { 245 if (!mediaCombo->currentItem()) 246 { 247 int result = vboxProblem().remindAboutUnsetHD (this); 248 if (result == QIMessageBox::No) 249 return; 250 } 251 245 252 /* compose summary */ 246 253 QString summary = QString (tr ( -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMFirstRunWzd.ui
r2988 r3947 106 106 </property> 107 107 </widget> 108 <widget class="QLabel"> 109 <property name="name"> 110 <cstring>txWelcomeHD</cstring> 111 </property> 112 <property name="sizePolicy"> 113 <sizepolicy> 114 <hsizetype>1</hsizetype> 115 <vsizetype>0</vsizetype> 116 <horstretch>0</horstretch> 117 <verstretch>0</verstretch> 118 </sizepolicy> 119 </property> 120 <property name="text"> 121 <string><p>You have started a newly created virtual machine for the first time. This wizard will help you to perform the steps necessary for booting an operation system of your choice into the virtual machine.</p><p>Note that you will not be able to install an operating system into this virtual machine right now because you did not attach any hard disk to it. If this is not what you want, you can cancel execution of this wizard, select <b>Settings</b> from the <b>Machine</b> menu of the main VirtualBox window to access the settings dialog of this machine and change the hard disk configuration.</p><p>Use the <b>Next</b> button to go to the next page of the wizard and the <b>Back</b> button to return to the previous page. You can also press <b>Cancel</b> if you want to cancel execution of this wizard.</p></string> 122 </property> 123 <property name="alignment"> 124 <set>WordBreak|AlignTop</set> 125 </property> 126 </widget> 108 127 <spacer> 109 128 <property name="name"> … … 210 229 </property> 211 230 </widget> 231 <widget class="QLabel"> 232 <property name="name"> 233 <cstring>txTypeHD</cstring> 234 </property> 235 <property name="sizePolicy"> 236 <sizepolicy> 237 <hsizetype>1</hsizetype> 238 <vsizetype>0</vsizetype> 239 <horstretch>0</horstretch> 240 <verstretch>0</verstretch> 241 </sizepolicy> 242 </property> 243 <property name="text"> 244 <string><p>Select the type of the media you would like to use for booting an operating system.</p></string> 245 </property> 246 <property name="alignment"> 247 <set>WordBreak|AlignTop</set> 248 </property> 249 </widget> 212 250 <widget class="QButtonGroup"> 213 251 <property name="name"> … … 271 309 <property name="text"> 272 310 <string><p>Select the media which contains the setup program of the operating system you want to install. This media must be bootable, otherwise the setup program will not be able to start.</p></string> 311 </property> 312 <property name="alignment"> 313 <set>WordBreak|AlignTop</set> 314 </property> 315 </widget> 316 <widget class="QLabel"> 317 <property name="name"> 318 <cstring>txSourceHD</cstring> 319 </property> 320 <property name="sizePolicy"> 321 <sizepolicy> 322 <hsizetype>1</hsizetype> 323 <vsizetype>0</vsizetype> 324 <horstretch>0</horstretch> 325 <verstretch>0</verstretch> 326 </sizepolicy> 327 </property> 328 <property name="text"> 329 <string><p>Select the media that contains the operating system you want to work with. This media must be bootable, otherwise the operating system will not be able to start.</p></string> 273 330 </property> 274 331 <property name="alignment"> … … 497 554 <widget class="QLabel"> 498 555 <property name="name"> 556 <cstring>txSummaryHdrHD</cstring> 557 </property> 558 <property name="sizePolicy"> 559 <sizepolicy> 560 <hsizetype>1</hsizetype> 561 <vsizetype>0</vsizetype> 562 <horstretch>0</horstretch> 563 <verstretch>0</verstretch> 564 </sizepolicy> 565 </property> 566 <property name="text"> 567 <string><p>You have selected the following media to boot an operating system from:</p></string> 568 </property> 569 <property name="alignment"> 570 <set>WordBreak|AlignTop</set> 571 </property> 572 </widget> 573 <widget class="QLabel"> 574 <property name="name"> 499 575 <cstring>txSummaryFtr</cstring> 500 576 </property> … … 509 585 <property name="text"> 510 586 <string><p>If the above is correct, press the <b>Finish</b> button. Once you press it, the selected media will be temporarily mounted on the virtual machine and the machine will start execution.</p><p>Please note that when you close the virtual machine, the specified media will be automatically unmounted and the boot device will be set back to the first hard disk.</p><p>Depending on the type of the setup program, you may need to manually unmount (eject) the media after the setup program reboots the virtual machine, to prevent the installation process from starting again. You can do this by selecting the corresponding <b>Unmount...</b> action in the <b>Devices</b> menu.</p></string> 587 </property> 588 <property name="alignment"> 589 <set>WordBreak|AlignTop</set> 590 </property> 591 </widget> 592 <widget class="QLabel"> 593 <property name="name"> 594 <cstring>txSummaryFtrHD</cstring> 595 </property> 596 <property name="sizePolicy"> 597 <sizepolicy> 598 <hsizetype>1</hsizetype> 599 <vsizetype>0</vsizetype> 600 <horstretch>0</horstretch> 601 <verstretch>0</verstretch> 602 </sizepolicy> 603 </property> 604 <property name="text"> 605 <string><p>If the above is correct, press the <b>Finish</b> button. Once you press it, the selected media will be mounted on the virtual machine and the machine will start execution.</p></string> 511 606 </property> 512 607 <property name="alignment"> … … 598 693 <functions> 599 694 <function access="private">init()</function> 600 <function>setup( CMachine & )</function>695 <function>setup( const CMachine & )</function> 601 696 <function access="private">showEvent( QShowEvent* )</function> 602 697 <function>showPage( QWidget* )</function> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMFirstRunWzd.ui.h
r3138 r3947 65 65 teSummary->setReadOnly (TRUE); 66 66 teSummary->setPaper (pageSummary->backgroundBrush()); 67 ltSummary->insertWidget ( 1, teSummary);67 ltSummary->insertWidget (2, teSummary); 68 68 69 69 /* setup connections and set validation for pages … … 88 88 89 89 /* setup minimum width for the sizeHint to be calculated correctly */ 90 int wid = widthSpacer->minimumSize().width() ;90 int wid = widthSpacer->minimumSize().width() + 50; 91 91 txWelcome->setMinimumWidth (wid); 92 92 txType->setMinimumWidth (wid); … … 94 94 txSummaryHdr->setMinimumWidth (wid); 95 95 txSummaryFtr->setMinimumWidth (wid); 96 txWelcomeHD->setMinimumWidth (wid); 97 txTypeHD->setMinimumWidth (wid); 98 txSourceHD->setMinimumWidth (wid); 99 txSummaryHdrHD->setMinimumWidth (wid); 100 txSummaryFtrHD->setMinimumWidth (wid); 96 101 97 102 /* media page */ … … 101 106 102 107 103 void VBoxVMFirstRunWzd::setup ( CMachine &aMachine)108 void VBoxVMFirstRunWzd::setup (const CMachine &aMachine) 104 109 { 105 110 machine = aMachine; 111 112 CHardDiskAttachmentEnumerator en = machine.GetHardDiskAttachments().Enumerate(); 113 if (en.HasMore()) 114 { 115 txWelcomeHD->setHidden (true); 116 txTypeHD->setHidden (true); 117 txSourceHD->setHidden (true); 118 txSummaryHdrHD->setHidden (true); 119 txSummaryFtrHD->setHidden (true); 120 } 121 else 122 { 123 txWelcome->setHidden (true); 124 txType->setHidden (true); 125 txSource->setHidden (true); 126 txSummaryHdr->setHidden (true); 127 txSummaryFtr->setHidden (true); 128 } 106 129 } 107 130
Note:
See TracChangeset
for help on using the changeset viewer.