VBoxNewHDWzd :mode=html:tabSize=4:indentSize=4:noTabs=true: :folding=explicit:collapseFolds=1: Copyright (C) 2006-2007 Sun Microsystems, Inc. This file is part of VirtualBox Open Source Edition (OSE), as available from http://www.virtualbox.org. This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation, in version 2 as it comes in the "COPYING" file of the VirtualBox OSE distribution. VirtualBox OSE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, CA 95054 USA or visit http://www.sun.com if you need additional information or have any questions. VBoxNewHDWzd 0 0 542 499 Create New Virtual Disk Arial 12 1 pageWelcome Welcome to the Create New Virtual Disk Wizard! unnamed 20 Minimum pmWelcome 4 5 0 0 vmw_new_harddisk.png AlignTop layout33 unnamed txWelcome 1 5 0 0 <p>This wizard will help you to create a new virtual hard disk image for your virtual machine.</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.</p> WordBreak|AlignTop spacer30 Vertical Expanding 0 0 widthSpacer Horizontal MinimumExpanding 400 1 pageType Virtual Disk Image Type unnamed 20 Minimum pmType 4 5 0 0 vmw_new_harddisk.png AlignTop layout12 unnamed 10 textLabel1_2 1 5 0 0 <p>Select the type of virtual hard disk image you want to create.</p> <p>A <b>dynamically expanding image</b> initially occupies a very small amount of space on your physical hard disk. It will grow dynamically (up to the size specified) as the Guest OS claims disk space.</p> <p>A <b>fixed-size image</b> does not grow. It is stored in a file of approximately the same size as the size of the virtual hard disk. The creation of a fixed-size image may take a long time depending on the image size and the write performance of your harddisk.</p> WordBreak|AlignTop bgType Image Type true unnamed rbDynamicType &Dynamically expanding image true rbFixedType &Fixed-size image spacer10 Vertical Expanding 0 0 pageNameAndSize Virtual Disk Location and Size unnamed 20 pmNameAndSize 4 5 0 0 vmw_new_harddisk.png AlignTop layout36 unnamed 10 txNameComment 1 5 0 0 <p>Press the <b>Select</b> button to select the location and name of the file to store the virtual hard disk image or type a file name in the entry field.</p> WordBreak|AlignTop groupBox1 &Image File Name unnamed leName LineEditPanel Sunken tbNameSelect TabFocus select_file_16px.png Select true txSizeComment 1 5 0 0 <p>Select the size of the virtual hard disk image in megabytes. This size will be reported to the Guest OS as the size of the virtual hard disk.</p> WordBreak|AlignTop groupBox3 Image &Size unnamed layout15_2 unnamed 0 slSize 7 0 10 0 4 384 4 32 Horizontal Below 32 layout14_2 unnamed txSizeMin WordBreak|AlignVCenter|AlignLeft spacer8_2 Horizontal Expanding 40 20 txSizeMax WordBreak|AlignVCenter|AlignRight layout8 unnamed leSize 4 0 0 0 spacer9_2 Vertical Minimum 20 16 spacer37 Vertical Expanding 0 0 pageSummary Summary unnamed 20 Minimum pmSummary 4 5 0 0 vmw_new_harddisk.png AlignTop summaryLayout unnamed 15 txSummaryHdr 1 5 0 0 You are going to create a new virtual hard disk image with the following parameters: WordBreak|AlignTop txSummaryFtr 1 5 0 0 If the above settings are correct, press the <b>Finish</b> button. Once you press it, a new hard disk image will be created. WordBreak|AlignTop spacer45 Vertical Expanding 0 0 tbNameSelect clicked() VBoxNewHDWzd tbNameSelect_clicked() slSize valueChanged(int) VBoxNewHDWzd slSize_valueChanged(int) leSize textChanged(const QString&) VBoxNewHDWzd leSize_textChanged(const QString&) leName tbNameSelect slSize leSize qfiledialog.h QIWidgetValidator.h COMDefs.h VBoxUtils.h VBoxGlobal.h VBoxProblemReporter.h qvalidator.h qlocale.h class QITextEdit QIWidgetValidator *wvalNameAndSize; CHardDisk chd; int sliderScale; Q_UINT64 maxVDISize; Q_UINT64 currentSize; QITextEdit *teSummary; enableNext( const QIWidgetValidator * wval ) revalidate( QIWidgetValidator * ) slSize_valueChanged( int val ) leSize_textChanged( const QString & text ) tbNameSelect_clicked() init() showEvent( QShowEvent * ) setRecommendedFileName( const QString & aName ) setRecommendedSize( Q_UINT64 aSize ) imageFileName() imageSize() isDynamicImage() hardDisk() { return chd; } showPage( QWidget * page ) updateSizeToolTip (Q_UINT64) accept() createHardDisk()