VBoxNewHDWzd :mode=html:tabSize=4:indentSize=4:noTabs=true: :folding=explicit:collapseFolds=1: Copyright (C) 2006-2008 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 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 Hard Disk Storage 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 you want to create.</p> <p>A <b>dynamically expanding storage</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 storage</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 storage may take a long time depending on the storage size and the write performance of your harddisk.</p> WordBreak|AlignTop bgType Storage Type true unnamed rbDynamicType &Dynamically expanding storage true rbFixedType &Fixed-size storage 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 of a file to store the hard disk data or type a file name in the entry field.</p> WordBreak|AlignTop groupBox1 &Location 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 in megabytes. This size will be reported to the Guest OS as the maximum size of this hard disk.</p> WordBreak|AlignTop groupBox3 &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 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 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 iprt/path.h class QITextEdit QIWidgetValidator *mWValNameAndSize; CHardDisk2 mHD; int mSliderScale; Q_UINT64 mMaxVDISize; Q_UINT64 mCurrentSize; QITextEdit *mSummaryText; enableNext( const QIWidgetValidator * ) revalidate( QIWidgetValidator * ) slSize_valueChanged( int ) leSize_textChanged( const QString & ) tbNameSelect_clicked() init() showEvent( QShowEvent * ) setRecommendedFileName( const QString & aName ) setRecommendedSize( Q_UINT64 aSize ) location() isDynamicStorage() hardDisk() { return mHD; } showPage( QWidget * ) updateSizeToolTip( Q_UINT64 ) accept() createHardDisk()