VBoxNewHDWzd.ui revision 2162ed290319349d7c9548c189f1730e594e1a2c
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>VBoxNewHDWzd</class>
<comment>
:mode=html:tabSize=4:indentSize=4:noTabs=true:
:folding=explicit:collapseFolds=1:
# Copyright (C) 2006 InnoTek Systemberatung GmbH
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# General Public License 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.
#
# If you received this file as part of a commercial VirtualBox
# distribution, then only the terms of your commercial VirtualBox
# license agreement apply instead of the previous paragraph.
</comment>
<widget class="QWizard">
<property name="name">
<cstring>VBoxNewHDWzd</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>520</width>
<height>400</height>
</rect>
</property>
<property name="caption">
<string>Create New Virtual Disk</string>
</property>
<property name="titleFont">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
<bold>1</bold>
</font>
</property>
<widget class="QWidget">
<property name="name">
<cstring>pageWelcome</cstring>
</property>
<attribute name="title">
<string>Welcome to the Create New Virtual Disk Wizard!</string>
</attribute>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="spacing">
<number>20</number>
</property>
<property name="resizeMode">
<enum>Minimum</enum>
</property>
<widget class="QLabel">
<property name="name">
<cstring>pmWelcome</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>4</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="pixmap">
</property>
<property name="alignment">
<set>AlignTop</set>
</property>
</widget>
<widget class="QLabel">
<property name="name">
<cstring>txWelcome</cstring>
</property>
<property name="text">
<string><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></string>
</property>
<property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
</hbox>
</widget>
<widget class="QWidget">
<property name="name">
<cstring>pageType</cstring>
</property>
<attribute name="title">
<string>Virtual Disk Image Type</string>
</attribute>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="spacing">
<number>20</number>
</property>
<widget class="QLabel">
<property name="name">
<cstring>pmType</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>4</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="pixmap">
</property>
<property name="alignment">
<set>AlignTop</set>
</property>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout12</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="spacing">
<number>10</number>
</property>
<widget class="QLabel">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
<property name="text">
<string><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 makes the usage of the disk space.</p>
<p>A <b>fixed-size image</b> does not grow up. It is stored in the file of approximately
the same size as the size of the virtual hard disk.</p></string>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
<widget class="QButtonGroup">
<property name="name">
<cstring>bgType</cstring>
</property>
<property name="title">
<string>Image Type</string>
</property>
<property name="exclusive">
<bool>true</bool>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QRadioButton">
<property name="name">
<cstring>rbDynamicType</cstring>
</property>
<property name="text">
<string>&Dynamically expanding image</string>
</property>
<property name="accel">
<string>Alt+D</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<widget class="QRadioButton">
<property name="name">
<cstring>rbFixedType</cstring>
</property>
<property name="text">
<string>&Fixed-size image</string>
</property>
<property name="accel">
<string>Alt+F</string>
</property>
</widget>
</vbox>
</widget>
<spacer>
<property name="name">
<cstring>spacer10</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>90</height>
</size>
</property>
</spacer>
</vbox>
</widget>
</hbox>
</widget>
<widget class="QWidget">
<property name="name">
<cstring>pageNameAndSize</cstring>
</property>
<attribute name="title">
<string>Virtual Disk Location and Size</string>
</attribute>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="spacing">
<number>20</number>
</property>
<widget class="QLabel" row="0" column="0">
<property name="name">
<cstring>pmNameAndSize</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>4</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="pixmap">
</property>
<property name="alignment">
<set>AlignTop</set>
</property>
</widget>
<widget class="QLayoutWidget" row="0" column="1">
<property name="name">
<cstring>layout36</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="spacing">
<number>10</number>
</property>
<widget class="QLabel">
<property name="name">
<cstring>txNameComment</cstring>
</property>
<property name="text">
<string><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></string>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
<widget class="QGroupBox">
<property name="name">
<cstring>groupBox1</cstring>
</property>
<property name="title">
<string>&Image File Name</string>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLineEdit">
<property name="name">
<cstring>leName</cstring>
</property>
<property name="frameShape">
<enum>LineEditPanel</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
</widget>
<widget class="QToolButton">
<property name="name">
<cstring>tbNameSelect</cstring>
</property>
<property name="focusPolicy">
<enum>TabFocus</enum>
</property>
<property name="text">
<string></string>
</property>
<property name="iconSet">
</property>
<property name="textLabel">
<string>Select</string>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</hbox>
</widget>
<widget class="QLabel">
<property name="name">
<cstring>txSizeComment</cstring>
</property>
<property name="text">
<string><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></string>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
<widget class="QGroupBox">
<property name="name">
<cstring>groupBox3</cstring>
</property>
<property name="title">
<string>Image &Size</string>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout15_2</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="spacing">
<number>0</number>
</property>
<widget class="QSlider">
<property name="name">
<cstring>slSize</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>10</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minValue">
<number>4</number>
</property>
<property name="maxValue">
<number>384</number>
</property>
<property name="lineStep">
<number>4</number>
</property>
<property name="pageStep">
<number>32</number>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="tickmarks">
<enum>Below</enum>
</property>
<property name="tickInterval">
<number>32</number>
</property>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout14_2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>txSizeMin</cstring>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer8_2</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QLabel">
<property name="name">
<cstring>txSizeMax</cstring>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter|AlignRight</set>
</property>
</widget>
</hbox>
</widget>
</vbox>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout8</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLineEdit">
<property name="name">
<cstring>leSize</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>4</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer9_2</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Minimum</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
</vbox>
</widget>
</hbox>
</widget>
<spacer>
<property name="name">
<cstring>spacer37</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
</grid>
</widget>
<widget class="QWidget">
<property name="name">
<cstring>pageSummary</cstring>
</property>
<attribute name="title">
<string>Summary</string>
</attribute>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="spacing">
<number>20</number>
</property>
<widget class="QLabel">
<property name="name">
<cstring>pmSummary</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>4</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="pixmap">
</property>
<property name="alignment">
<set>AlignTop</set>
</property>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout15</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>txSummaryHdr</cstring>
</property>
<property name="text">
<string>You are going to create a new virtual hard disk image with the following parameters:</string>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
<widget class="QTextEdit">
<property name="name">
<cstring>teSummary</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>1</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>NoFrame</enum>
</property>
<property name="wordWrap">
<enum>NoWrap</enum>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLabel">
<property name="name">
<cstring>txSummaryFtr</cstring>
</property>
<property name="text">
<string>If the above settings are correct, press the <b>Finish</b> button.
Once you press it, a new hard disk image will be created.
</string>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer45</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
</hbox>
</widget>
</widget>
<connections>
<connection>
<sender>tbNameSelect</sender>
<signal>clicked()</signal>
<receiver>VBoxNewHDWzd</receiver>
<slot>tbNameSelect_clicked()</slot>
</connection>
<connection>
<sender>slSize</sender>
<signal>valueChanged(int)</signal>
<receiver>VBoxNewHDWzd</receiver>
<slot>slSize_valueChanged(int)</slot>
</connection>
<connection>
<sender>leSize</sender>
<signal>textChanged(const QString&)</signal>
<receiver>VBoxNewHDWzd</receiver>
<slot>leSize_textChanged(const QString&)</slot>
</connection>
</connections>
<tabstops>
<tabstop>leName</tabstop>
<tabstop>slSize</tabstop>
<tabstop>leSize</tabstop>
</tabstops>
<includes>
</includes>
<variables>
<variable access="private">QIWidgetValidator *wvalNameAndSize;</variable>
<variable access="private">CHardDisk chd;</variable>
<variable access="private">int sliderStep;</variable>
<variable access="private">Q_UINT64 MaxVDISize;</variable>
<variable access="private">Q_UINT64 currentSize;</variable>
</variables>
<slots>
<slot>enableNext( const QIWidgetValidator * wval )</slot>
<slot>revalidate( QIWidgetValidator * )</slot>
<slot>slSize_valueChanged( int val )</slot>
<slot>leSize_textChanged( const QString & text )</slot>
<slot>tbNameSelect_clicked()</slot>
</slots>
<functions>
<function access="private">init()</function>
<function>setRecommendedFileName( const QString & aName )</function>
<function>setRecommendedSize( ulong aSize )</function>
<function returnType="QString">imageFileName()</function>
<function returnType="Q_UINT64">imageSize()</function>
<function returnType="bool">isDynamicImage()</function>
<function returnType="CHardDisk">hardDisk() { return chd; }</function>
<function>accept()</function>
<function access="private" returnType="bool">createHardDisk()</function>
<function>showPage( QWidget * page )</function>
</functions>
<pixmapinproject/>
<layoutdefaults spacing="6" margin="11"/>
</UI>