Changeset 21305 in vbox
- Timestamp:
- Jul 7, 2009 10:30:39 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxVMSettingsSystem.h
r21194 r21305 78 78 QIWidgetValidator *mValidator; 79 79 80 uint mMinGuestRAM;81 uint mMaxGuestRAM;82 80 uint mMinGuestCPU; 83 81 uint mMaxGuestCPU; 84 85 int mMaxRAMAllowed;86 int mMaxRAMOptimum;87 82 }; 88 83 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxNewVMWzd.cpp
r19239 r21305 28 28 #include "VBoxMediaManagerDlg.h" 29 29 30 /**31 * Calculates a suitable page step size for the given max value.32 * The returned size is so that there will be no more than 32 pages.33 * The minimum returned page size is 4.34 */35 static int calcPageStep (int aMax)36 {37 /* Reasonable max. number of page steps is 32 */38 uint page = ((uint) aMax + 31) / 32;39 /* Make it a power of 2 */40 uint p = page, p2 = 0x1;41 while ((p >>= 1))42 p2 <<= 1;43 if (page != p2)44 p2 <<= 1;45 if (p2 < 4)46 p2 = 4;47 return (int) p2;48 }49 50 51 30 VBoxNewVMWzd::VBoxNewVMWzd (QWidget *aParent) 52 31 : QIWithRetranslateUI<QIAbstractWizard> (aParent) … … 67 46 68 47 /* Memory page */ 69 CSystemProperties sysProps = vboxGlobal().virtualBox().GetSystemProperties();70 const uint MinRAM = sysProps.GetMinGuestRAM();71 const uint MaxRAM = sysProps.GetMaxGuestRAM();72 mSlRAM->setPageStep (calcPageStep (MaxRAM));73 mSlRAM->setSingleStep (mSlRAM->pageStep() / 4);74 mSlRAM->setTickInterval (mSlRAM->pageStep());75 mSlRAM->setRange ((MinRAM / mSlRAM->pageStep()) * mSlRAM->pageStep(), MaxRAM);76 48 mLeRAM->setFixedWidthByText ("99999"); 77 mLeRAM->setValidator (new QIntValidator ( MinRAM, MaxRAM, this));49 mLeRAM->setValidator (new QIntValidator (mSlRAM->minRAM(), mSlRAM->maxRAM(), this)); 78 50 79 51 mWvalMemory = new QIWidgetValidator (mPageMemory, this); … … 157 129 .arg (type.GetRecommendedHDD())); 158 130 159 CSystemProperties sysProps = vboxGlobal().virtualBox().GetSystemProperties();160 const uint MinRAM = sysProps.GetMinGuestRAM();161 const uint MaxRAM = sysProps.GetMaxGuestRAM();162 163 131 mTxRAMMin->setText (QString ("<qt>%1 %2</qt>") 164 .arg ( MinRAM).arg (tr ("MB", "megabytes")));132 .arg (mSlRAM->minRAM()).arg (tr ("MB", "megabytes"))); 165 133 mTxRAMMax->setText (QString ("<qt>%1 %2</qt>") 166 .arg ( MaxRAM).arg (tr ("MB", "megabytes")));134 .arg (mSlRAM->maxRAM()).arg (tr ("MB", "megabytes"))); 167 135 168 136 QWidget *page = mPageStack->currentWidget(); … … 236 204 if (mExistRadio->isChecked()) 237 205 mHDCombo->setFocus(); 238 206 239 207 mWvalHDD->revalidate(); 240 208 } … … 246 214 247 215 /* Do individual validations for pages */ 248 ulong memorySize = vboxGlobal().virtualBox().GetHost().GetMemorySize();249 ulong summarySize = (ulong)(mSlRAM->value()) +250 (ulong)(VBoxGlobal::requiredVideoMemory() / _1M);251 216 if (aWval->widget() == mPageMemory) 252 217 { 253 218 valid = true; 254 if ( summarySize > 0.75 * memorySize)219 if (mSlRAM->value() > (int)mSlRAM->maxRAMAlw()) 255 220 valid = false; 256 221 } … … 258 223 { 259 224 valid = true; 260 if ( (mGbHDA->isChecked()) 225 if ( (mGbHDA->isChecked()) 261 226 && (mHDCombo->id().isNull()) 262 227 && (mExistRadio->isChecked())) -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsSystem.cpp
r21194 r21305 28 28 #define ITEM_TYPE_ROLE Qt::UserRole + 1 29 29 30 /**31 * Calculates a suitable page step size for the given max value. The returned32 * size is so that there will be no more than 32 pages. The minimum returned33 * page size is 4.34 */35 static int calcPageStep (int aMax)36 {37 /* reasonable max. number of page steps is 32 */38 uint page = ((uint) aMax + 31) / 32;39 /* make it a power of 2 */40 uint p = page, p2 = 0x1;41 while ((p >>= 1))42 p2 <<= 1;43 if (page != p2)44 p2 <<= 1;45 if (p2 < 4)46 p2 = 4;47 return (int) p2;48 }49 50 30 VBoxVMSettingsSystem::VBoxVMSettingsSystem() 51 31 { … … 55 35 /* Setup constants */ 56 36 CSystemProperties sys = vboxGlobal().virtualBox().GetSystemProperties(); 57 mMinGuestRAM = sys.GetMinGuestRAM();58 mMaxGuestRAM = RT_MIN (RT_ALIGN (vboxGlobal().virtualBox().GetHost().GetMemorySize(), _1G / _1M), sys.GetMaxGuestRAM());59 37 uint hostCPUs = vboxGlobal().virtualBox().GetHost().GetProcessorCount(); 60 38 mMinGuestCPU = sys.GetMinGuestCPUCount(); 61 39 mMaxGuestCPU = RT_MIN (2 * hostCPUs, sys.GetMaxGuestCPUCount()); 62 40 63 /* Come up with some nice round percent boundraries relative to64 * the system memory. A max of 75% on a 256GB config is ridiculous,65 * even on an 8GB rig reserving 2GB for the OS is way to conservative.66 * The max numbers can be estimated using the following program:67 *68 * double calcMaxPct(uint64_t cbRam)69 * {70 * double cbRamOverhead = cbRam * 0.0390625; // 160 bytes per page.71 * double cbRamForTheOS = RT_MAX(RT_MIN(_512M, cbRam * 0.25), _64M);72 * double OSPct = (cbRamOverhead + cbRamForTheOS) * 100.0 / cbRam;73 * double MaxPct = 100 - OSPct;74 * return MaxPct;75 * }76 *77 * int main()78 * {79 * uint64_t cbRam = _1G;80 * for (; !(cbRam >> 33); cbRam += _1G)81 * printf("%8lluGB %.1f%% %8lluKB\n", cbRam >> 30, calcMaxPct(cbRam),82 * (uint64_t)(cbRam * calcMaxPct(cbRam) / 100.0) >> 20);83 * for (; !(cbRam >> 51); cbRam <<= 1)84 * printf("%8lluGB %.1f%% %8lluKB\n", cbRam >> 30, calcMaxPct(cbRam),85 * (uint64_t)(cbRam * calcMaxPct(cbRam) / 100.0) >> 20);86 * return 0;87 * }88 *89 * Note. We might wanna put these calculations somewhere global later. */90 91 /* System RAM amount test */92 ulong fullSize = vboxGlobal().virtualBox().GetHost().GetMemorySize();93 mMaxRAMAllowed = 0.75 * fullSize;94 mMaxRAMOptimum = 0.50 * fullSize;95 if (fullSize < 3072)96 /* done */;97 else if (fullSize < 4096) /* 3GB */98 mMaxRAMAllowed = 0.80 * fullSize;99 else if (fullSize < 6144) /* 4-5GB */100 {101 mMaxRAMAllowed = 0.84 * fullSize;102 mMaxRAMOptimum = 0.60 * fullSize;103 }104 else if (fullSize < 8192) /* 6-7GB */105 {106 mMaxRAMAllowed = 0.88 * fullSize;107 mMaxRAMOptimum = 0.65 * fullSize;108 }109 else if (fullSize < 16384) /* 8-15GB */110 {111 mMaxRAMAllowed = 0.90 * fullSize;112 mMaxRAMOptimum = 0.70 * fullSize;113 }114 else if (fullSize < 32768) /* 16-31GB */115 {116 mMaxRAMAllowed = 0.93 * fullSize;117 mMaxRAMOptimum = 0.75 * fullSize;118 }119 else if (fullSize < 65536) /* 32-63GB */120 {121 mMaxRAMAllowed = 0.94 * fullSize;122 mMaxRAMOptimum = 0.80 * fullSize;123 }124 else if (fullSize < 131072) /* 64-127GB */125 {126 mMaxRAMAllowed = 0.95 * fullSize;127 mMaxRAMOptimum = 0.85 * fullSize;128 }129 else /* 128GB- */130 {131 mMaxRAMAllowed = 0.96 * fullSize;132 mMaxRAMOptimum = 0.90 * fullSize;133 }134 135 41 /* Setup validators */ 136 mLeMemory->setValidator (new QIntValidator (m MinGuestRAM, mMaxGuestRAM, this));42 mLeMemory->setValidator (new QIntValidator (mSlMemory->minRAM(), mSlMemory->maxRAM(), this)); 137 43 mLeCPU->setValidator (new QIntValidator (mMinGuestCPU, mMaxGuestCPU, this)); 138 44 … … 169 75 ":/list_movedown_disabled_16px.png")); 170 76 171 /* Setup memory slider */172 mSlMemory->setPageStep (calcPageStep (mMaxGuestRAM));173 mSlMemory->setSingleStep (mSlMemory->pageStep() / 4);174 mSlMemory->setTickInterval (mSlMemory->pageStep());175 /* Setup the scale so that ticks are at page step boundaries */176 mSlMemory->setMinimum ((mMinGuestRAM / mSlMemory->pageStep()) * mSlMemory->pageStep());177 mSlMemory->setMaximum (mMaxGuestRAM);178 mSlMemory->setSnappingEnabled (true);179 mSlMemory->setOptimalHint (1, mMaxRAMOptimum);180 mSlMemory->setWarningHint (mMaxRAMOptimum, mMaxRAMAllowed);181 mSlMemory->setErrorHint (mMaxRAMAllowed, mMaxGuestRAM);182 77 /* Limit min/max. size of QLineEdit */ 183 78 mLeMemory->setFixedWidthByText (QString().fill ('8', 5)); … … 354 249 { 355 250 ulong fullSize = vboxGlobal().virtualBox().GetHost().GetMemorySize(); 356 if (mSlMemory->value() > mMaxRAMAllowed)251 if (mSlMemory->value() > (int)mSlMemory->maxRAMAlw()) 357 252 { 358 253 aWarning = tr ( … … 360 255 "(<b>%2</b>) to the virtual machine. Not enough memory is left " 361 256 "for your host operating system. Please select a smaller amount.") 362 .arg ((unsigned)qRound ((double)m MaxRAMAllowed/ fullSize * 100.0))257 .arg ((unsigned)qRound ((double)mSlMemory->maxRAMAlw() / fullSize * 100.0)) 363 258 .arg (vboxGlobal().formatSize ((uint64_t)fullSize * _1M)); 364 259 return false; 365 260 } 366 if (mSlMemory->value() > mMaxRAMOptimum)261 if (mSlMemory->value() > (int)mSlMemory->maxRAMOpt()) 367 262 { 368 263 aWarning = tr ( … … 370 265 "(<b>%2</b>) to the virtual machine. Not enough memory might be " 371 266 "left for your host operating system. Continue at your own risk.") 372 .arg ((unsigned)qRound ((double)m MaxRAMOptimum/ fullSize * 100.0))267 .arg ((unsigned)qRound ((double)mSlMemory->maxRAMOpt() / fullSize * 100.0)) 373 268 .arg (vboxGlobal().formatSize ((uint64_t)fullSize * _1M)); 374 269 return true; … … 465 360 466 361 /* Retranslate the memory slider legend */ 467 mLbMemoryMin->setText (tr ("<qt>%1 MB</qt>").arg (m MinGuestRAM));468 mLbMemoryMax->setText (tr ("<qt>%1 MB</qt>").arg (m MaxGuestRAM));362 mLbMemoryMin->setText (tr ("<qt>%1 MB</qt>").arg (mSlMemory->minRAM())); 363 mLbMemoryMax->setText (tr ("<qt>%1 MB</qt>").arg (mSlMemory->maxRAM())); 469 364 470 365 /* Retranslate the cpu slider legend */ -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxNewVMWzd.ui
r18080 r21305 1 <ui version="4.0" > 1 <?xml version="1.0" encoding="UTF-8"?> 2 <ui version="4.0"> 2 3 <comment> 3 VBox frontends: Qt4 GUI ( "VirtualBox"):4 VBox frontends: Qt4 GUI ("VirtualBox"): 4 5 5 6 Copyright (C) 2008 Sun Microsystems, Inc. … … 9 10 you can redistribute it and/or modify it under the terms of the GNU 10 11 General Public License (GPL) as published by the Free Software 11 Foundation, in version 2 as it comes in the "COPYING"file of the12 Foundation, in version 2 as it comes in the "COPYING" file of the 12 13 VirtualBox OSE distribution. VirtualBox OSE is distributed in the 13 14 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. … … 18 19 </comment> 19 20 <class>VBoxNewVMWzd</class> 20 <widget class="QDialog" name="VBoxNewVMWzd" 21 <property name="geometry" 21 <widget class="QDialog" name="VBoxNewVMWzd"> 22 <property name="geometry"> 22 23 <rect> 23 24 <x>0</x> 24 25 <y>0</y> 25 26 <width>516</width> 26 <height>4 17</height>27 <height>498</height> 27 28 </rect> 28 29 </property> 29 <property name="windowTitle" 30 <property name="windowTitle"> 30 31 <string>Create New Virtual Machine</string> 31 32 </property> 32 <layout class="QVBoxLayout" > 33 <property name="leftMargin" > 34 <number>0</number> 35 </property> 36 <property name="topMargin" > 37 <number>0</number> 38 </property> 39 <property name="rightMargin" > 40 <number>0</number> 41 </property> 42 <property name="bottomMargin" > 33 <layout class="QVBoxLayout"> 34 <property name="margin"> 43 35 <number>0</number> 44 36 </property> 45 37 <item> 46 <widget class="QStackedWidget" name="mPageStack" 47 <property name="currentIndex" 48 <number> 0</number>38 <widget class="QStackedWidget" name="mPageStack"> 39 <property name="currentIndex"> 40 <number>2</number> 49 41 </property> 50 <widget class="QWidget" name="mPageWelcome" 51 <layout class="QVBoxLayout" 52 <item> 53 <widget class="QLabel" name="mPageWelcomeHdr" 54 <property name="font" 42 <widget class="QWidget" name="mPageWelcome"> 43 <layout class="QVBoxLayout"> 44 <item> 45 <widget class="QLabel" name="mPageWelcomeHdr"> 46 <property name="font"> 55 47 <font> 56 48 <family>Arial</family> … … 60 52 </font> 61 53 </property> 62 <property name="text" 54 <property name="text"> 63 55 <string>Welcome to the New Virtual Machine Wizard!</string> 64 56 </property> … … 66 58 </item> 67 59 <item> 68 <widget class="Line" name="line11" 69 <property name="orientation" 60 <widget class="Line" name="line11"> 61 <property name="orientation"> 70 62 <enum>Qt::Horizontal</enum> 71 63 </property> … … 73 65 </item> 74 66 <item> 75 <layout class="QHBoxLayout" 76 <property name="spacing" 67 <layout class="QHBoxLayout"> 68 <property name="spacing"> 77 69 <number>10</number> 78 70 </property> 79 71 <item> 80 <widget class="QLabel" name="mLogoWelcome" 81 <property name="sizePolicy" 82 <sizepolicy vsizetype="Minimum" hsizetype="Maximum">72 <widget class="QLabel" name="mLogoWelcome"> 73 <property name="sizePolicy"> 74 <sizepolicy hsizetype="Maximum" vsizetype="Minimum"> 83 75 <horstretch>0</horstretch> 84 76 <verstretch>0</verstretch> 85 77 </sizepolicy> 86 78 </property> 87 <property name="autoFillBackground" 79 <property name="autoFillBackground"> 88 80 <bool>true</bool> 89 81 </property> 90 <property name="text" 82 <property name="text"> 91 83 <string/> 92 84 </property> 93 <property name="pixmap" 94 <pixmap resource="../VirtualBox.qrc" 95 </property> 96 <property name="alignment" 85 <property name="pixmap"> 86 <pixmap resource="../VirtualBox.qrc">:/vmw_new_welcome.png</pixmap> 87 </property> 88 <property name="alignment"> 97 89 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 98 90 </property> … … 100 92 </item> 101 93 <item> 102 <layout class="QVBoxLayout" 103 <property name="spacing" 94 <layout class="QVBoxLayout"> 95 <property name="spacing"> 104 96 <number>10</number> 105 97 </property> 106 98 <item> 107 <widget class="QILabel" name="mTextWelcome" 108 <property name="sizePolicy" 109 <sizepolicy vsizetype="Minimum" hsizetype="Minimum">99 <widget class="QILabel" name="mTextWelcome"> 100 <property name="sizePolicy"> 101 <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> 110 102 <horstretch>0</horstretch> 111 103 <verstretch>0</verstretch> 112 104 </sizepolicy> 113 105 </property> 114 <property name="minimumSize" 106 <property name="minimumSize"> 115 107 <size> 116 108 <width>300</width> … … 118 110 </size> 119 111 </property> 120 <property name="text" 121 <string><p >This wizard will guide you through the steps that are necessary to create a new virtual machine for VirtualBox.</p><p>Use the <b>Next</b> button to go the next page of the wizard and the <b>Back</b> button to return to the previous page.</p></string>122 </property> 123 <property name="wordWrap" 112 <property name="text"> 113 <string><p>This wizard will guide you through the steps that are necessary to create a new virtual machine for VirtualBox.</p><p>Use the <b>Next</b> button to go the next page of the wizard and the <b>Back</b> button to return to the previous page.</p></string> 114 </property> 115 <property name="wordWrap"> 124 116 <bool>true</bool> 125 117 </property> … … 128 120 <item> 129 121 <spacer> 130 <property name="orientation" 122 <property name="orientation"> 131 123 <enum>Qt::Vertical</enum> 132 124 </property> 133 <property name="sizeHint" >125 <property name="sizeHint" stdset="0"> 134 126 <size> 135 127 <width>0</width> … … 144 136 </item> 145 137 <item> 146 <widget class="Line" name="line12" 147 <property name="orientation" 138 <widget class="Line" name="line12"> 139 <property name="orientation"> 148 140 <enum>Qt::Horizontal</enum> 149 141 </property> … … 151 143 </item> 152 144 <item> 153 <layout class="QHBoxLayout" 145 <layout class="QHBoxLayout"> 154 146 <item> 155 147 <spacer> 156 <property name="orientation" 148 <property name="orientation"> 157 149 <enum>Qt::Horizontal</enum> 158 150 </property> 159 <property name="sizeHint" >151 <property name="sizeHint" stdset="0"> 160 152 <size> 161 153 <width>0</width> … … 166 158 </item> 167 159 <item> 168 <widget class="QPushButton" name="mBtnBack1" 169 <property name="enabled" 160 <widget class="QPushButton" name="mBtnBack1"> 161 <property name="enabled"> 170 162 <bool>false</bool> 171 163 </property> 172 <property name="text" 164 <property name="text"> 173 165 <string>< &Back</string> 174 166 </property> … … 176 168 </item> 177 169 <item> 178 <widget class="QPushButton" name="mBtnNext1" 179 <property name="text" 180 <string>&Next ></string>170 <widget class="QPushButton" name="mBtnNext1"> 171 <property name="text"> 172 <string>&Next ></string> 181 173 </property> 182 174 </widget> … … 184 176 <item> 185 177 <spacer> 186 <property name="orientation" 178 <property name="orientation"> 187 179 <enum>Qt::Horizontal</enum> 188 180 </property> 189 <property name="sizeType" 181 <property name="sizeType"> 190 182 <enum>QSizePolicy::Fixed</enum> 191 183 </property> 192 <property name="sizeHint" >184 <property name="sizeHint" stdset="0"> 193 185 <size> 194 186 <width>5</width> … … 199 191 </item> 200 192 <item> 201 <widget class="QPushButton" name="mBtnCancel1" 202 <property name="text" 193 <widget class="QPushButton" name="mBtnCancel1"> 194 <property name="text"> 203 195 <string>Cancel</string> 204 196 </property> … … 209 201 </layout> 210 202 </widget> 211 <widget class="QWidget" name="mPageNameAndOS" 212 <layout class="QVBoxLayout" 213 <item> 214 <widget class="QLabel" name="mPageNameAndOSHdr" 215 <property name="font" 203 <widget class="QWidget" name="mPageNameAndOS"> 204 <layout class="QVBoxLayout"> 205 <item> 206 <widget class="QLabel" name="mPageNameAndOSHdr"> 207 <property name="font"> 216 208 <font> 217 209 <family>Arial</family> … … 221 213 </font> 222 214 </property> 223 <property name="text" 215 <property name="text"> 224 216 <string>VM Name and OS Type</string> 225 217 </property> … … 227 219 </item> 228 220 <item> 229 <widget class="Line" name="line21" 230 <property name="orientation" 221 <widget class="Line" name="line21"> 222 <property name="orientation"> 231 223 <enum>Qt::Horizontal</enum> 232 224 </property> … … 234 226 </item> 235 227 <item> 236 <layout class="QHBoxLayout" 237 <property name="spacing" 228 <layout class="QHBoxLayout"> 229 <property name="spacing"> 238 230 <number>10</number> 239 231 </property> 240 232 <item> 241 <widget class="QLabel" name="mLogoNameAndOS" 242 <property name="sizePolicy" 243 <sizepolicy vsizetype="Minimum" hsizetype="Maximum">233 <widget class="QLabel" name="mLogoNameAndOS"> 234 <property name="sizePolicy"> 235 <sizepolicy hsizetype="Maximum" vsizetype="Minimum"> 244 236 <horstretch>0</horstretch> 245 237 <verstretch>0</verstretch> 246 238 </sizepolicy> 247 239 </property> 248 <property name="autoFillBackground" 240 <property name="autoFillBackground"> 249 241 <bool>true</bool> 250 242 </property> 251 <property name="text" 243 <property name="text"> 252 244 <string/> 253 245 </property> 254 <property name="pixmap" 255 <pixmap resource="../VirtualBox.qrc" 256 </property> 257 <property name="alignment" 246 <property name="pixmap"> 247 <pixmap resource="../VirtualBox.qrc">:/vmw_new_welcome.png</pixmap> 248 </property> 249 <property name="alignment"> 258 250 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 259 251 </property> … … 261 253 </item> 262 254 <item> 263 <layout class="QVBoxLayout" 264 <property name="spacing" 255 <layout class="QVBoxLayout"> 256 <property name="spacing"> 265 257 <number>10</number> 266 258 </property> 267 259 <item> 268 <widget class="QILabel" name="mTextNameAndOS" 269 <property name="sizePolicy" 270 <sizepolicy vsizetype="Minimum" hsizetype="Minimum">260 <widget class="QILabel" name="mTextNameAndOS"> 261 <property name="sizePolicy"> 262 <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> 271 263 <horstretch>0</horstretch> 272 264 <verstretch>0</verstretch> 273 265 </sizepolicy> 274 266 </property> 275 <property name="minimumSize" 267 <property name="minimumSize"> 276 268 <size> 277 269 <width>300</width> … … 279 271 </size> 280 272 </property> 281 <property name="text" 282 <string><p >Enter a name for the new virtual machine and select the type of the guest operating system you plan to install onto the virtual machine.</p><p>The name of the virtual machine usually indicates its software and hardware configuration. It will be used by all VirtualBox components to identify your virtual machine.</p></string>283 </property> 284 <property name="wordWrap" 273 <property name="text"> 274 <string><p>Enter a name for the new virtual machine and select the type of the guest operating system you plan to install onto the virtual machine.</p><p>The name of the virtual machine usually indicates its software and hardware configuration. It will be used by all VirtualBox components to identify your virtual machine.</p></string> 275 </property> 276 <property name="wordWrap"> 285 277 <bool>true</bool> 286 278 </property> … … 288 280 </item> 289 281 <item> 290 <widget class="QGroupBox" name="gbName" 291 <property name="sizePolicy" 292 <sizepolicy vsizetype="Fixed" hsizetype="Expanding">282 <widget class="QGroupBox" name="gbName"> 283 <property name="sizePolicy"> 284 <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 293 285 <horstretch>0</horstretch> 294 286 <verstretch>0</verstretch> 295 287 </sizepolicy> 296 288 </property> 297 <property name="title" 289 <property name="title"> 298 290 <string>N&ame</string> 299 291 </property> 300 <layout class="QHBoxLayout" 301 <property name="spacing" 292 <layout class="QHBoxLayout"> 293 <property name="spacing"> 302 294 <number>0</number> 303 295 </property> 304 <property name="leftMargin" 296 <property name="leftMargin"> 305 297 <number>9</number> 306 298 </property> 307 <property name="topMargin" 299 <property name="topMargin"> 308 300 <number>4</number> 309 301 </property> 310 <property name="rightMargin" 302 <property name="rightMargin"> 311 303 <number>9</number> 312 304 </property> 313 <property name="bottomMargin" 305 <property name="bottomMargin"> 314 306 <number>9</number> 315 307 </property> 316 308 <item> 317 <widget class="QLineEdit" name="mLeName" 309 <widget class="QLineEdit" name="mLeName"/> 318 310 </item> 319 311 </layout> … … 321 313 </item> 322 314 <item> 323 <widget class="QGroupBox" name="gbOSType" 324 <property name="sizePolicy" 325 <sizepolicy vsizetype="Fixed" hsizetype="Expanding">315 <widget class="QGroupBox" name="gbOSType"> 316 <property name="sizePolicy"> 317 <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 326 318 <horstretch>0</horstretch> 327 319 <verstretch>0</verstretch> 328 320 </sizepolicy> 329 321 </property> 330 <property name="title" 322 <property name="title"> 331 323 <string>OS &Type</string> 332 324 </property> 333 <layout class="QHBoxLayout" 334 <property name="topMargin" 325 <layout class="QHBoxLayout"> 326 <property name="topMargin"> 335 327 <number>4</number> 336 328 </property> 337 329 <item> 338 <widget class="VBoxOSTypeSelectorWidget" name="mOSTypeSelector" />330 <widget class="VBoxOSTypeSelectorWidget" name="mOSTypeSelector" native="true"/> 339 331 </item> 340 332 </layout> … … 343 335 <item> 344 336 <spacer> 345 <property name="orientation" 337 <property name="orientation"> 346 338 <enum>Qt::Vertical</enum> 347 339 </property> 348 <property name="sizeHint" >340 <property name="sizeHint" stdset="0"> 349 341 <size> 350 342 <width>0</width> … … 359 351 </item> 360 352 <item> 361 <widget class="Line" name="line22" 362 <property name="orientation" 353 <widget class="Line" name="line22"> 354 <property name="orientation"> 363 355 <enum>Qt::Horizontal</enum> 364 356 </property> … … 366 358 </item> 367 359 <item> 368 <layout class="QHBoxLayout" 360 <layout class="QHBoxLayout"> 369 361 <item> 370 362 <spacer> 371 <property name="orientation" 363 <property name="orientation"> 372 364 <enum>Qt::Horizontal</enum> 373 365 </property> 374 <property name="sizeHint" >366 <property name="sizeHint" stdset="0"> 375 367 <size> 376 368 <width>0</width> … … 381 373 </item> 382 374 <item> 383 <widget class="QPushButton" name="mBtnBack2" 384 <property name="text" 375 <widget class="QPushButton" name="mBtnBack2"> 376 <property name="text"> 385 377 <string>< &Back</string> 386 378 </property> … … 388 380 </item> 389 381 <item> 390 <widget class="QPushButton" name="mBtnNext2" 391 <property name="text" 392 <string>&Next ></string>382 <widget class="QPushButton" name="mBtnNext2"> 383 <property name="text"> 384 <string>&Next ></string> 393 385 </property> 394 386 </widget> … … 396 388 <item> 397 389 <spacer> 398 <property name="orientation" 390 <property name="orientation"> 399 391 <enum>Qt::Horizontal</enum> 400 392 </property> 401 <property name="sizeType" 393 <property name="sizeType"> 402 394 <enum>QSizePolicy::Fixed</enum> 403 395 </property> 404 <property name="sizeHint" >396 <property name="sizeHint" stdset="0"> 405 397 <size> 406 398 <width>5</width> … … 411 403 </item> 412 404 <item> 413 <widget class="QPushButton" name="mBtnCancel2" 414 <property name="text" 405 <widget class="QPushButton" name="mBtnCancel2"> 406 <property name="text"> 415 407 <string>Cancel</string> 416 408 </property> … … 421 413 </layout> 422 414 </widget> 423 <widget class="QWidget" name="mPageMemory" 424 <layout class="QVBoxLayout" 425 <item> 426 <widget class="QLabel" name="mPageMemoryHdr" 427 <property name="font" 415 <widget class="QWidget" name="mPageMemory"> 416 <layout class="QVBoxLayout"> 417 <item> 418 <widget class="QLabel" name="mPageMemoryHdr"> 419 <property name="font"> 428 420 <font> 429 421 <family>Arial</family> … … 433 425 </font> 434 426 </property> 435 <property name="text" 427 <property name="text"> 436 428 <string>Memory</string> 437 429 </property> … … 439 431 </item> 440 432 <item> 441 <widget class="Line" name="line31" 442 <property name="orientation" 433 <widget class="Line" name="line31"> 434 <property name="orientation"> 443 435 <enum>Qt::Horizontal</enum> 444 436 </property> … … 446 438 </item> 447 439 <item> 448 <layout class="QHBoxLayout" 449 <property name="spacing" 440 <layout class="QHBoxLayout"> 441 <property name="spacing"> 450 442 <number>10</number> 451 443 </property> 452 444 <item> 453 <widget class="QLabel" name="mLogoMemory" 454 <property name="sizePolicy" 455 <sizepolicy vsizetype="Minimum" hsizetype="Maximum">445 <widget class="QLabel" name="mLogoMemory"> 446 <property name="sizePolicy"> 447 <sizepolicy hsizetype="Maximum" vsizetype="Minimum"> 456 448 <horstretch>0</horstretch> 457 449 <verstretch>0</verstretch> 458 450 </sizepolicy> 459 451 </property> 460 <property name="autoFillBackground" 452 <property name="autoFillBackground"> 461 453 <bool>true</bool> 462 454 </property> 463 <property name="text" 455 <property name="text"> 464 456 <string/> 465 457 </property> 466 <property name="pixmap" 467 <pixmap resource="../VirtualBox.qrc" 468 </property> 469 <property name="alignment" 458 <property name="pixmap"> 459 <pixmap resource="../VirtualBox.qrc">:/vmw_new_welcome.png</pixmap> 460 </property> 461 <property name="alignment"> 470 462 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 471 463 </property> … … 473 465 </item> 474 466 <item> 475 <layout class="QVBoxLayout" 476 <property name="spacing" 467 <layout class="QVBoxLayout"> 468 <property name="spacing"> 477 469 <number>10</number> 478 470 </property> 479 471 <item> 480 <widget class="QILabel" name="mTextMemory" 481 <property name="sizePolicy" 482 <sizepolicy vsizetype="Minimum" hsizetype="Minimum">472 <widget class="QILabel" name="mTextMemory"> 473 <property name="sizePolicy"> 474 <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> 483 475 <horstretch>0</horstretch> 484 476 <verstretch>0</verstretch> 485 477 </sizepolicy> 486 478 </property> 487 <property name="minimumSize" 479 <property name="minimumSize"> 488 480 <size> 489 481 <width>300</width> … … 491 483 </size> 492 484 </property> 493 <property name="text" 494 <string><p >Select the amount of base memory (RAM) in megabytes to be allocated to the virtual machine.</p></string>495 </property> 496 <property name="wordWrap" 485 <property name="text"> 486 <string><p>Select the amount of base memory (RAM) in megabytes to be allocated to the virtual machine.</p></string> 487 </property> 488 <property name="wordWrap"> 497 489 <bool>true</bool> 498 490 </property> … … 500 492 </item> 501 493 <item> 502 <widget class="QILabel" name="mTextRAMBest" 503 <property name="sizePolicy" 504 <sizepolicy vsizetype="Minimum" hsizetype="Minimum">494 <widget class="QILabel" name="mTextRAMBest"> 495 <property name="sizePolicy"> 496 <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> 505 497 <horstretch>0</horstretch> 506 498 <verstretch>0</verstretch> 507 499 </sizepolicy> 508 500 </property> 509 <property name="minimumSize" 501 <property name="minimumSize"> 510 502 <size> 511 503 <width>300</width> … … 513 505 </size> 514 506 </property> 515 <property name="text" 507 <property name="text"> 516 508 <string/> 517 509 </property> 518 <property name="wordWrap" 510 <property name="wordWrap"> 519 511 <bool>true</bool> 520 512 </property> … … 522 514 </item> 523 515 <item> 524 <widget class="QGroupBox" name="gbMemory" 525 <property name="sizePolicy" 526 <sizepolicy vsizetype="Fixed" hsizetype="Expanding">516 <widget class="QGroupBox" name="gbMemory"> 517 <property name="sizePolicy"> 518 <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 527 519 <horstretch>0</horstretch> 528 520 <verstretch>0</verstretch> 529 521 </sizepolicy> 530 522 </property> 531 <property name="title" 523 <property name="title"> 532 524 <string>Base &Memory Size</string> 533 525 </property> 534 <layout class="QGridLayout" 535 <property name="topMargin" 526 <layout class="QGridLayout"> 527 <property name="topMargin"> 536 528 <number>4</number> 537 529 </property> 538 <item row="0" column="0" colspan="3" 539 <widget class=" QSlider" name="mSlRAM">540 <property name="sizePolicy" 541 <sizepolicy vsizetype="Fixed" hsizetype="Expanding">530 <item row="0" column="0" colspan="3"> 531 <widget class="VBoxGuestRAMSlider" name="mSlRAM"> 532 <property name="sizePolicy"> 533 <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 542 534 <horstretch>0</horstretch> 543 535 <verstretch>0</verstretch> 544 536 </sizepolicy> 545 537 </property> 546 <property name="minimumSize" 538 <property name="minimumSize"> 547 539 <size> 548 540 <width>0</width> … … 550 542 </size> 551 543 </property> 552 <property name="orientation" 544 <property name="orientation"> 553 545 <enum>Qt::Horizontal</enum> 554 546 </property> 555 <property name="tickPosition" 547 <property name="tickPosition"> 556 548 <enum>QSlider::TicksBelow</enum> 557 549 </property> 558 550 </widget> 559 551 </item> 560 <item row="0" column="3" 561 <widget class="QILineEdit" name="mLeRAM" 562 <property name="sizePolicy" 563 <sizepolicy vsizetype="Fixed" hsizetype="Preferred">552 <item row="0" column="3"> 553 <widget class="QILineEdit" name="mLeRAM"> 554 <property name="sizePolicy"> 555 <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 564 556 <horstretch>0</horstretch> 565 557 <verstretch>0</verstretch> … … 568 560 </widget> 569 561 </item> 570 <item row="0" column="4" 571 <widget class="QLabel" name="txRAM" 572 <property name="sizePolicy" 573 <sizepolicy vsizetype="Fixed" hsizetype="Fixed">562 <item row="0" column="4"> 563 <widget class="QLabel" name="txRAM"> 564 <property name="sizePolicy"> 565 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 574 566 <horstretch>0</horstretch> 575 567 <verstretch>0</verstretch> 576 568 </sizepolicy> 577 569 </property> 578 <property name="text" 570 <property name="text"> 579 571 <string>MB</string> 580 572 </property> 581 573 </widget> 582 574 </item> 583 <item row="1" column="0" 584 <widget class="QLabel" name="mTxRAMMin" 585 <property name="sizePolicy" 586 <sizepolicy vsizetype="Preferred" hsizetype="Minimum">575 <item row="1" column="0"> 576 <widget class="QLabel" name="mTxRAMMin"> 577 <property name="sizePolicy"> 578 <sizepolicy hsizetype="Minimum" vsizetype="Preferred"> 587 579 <horstretch>0</horstretch> 588 580 <verstretch>0</verstretch> 589 581 </sizepolicy> 590 582 </property> 591 <property name="text" 583 <property name="text"> 592 584 <string/> 593 585 </property> 594 <property name="alignment" 586 <property name="alignment"> 595 587 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 596 588 </property> 597 589 </widget> 598 590 </item> 599 <item row="1" column="2" 600 <widget class="QLabel" name="mTxRAMMax" 601 <property name="sizePolicy" 602 <sizepolicy vsizetype="Preferred" hsizetype="Minimum">591 <item row="1" column="2"> 592 <widget class="QLabel" name="mTxRAMMax"> 593 <property name="sizePolicy"> 594 <sizepolicy hsizetype="Minimum" vsizetype="Preferred"> 603 595 <horstretch>0</horstretch> 604 596 <verstretch>0</verstretch> 605 597 </sizepolicy> 606 598 </property> 607 <property name="text" 599 <property name="text"> 608 600 <string/> 609 601 </property> 610 <property name="alignment" 602 <property name="alignment"> 611 603 <set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set> 612 604 </property> 613 605 </widget> 614 606 </item> 615 <item row="1" column="1" 607 <item row="1" column="1"> 616 608 <spacer> 617 <property name="orientation" 609 <property name="orientation"> 618 610 <enum>Qt::Horizontal</enum> 619 611 </property> 620 <property name="sizeHint" >612 <property name="sizeHint" stdset="0"> 621 613 <size> 622 614 <width>40</width> … … 631 623 <item> 632 624 <spacer> 633 <property name="orientation" 625 <property name="orientation"> 634 626 <enum>Qt::Vertical</enum> 635 627 </property> 636 <property name="sizeHint" >628 <property name="sizeHint" stdset="0"> 637 629 <size> 638 630 <width>0</width> … … 647 639 </item> 648 640 <item> 649 <widget class="Line" name="line32" 650 <property name="orientation" 641 <widget class="Line" name="line32"> 642 <property name="orientation"> 651 643 <enum>Qt::Horizontal</enum> 652 644 </property> … … 654 646 </item> 655 647 <item> 656 <layout class="QHBoxLayout" 648 <layout class="QHBoxLayout"> 657 649 <item> 658 650 <spacer> 659 <property name="orientation" 651 <property name="orientation"> 660 652 <enum>Qt::Horizontal</enum> 661 653 </property> 662 <property name="sizeHint" >654 <property name="sizeHint" stdset="0"> 663 655 <size> 664 656 <width>0</width> … … 669 661 </item> 670 662 <item> 671 <widget class="QPushButton" name="mBtnBack3" 672 <property name="text" 663 <widget class="QPushButton" name="mBtnBack3"> 664 <property name="text"> 673 665 <string>< &Back</string> 674 666 </property> … … 676 668 </item> 677 669 <item> 678 <widget class="QPushButton" name="mBtnNext3" 679 <property name="text" 680 <string>&Next ></string>670 <widget class="QPushButton" name="mBtnNext3"> 671 <property name="text"> 672 <string>&Next ></string> 681 673 </property> 682 674 </widget> … … 684 676 <item> 685 677 <spacer> 686 <property name="orientation" 678 <property name="orientation"> 687 679 <enum>Qt::Horizontal</enum> 688 680 </property> 689 <property name="sizeType" 681 <property name="sizeType"> 690 682 <enum>QSizePolicy::Fixed</enum> 691 683 </property> 692 <property name="sizeHint" >684 <property name="sizeHint" stdset="0"> 693 685 <size> 694 686 <width>5</width> … … 699 691 </item> 700 692 <item> 701 <widget class="QPushButton" name="mBtnCancel3" 702 <property name="text" 693 <widget class="QPushButton" name="mBtnCancel3"> 694 <property name="text"> 703 695 <string>Cancel</string> 704 696 </property> … … 709 701 </layout> 710 702 </widget> 711 <widget class="QWidget" name="mPageHDD" 712 <layout class="QVBoxLayout" 713 <item> 714 <widget class="QLabel" name="mPageHDDHdr" 715 <property name="font" 703 <widget class="QWidget" name="mPageHDD"> 704 <layout class="QVBoxLayout"> 705 <item> 706 <widget class="QLabel" name="mPageHDDHdr"> 707 <property name="font"> 716 708 <font> 717 709 <family>Arial</family> … … 721 713 </font> 722 714 </property> 723 <property name="text" 715 <property name="text"> 724 716 <string>Virtual Hard Disk</string> 725 717 </property> … … 727 719 </item> 728 720 <item> 729 <widget class="Line" name="line41" 730 <property name="orientation" 721 <widget class="Line" name="line41"> 722 <property name="orientation"> 731 723 <enum>Qt::Horizontal</enum> 732 724 </property> … … 734 726 </item> 735 727 <item> 736 <layout class="QHBoxLayout" 737 <property name="spacing" 728 <layout class="QHBoxLayout"> 729 <property name="spacing"> 738 730 <number>10</number> 739 731 </property> 740 732 <item> 741 <widget class="QLabel" name="mLogoHDD" 742 <property name="sizePolicy" 743 <sizepolicy vsizetype="Minimum" hsizetype="Maximum">733 <widget class="QLabel" name="mLogoHDD"> 734 <property name="sizePolicy"> 735 <sizepolicy hsizetype="Maximum" vsizetype="Minimum"> 744 736 <horstretch>0</horstretch> 745 737 <verstretch>0</verstretch> 746 738 </sizepolicy> 747 739 </property> 748 <property name="autoFillBackground" 740 <property name="autoFillBackground"> 749 741 <bool>true</bool> 750 742 </property> 751 <property name="text" 743 <property name="text"> 752 744 <string/> 753 745 </property> 754 <property name="pixmap" 755 <pixmap resource="../VirtualBox.qrc" 756 </property> 757 <property name="alignment" 746 <property name="pixmap"> 747 <pixmap resource="../VirtualBox.qrc">:/vmw_new_welcome.png</pixmap> 748 </property> 749 <property name="alignment"> 758 750 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 759 751 </property> … … 761 753 </item> 762 754 <item> 763 <layout class="QVBoxLayout" 764 <property name="spacing" 755 <layout class="QVBoxLayout"> 756 <property name="spacing"> 765 757 <number>10</number> 766 758 </property> 767 759 <item> 768 <widget class="QILabel" name="mTextVDI" 769 <property name="sizePolicy" 770 <sizepolicy vsizetype="Minimum" hsizetype="Minimum">760 <widget class="QILabel" name="mTextVDI"> 761 <property name="sizePolicy"> 762 <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> 771 763 <horstretch>0</horstretch> 772 764 <verstretch>0</verstretch> 773 765 </sizepolicy> 774 766 </property> 775 <property name="minimumSize" 767 <property name="minimumSize"> 776 768 <size> 777 769 <width>300</width> … … 779 771 </size> 780 772 </property> 781 <property name="text" 782 <string><p >Select a hard disk image to be used as the boot hard disk of the virtual machine. You can either create a new hard disk using the <b>New</b> button or select an existing hard disk image from the drop-down list or by pressing the <b>Existing</b> button (to invoke the Virtual Media Manager dialog).</p><p>If you need a more complicated hard disk setup, you can also skip this step and attach hard disks later using the VM Settings dialog.</p></string>783 </property> 784 <property name="wordWrap" 773 <property name="text"> 774 <string><p>Select a hard disk image to be used as the boot hard disk of the virtual machine. You can either create a new hard disk using the <b>New</b> button or select an existing hard disk image from the drop-down list or by pressing the <b>Existing</b> button (to invoke the Virtual Media Manager dialog).</p><p>If you need a more complicated hard disk setup, you can also skip this step and attach hard disks later using the VM Settings dialog.</p></string> 775 </property> 776 <property name="wordWrap"> 785 777 <bool>true</bool> 786 778 </property> … … 788 780 </item> 789 781 <item> 790 <widget class="QILabel" name="mTextVDIBest" 791 <property name="sizePolicy" 792 <sizepolicy vsizetype="Minimum" hsizetype="Minimum">782 <widget class="QILabel" name="mTextVDIBest"> 783 <property name="sizePolicy"> 784 <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> 793 785 <horstretch>0</horstretch> 794 786 <verstretch>0</verstretch> 795 787 </sizepolicy> 796 788 </property> 797 <property name="minimumSize" 789 <property name="minimumSize"> 798 790 <size> 799 791 <width>300</width> … … 801 793 </size> 802 794 </property> 803 <property name="text" 795 <property name="text"> 804 796 <string/> 805 797 </property> 806 <property name="wordWrap" 798 <property name="wordWrap"> 807 799 <bool>true</bool> 808 800 </property> … … 810 802 </item> 811 803 <item> 812 <widget class="QGroupBox" name="mGbHDA" 813 <property name="sizePolicy" 814 <sizepolicy vsizetype="Fixed" hsizetype="Expanding">804 <widget class="QGroupBox" name="mGbHDA"> 805 <property name="sizePolicy"> 806 <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 815 807 <horstretch>0</horstretch> 816 808 <verstretch>0</verstretch> 817 809 </sizepolicy> 818 810 </property> 819 <property name="title" 811 <property name="title"> 820 812 <string>Boot Hard &Disk (Primary Master)</string> 821 813 </property> … … 823 815 <bool>true</bool> 824 816 </property> 825 <layout class="QGridLayout" 826 <item row="0" column="0" colspan="3" 827 <widget class="QRadioButton" name="mNewVDIRadio" 828 <property name="text" 817 <layout class="QGridLayout"> 818 <item row="0" column="0" colspan="3"> 819 <widget class="QRadioButton" name="mNewVDIRadio"> 820 <property name="text"> 829 821 <string>&Create new hard disk</string> 830 822 </property> … … 834 826 </widget> 835 827 </item> 836 <item row="1" column="0" colspan="3" 837 <widget class="QRadioButton" name="mExistRadio" 838 <property name="text" 828 <item row="1" column="0" colspan="3"> 829 <widget class="QRadioButton" name="mExistRadio"> 830 <property name="text"> 839 831 <string>&Use existing hard disk</string> 840 832 </property> 841 833 </widget> 842 834 </item> 843 <item row="2" column="1" 844 <widget class="VBoxMediaComboBox" name="mHDCombo" 845 <property name="sizePolicy" 846 <sizepolicy vsizetype="Fixed" hsizetype="Expanding">835 <item row="2" column="1"> 836 <widget class="VBoxMediaComboBox" name="mHDCombo"> 837 <property name="sizePolicy"> 838 <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 847 839 <horstretch>0</horstretch> 848 840 <verstretch>0</verstretch> … … 851 843 </widget> 852 844 </item> 853 <item row="2" column="2" 854 <widget class="QToolButton" name="mTbVmm" 855 <property name="autoRaise" 845 <item row="2" column="2"> 846 <widget class="QToolButton" name="mTbVmm"> 847 <property name="autoRaise"> 856 848 <bool>true</bool> 857 849 </property> … … 863 855 <item> 864 856 <spacer> 865 <property name="orientation" 857 <property name="orientation"> 866 858 <enum>Qt::Vertical</enum> 867 859 </property> 868 <property name="sizeHint" >860 <property name="sizeHint" stdset="0"> 869 861 <size> 870 862 <width>0</width> … … 879 871 </item> 880 872 <item> 881 <widget class="Line" name="line42" 882 <property name="orientation" 873 <widget class="Line" name="line42"> 874 <property name="orientation"> 883 875 <enum>Qt::Horizontal</enum> 884 876 </property> … … 886 878 </item> 887 879 <item> 888 <layout class="QHBoxLayout" 880 <layout class="QHBoxLayout"> 889 881 <item> 890 882 <spacer> 891 <property name="orientation" 883 <property name="orientation"> 892 884 <enum>Qt::Horizontal</enum> 893 885 </property> 894 <property name="sizeHint" >886 <property name="sizeHint" stdset="0"> 895 887 <size> 896 888 <width>0</width> … … 901 893 </item> 902 894 <item> 903 <widget class="QPushButton" name="mBtnBack4" 904 <property name="text" 895 <widget class="QPushButton" name="mBtnBack4"> 896 <property name="text"> 905 897 <string>< &Back</string> 906 898 </property> … … 908 900 </item> 909 901 <item> 910 <widget class="QPushButton" name="mBtnNext4" 911 <property name="text" 912 <string>&Next ></string>902 <widget class="QPushButton" name="mBtnNext4"> 903 <property name="text"> 904 <string>&Next ></string> 913 905 </property> 914 906 </widget> … … 916 908 <item> 917 909 <spacer> 918 <property name="orientation" 910 <property name="orientation"> 919 911 <enum>Qt::Horizontal</enum> 920 912 </property> 921 <property name="sizeType" 913 <property name="sizeType"> 922 914 <enum>QSizePolicy::Fixed</enum> 923 915 </property> 924 <property name="sizeHint" >916 <property name="sizeHint" stdset="0"> 925 917 <size> 926 918 <width>5</width> … … 931 923 </item> 932 924 <item> 933 <widget class="QPushButton" name="mBtnCancel4" 934 <property name="text" 925 <widget class="QPushButton" name="mBtnCancel4"> 926 <property name="text"> 935 927 <string>Cancel</string> 936 928 </property> … … 941 933 </layout> 942 934 </widget> 943 <widget class="QWidget" name="mPageSummary" 944 <layout class="QVBoxLayout" 945 <item> 946 <widget class="QLabel" name="mPageSummaryHdr" 947 <property name="font" 935 <widget class="QWidget" name="mPageSummary"> 936 <layout class="QVBoxLayout"> 937 <item> 938 <widget class="QLabel" name="mPageSummaryHdr"> 939 <property name="font"> 948 940 <font> 949 941 <family>Arial</family> … … 953 945 </font> 954 946 </property> 955 <property name="text" 947 <property name="text"> 956 948 <string>Summary</string> 957 949 </property> … … 959 951 </item> 960 952 <item> 961 <widget class="Line" name="line51" 962 <property name="orientation" 953 <widget class="Line" name="line51"> 954 <property name="orientation"> 963 955 <enum>Qt::Horizontal</enum> 964 956 </property> … … 966 958 </item> 967 959 <item> 968 <layout class="QHBoxLayout" 969 <property name="spacing" 960 <layout class="QHBoxLayout"> 961 <property name="spacing"> 970 962 <number>10</number> 971 963 </property> 972 964 <item> 973 <widget class="QLabel" name="mLogoSummary" 974 <property name="sizePolicy" 975 <sizepolicy vsizetype="Minimum" hsizetype="Maximum">965 <widget class="QLabel" name="mLogoSummary"> 966 <property name="sizePolicy"> 967 <sizepolicy hsizetype="Maximum" vsizetype="Minimum"> 976 968 <horstretch>0</horstretch> 977 969 <verstretch>0</verstretch> 978 970 </sizepolicy> 979 971 </property> 980 <property name="autoFillBackground" 972 <property name="autoFillBackground"> 981 973 <bool>true</bool> 982 974 </property> 983 <property name="text" 975 <property name="text"> 984 976 <string/> 985 977 </property> 986 <property name="pixmap" 987 <pixmap resource="../VirtualBox.qrc" 988 </property> 989 <property name="alignment" 978 <property name="pixmap"> 979 <pixmap resource="../VirtualBox.qrc">:/vmw_new_welcome.png</pixmap> 980 </property> 981 <property name="alignment"> 990 982 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 991 983 </property> … … 993 985 </item> 994 986 <item> 995 <layout class="QVBoxLayout" 996 <property name="spacing" 987 <layout class="QVBoxLayout"> 988 <property name="spacing"> 997 989 <number>10</number> 998 990 </property> 999 991 <item> 1000 <widget class="QILabel" name="mTextSummaryHdr" 1001 <property name="sizePolicy" 1002 <sizepolicy vsizetype="Minimum" hsizetype="Minimum">992 <widget class="QILabel" name="mTextSummaryHdr"> 993 <property name="sizePolicy"> 994 <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> 1003 995 <horstretch>0</horstretch> 1004 996 <verstretch>0</verstretch> 1005 997 </sizepolicy> 1006 998 </property> 1007 <property name="minimumSize" 999 <property name="minimumSize"> 1008 1000 <size> 1009 1001 <width>300</width> … … 1011 1003 </size> 1012 1004 </property> 1013 <property name="text" 1014 <string><p >You are going to create a new virtual machine with the following parameters:</p></string>1015 </property> 1016 <property name="wordWrap" 1005 <property name="text"> 1006 <string><p>You are going to create a new virtual machine with the following parameters:</p></string> 1007 </property> 1008 <property name="wordWrap"> 1017 1009 <bool>true</bool> 1018 1010 </property> … … 1020 1012 </item> 1021 1013 <item> 1022 <widget class="QITextEdit" name="mTeSummary" 1023 <property name="sizePolicy" 1024 <sizepolicy vsizetype="Minimum" hsizetype="Minimum">1014 <widget class="QITextEdit" name="mTeSummary"> 1015 <property name="sizePolicy"> 1016 <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> 1025 1017 <horstretch>0</horstretch> 1026 1018 <verstretch>0</verstretch> 1027 1019 </sizepolicy> 1028 1020 </property> 1029 <property name="minimumSize" 1021 <property name="minimumSize"> 1030 1022 <size> 1031 1023 <width>300</width> … … 1033 1025 </size> 1034 1026 </property> 1035 <property name="frameShape" 1027 <property name="frameShape"> 1036 1028 <enum>QFrame::NoFrame</enum> 1037 1029 </property> 1038 <property name="autoFormatting" 1030 <property name="autoFormatting"> 1039 1031 <set>QTextEdit::AutoAll</set> 1040 1032 </property> 1041 <property name="readOnly" 1033 <property name="readOnly"> 1042 1034 <bool>true</bool> 1043 1035 </property> … … 1045 1037 </item> 1046 1038 <item> 1047 <widget class="QILabel" name="mTextSummaryFtr" 1048 <property name="sizePolicy" 1049 <sizepolicy vsizetype="Minimum" hsizetype="Minimum">1039 <widget class="QILabel" name="mTextSummaryFtr"> 1040 <property name="sizePolicy"> 1041 <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> 1050 1042 <horstretch>0</horstretch> 1051 1043 <verstretch>0</verstretch> 1052 1044 </sizepolicy> 1053 1045 </property> 1054 <property name="minimumSize" 1046 <property name="minimumSize"> 1055 1047 <size> 1056 1048 <width>300</width> … … 1058 1050 </size> 1059 1051 </property> 1060 <property name="text" 1061 <string><p >If the above is correct press the <b>Finish</b> button. Once you press it, a new virtual machine will be created. </p><p>Note that you can alter these and all other setting of the created virtual machine at any time using the <b>Settings</b> dialog accessible through the menu of the main window.</p></string>1062 </property> 1063 <property name="wordWrap" 1052 <property name="text"> 1053 <string><p>If the above is correct press the <b>Finish</b> button. Once you press it, a new virtual machine will be created. </p><p>Note that you can alter these and all other setting of the created virtual machine at any time using the <b>Settings</b> dialog accessible through the menu of the main window.</p></string> 1054 </property> 1055 <property name="wordWrap"> 1064 1056 <bool>true</bool> 1065 1057 </property> … … 1068 1060 <item> 1069 1061 <spacer> 1070 <property name="orientation" 1062 <property name="orientation"> 1071 1063 <enum>Qt::Vertical</enum> 1072 1064 </property> 1073 <property name="sizeType" 1065 <property name="sizeType"> 1074 1066 <enum>QSizePolicy::Expanding</enum> 1075 1067 </property> 1076 <property name="sizeHint" >1068 <property name="sizeHint" stdset="0"> 1077 1069 <size> 1078 1070 <width>0</width> … … 1087 1079 </item> 1088 1080 <item> 1089 <widget class="Line" name="line52" 1090 <property name="orientation" 1081 <widget class="Line" name="line52"> 1082 <property name="orientation"> 1091 1083 <enum>Qt::Horizontal</enum> 1092 1084 </property> … … 1094 1086 </item> 1095 1087 <item> 1096 <layout class="QHBoxLayout" 1088 <layout class="QHBoxLayout"> 1097 1089 <item> 1098 1090 <spacer> 1099 <property name="orientation" 1091 <property name="orientation"> 1100 1092 <enum>Qt::Horizontal</enum> 1101 1093 </property> 1102 <property name="sizeHint" >1094 <property name="sizeHint" stdset="0"> 1103 1095 <size> 1104 1096 <width>0</width> … … 1109 1101 </item> 1110 1102 <item> 1111 <widget class="QPushButton" name="mBtnBack5" 1112 <property name="text" 1103 <widget class="QPushButton" name="mBtnBack5"> 1104 <property name="text"> 1113 1105 <string>< &Back</string> 1114 1106 </property> … … 1116 1108 </item> 1117 1109 <item> 1118 <widget class="QPushButton" name="mBtnFinish" 1119 <property name="text" 1110 <widget class="QPushButton" name="mBtnFinish"> 1111 <property name="text"> 1120 1112 <string>&Finish</string> 1121 1113 </property> … … 1124 1116 <item> 1125 1117 <spacer> 1126 <property name="orientation" 1118 <property name="orientation"> 1127 1119 <enum>Qt::Horizontal</enum> 1128 1120 </property> 1129 <property name="sizeType" 1121 <property name="sizeType"> 1130 1122 <enum>QSizePolicy::Fixed</enum> 1131 1123 </property> 1132 <property name="sizeHint" >1124 <property name="sizeHint" stdset="0"> 1133 1125 <size> 1134 1126 <width>5</width> … … 1139 1131 </item> 1140 1132 <item> 1141 <widget class="QPushButton" name="mBtnCancel5" 1142 <property name="text" 1133 <widget class="QPushButton" name="mBtnCancel5"> 1134 <property name="text"> 1143 1135 <string>Cancel</string> 1144 1136 </property> … … 1179 1171 <header>QILineEdit.h</header> 1180 1172 </customwidget> 1173 <customwidget> 1174 <class>QIAdvancedSlider</class> 1175 <extends>QSlider</extends> 1176 <header>QIAdvancedSlider.h</header> 1177 </customwidget> 1178 <customwidget> 1179 <class>VBoxGuestRAMSlider</class> 1180 <extends>QIAdvancedSlider</extends> 1181 <header>VBoxGuestRAMSlider.h</header> 1182 </customwidget> 1181 1183 </customwidgets> 1182 1184 <tabstops> … … 1205 1207 </tabstops> 1206 1208 <resources> 1207 <include location="../VirtualBox.qrc" 1209 <include location="../VirtualBox.qrc"/> 1208 1210 </resources> 1209 1211 <connections/> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsSystem.ui
r21194 r21305 64 64 </property> 65 65 <item> 66 <widget class=" QIAdvancedSlider" name="mSlMemory">66 <widget class="VBoxGuestRAMSlider" name="mSlMemory"> 67 67 <property name="whatsThis"> 68 68 <string>Controls the amount of memory provided to the virtual machine. If you assign too much, the machine might not start.</string> … … 602 602 <header>QIAdvancedSlider.h</header> 603 603 </customwidget> 604 <customwidget> 605 <class>VBoxGuestRAMSlider</class> 606 <extends>QIAdvancedSlider</extends> 607 <header>VBoxGuestRAMSlider.h</header> 608 </customwidget> 604 609 </customwidgets> 605 610 <resources/>
Note:
See TracChangeset
for help on using the changeset viewer.