VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/ui/VBoxNewHDWzd.ui@ 132

Last change on this file since 132 was 132, checked in by vboxsync, 18 years ago

Main:

  • Prototyped IConsoleCallback::onRuntimeError();
  • All size parameters in IHardDisk are now ULONG64.

Frontends:

  • Updated according to the above.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 30.2 KB
Line 
1<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
2<class>VBoxNewHDWzd</class>
3<comment>
4:mode=html:tabSize=4:indentSize=4:noTabs=true:
5:folding=explicit:collapseFolds=1:
6
7# Copyright (C) 2006 InnoTek Systemberatung GmbH
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License as published by the Free Software Foundation,
13# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14# distribution. VirtualBox OSE is distributed in the hope that it will
15# be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# If you received this file as part of a commercial VirtualBox
18# distribution, then only the terms of your commercial VirtualBox
19# license agreement apply instead of the previous paragraph.
20
21</comment>
22<widget class="QWizard">
23 <property name="name">
24 <cstring>VBoxNewHDWzd</cstring>
25 </property>
26 <property name="geometry">
27 <rect>
28 <x>0</x>
29 <y>0</y>
30 <width>520</width>
31 <height>400</height>
32 </rect>
33 </property>
34 <property name="caption">
35 <string>Create New Virtual Disk</string>
36 </property>
37 <property name="titleFont">
38 <font>
39 <family>Arial</family>
40 <pointsize>12</pointsize>
41 <bold>1</bold>
42 </font>
43 </property>
44 <widget class="QWidget">
45 <property name="name">
46 <cstring>pageWelcome</cstring>
47 </property>
48 <attribute name="title">
49 <string>Welcome to the Create New Virtual Disk Wizard!</string>
50 </attribute>
51 <hbox>
52 <property name="name">
53 <cstring>unnamed</cstring>
54 </property>
55 <property name="spacing">
56 <number>20</number>
57 </property>
58 <property name="resizeMode">
59 <enum>Minimum</enum>
60 </property>
61 <widget class="QLabel">
62 <property name="name">
63 <cstring>pmWelcome</cstring>
64 </property>
65 <property name="sizePolicy">
66 <sizepolicy>
67 <hsizetype>4</hsizetype>
68 <vsizetype>5</vsizetype>
69 <horstretch>0</horstretch>
70 <verstretch>0</verstretch>
71 </sizepolicy>
72 </property>
73 <property name="pixmap">
74 <pixmap>vmw_new_harddisk.png</pixmap>
75 </property>
76 <property name="alignment">
77 <set>AlignTop</set>
78 </property>
79 </widget>
80 <widget class="QLabel">
81 <property name="name">
82 <cstring>txWelcome</cstring>
83 </property>
84 <property name="text">
85 <string>&lt;p&gt;This wizard will help you to create a new virtual hard disk image for your virtual machine.&lt;/p&gt;
86&lt;p&gt;Use the &lt;b&gt;Next&lt;/b&gt; button to go to the next page of the wizard
87and the &lt;b&gt;Back&lt;/b&gt; button to return to the previous page.&lt;/p&gt;</string>
88 </property>
89 <property name="alignment">
90 <set>WordBreak|AlignTop</set>
91 </property>
92 </widget>
93 </hbox>
94 </widget>
95 <widget class="QWidget">
96 <property name="name">
97 <cstring>pageType</cstring>
98 </property>
99 <attribute name="title">
100 <string>Virtual Disk Image Type</string>
101 </attribute>
102 <hbox>
103 <property name="name">
104 <cstring>unnamed</cstring>
105 </property>
106 <property name="spacing">
107 <number>20</number>
108 </property>
109 <widget class="QLabel">
110 <property name="name">
111 <cstring>pmType</cstring>
112 </property>
113 <property name="sizePolicy">
114 <sizepolicy>
115 <hsizetype>4</hsizetype>
116 <vsizetype>5</vsizetype>
117 <horstretch>0</horstretch>
118 <verstretch>0</verstretch>
119 </sizepolicy>
120 </property>
121 <property name="pixmap">
122 <pixmap>vmw_new_harddisk.png</pixmap>
123 </property>
124 <property name="alignment">
125 <set>AlignTop</set>
126 </property>
127 </widget>
128 <widget class="QLayoutWidget">
129 <property name="name">
130 <cstring>layout12</cstring>
131 </property>
132 <vbox>
133 <property name="name">
134 <cstring>unnamed</cstring>
135 </property>
136 <property name="spacing">
137 <number>10</number>
138 </property>
139 <widget class="QLabel">
140 <property name="name">
141 <cstring>textLabel1_2</cstring>
142 </property>
143 <property name="text">
144 <string>&lt;p&gt;Select the type of virtual hard disk image you want to create.&lt;/p&gt;
145&lt;p&gt;A &lt;b&gt;dynamically expanding image&lt;/b&gt; initially occupies a very small amount
146of space on your physical hard disk. It will grow dynamically (up to
147the size specified), as the Guest OS makes the usage of the disk space.&lt;/p&gt;
148&lt;p&gt;A &lt;b&gt;fixed-size image&lt;/b&gt; does not grow up. It is stored in the file of approximately
149the same size as the size of the virtual hard disk.&lt;/p&gt;</string>
150 </property>
151 <property name="alignment">
152 <set>WordBreak|AlignVCenter</set>
153 </property>
154 </widget>
155 <widget class="QButtonGroup">
156 <property name="name">
157 <cstring>bgType</cstring>
158 </property>
159 <property name="title">
160 <string>Image Type</string>
161 </property>
162 <property name="exclusive">
163 <bool>true</bool>
164 </property>
165 <vbox>
166 <property name="name">
167 <cstring>unnamed</cstring>
168 </property>
169 <widget class="QRadioButton">
170 <property name="name">
171 <cstring>rbDynamicType</cstring>
172 </property>
173 <property name="text">
174 <string>&amp;Dynamically expanding image</string>
175 </property>
176 <property name="accel">
177 <string>Alt+D</string>
178 </property>
179 <property name="checked">
180 <bool>true</bool>
181 </property>
182 </widget>
183 <widget class="QRadioButton">
184 <property name="name">
185 <cstring>rbFixedType</cstring>
186 </property>
187 <property name="text">
188 <string>&amp;Fixed-size image</string>
189 </property>
190 <property name="accel">
191 <string>Alt+F</string>
192 </property>
193 </widget>
194 </vbox>
195 </widget>
196 <spacer>
197 <property name="name">
198 <cstring>spacer10</cstring>
199 </property>
200 <property name="orientation">
201 <enum>Vertical</enum>
202 </property>
203 <property name="sizeType">
204 <enum>Expanding</enum>
205 </property>
206 <property name="sizeHint">
207 <size>
208 <width>20</width>
209 <height>90</height>
210 </size>
211 </property>
212 </spacer>
213 </vbox>
214 </widget>
215 </hbox>
216 </widget>
217 <widget class="QWidget">
218 <property name="name">
219 <cstring>pageNameAndSize</cstring>
220 </property>
221 <attribute name="title">
222 <string>Virtual Disk Location and Size</string>
223 </attribute>
224 <grid>
225 <property name="name">
226 <cstring>unnamed</cstring>
227 </property>
228 <property name="spacing">
229 <number>20</number>
230 </property>
231 <widget class="QLabel" row="0" column="0">
232 <property name="name">
233 <cstring>pmNameAndSize</cstring>
234 </property>
235 <property name="sizePolicy">
236 <sizepolicy>
237 <hsizetype>4</hsizetype>
238 <vsizetype>5</vsizetype>
239 <horstretch>0</horstretch>
240 <verstretch>0</verstretch>
241 </sizepolicy>
242 </property>
243 <property name="pixmap">
244 <pixmap>vmw_new_harddisk.png</pixmap>
245 </property>
246 <property name="alignment">
247 <set>AlignTop</set>
248 </property>
249 </widget>
250 <widget class="QLayoutWidget" row="0" column="1">
251 <property name="name">
252 <cstring>layout36</cstring>
253 </property>
254 <vbox>
255 <property name="name">
256 <cstring>unnamed</cstring>
257 </property>
258 <property name="spacing">
259 <number>10</number>
260 </property>
261 <widget class="QLabel">
262 <property name="name">
263 <cstring>txNameComment</cstring>
264 </property>
265 <property name="text">
266 <string>&lt;p&gt;Press the &lt;b&gt;Select&lt;/b&gt; button to select the location and name of the file
267to store the virtual hard disk image or type a file name in the entry field.&lt;/p&gt;</string>
268 </property>
269 <property name="alignment">
270 <set>WordBreak|AlignVCenter</set>
271 </property>
272 </widget>
273 <widget class="QGroupBox">
274 <property name="name">
275 <cstring>groupBox1</cstring>
276 </property>
277 <property name="title">
278 <string>&amp;Image File Name</string>
279 </property>
280 <hbox>
281 <property name="name">
282 <cstring>unnamed</cstring>
283 </property>
284 <widget class="QLineEdit">
285 <property name="name">
286 <cstring>leName</cstring>
287 </property>
288 <property name="frameShape">
289 <enum>LineEditPanel</enum>
290 </property>
291 <property name="frameShadow">
292 <enum>Sunken</enum>
293 </property>
294 </widget>
295 <widget class="QToolButton">
296 <property name="name">
297 <cstring>tbNameSelect</cstring>
298 </property>
299 <property name="focusPolicy">
300 <enum>TabFocus</enum>
301 </property>
302 <property name="text">
303 <string></string>
304 </property>
305 <property name="iconSet">
306 <iconset>select_file_16px.png</iconset>
307 </property>
308 <property name="textLabel">
309 <string>Select</string>
310 </property>
311 <property name="autoRaise">
312 <bool>true</bool>
313 </property>
314 </widget>
315 </hbox>
316 </widget>
317 <widget class="QLabel">
318 <property name="name">
319 <cstring>txSizeComment</cstring>
320 </property>
321 <property name="text">
322 <string>&lt;p&gt;Select the size of the virtual hard disk image in megabytes. This size will be reported to the Guest OS
323as the size of the virtual hard disk.&lt;/p&gt;</string>
324 </property>
325 <property name="alignment">
326 <set>WordBreak|AlignVCenter</set>
327 </property>
328 </widget>
329 <widget class="QGroupBox">
330 <property name="name">
331 <cstring>groupBox3</cstring>
332 </property>
333 <property name="title">
334 <string>Image &amp;Size</string>
335 </property>
336 <hbox>
337 <property name="name">
338 <cstring>unnamed</cstring>
339 </property>
340 <widget class="QLayoutWidget">
341 <property name="name">
342 <cstring>layout15_2</cstring>
343 </property>
344 <vbox>
345 <property name="name">
346 <cstring>unnamed</cstring>
347 </property>
348 <property name="spacing">
349 <number>0</number>
350 </property>
351 <widget class="QSlider">
352 <property name="name">
353 <cstring>slSize</cstring>
354 </property>
355 <property name="sizePolicy">
356 <sizepolicy>
357 <hsizetype>7</hsizetype>
358 <vsizetype>0</vsizetype>
359 <horstretch>10</horstretch>
360 <verstretch>0</verstretch>
361 </sizepolicy>
362 </property>
363 <property name="minValue">
364 <number>4</number>
365 </property>
366 <property name="maxValue">
367 <number>384</number>
368 </property>
369 <property name="lineStep">
370 <number>4</number>
371 </property>
372 <property name="pageStep">
373 <number>32</number>
374 </property>
375 <property name="orientation">
376 <enum>Horizontal</enum>
377 </property>
378 <property name="tickmarks">
379 <enum>Below</enum>
380 </property>
381 <property name="tickInterval">
382 <number>32</number>
383 </property>
384 </widget>
385 <widget class="QLayoutWidget">
386 <property name="name">
387 <cstring>layout14_2</cstring>
388 </property>
389 <hbox>
390 <property name="name">
391 <cstring>unnamed</cstring>
392 </property>
393 <widget class="QLabel">
394 <property name="name">
395 <cstring>txSizeMin</cstring>
396 </property>
397 <property name="alignment">
398 <set>WordBreak|AlignVCenter|AlignLeft</set>
399 </property>
400 </widget>
401 <spacer>
402 <property name="name">
403 <cstring>spacer8_2</cstring>
404 </property>
405 <property name="orientation">
406 <enum>Horizontal</enum>
407 </property>
408 <property name="sizeType">
409 <enum>Expanding</enum>
410 </property>
411 <property name="sizeHint">
412 <size>
413 <width>40</width>
414 <height>20</height>
415 </size>
416 </property>
417 </spacer>
418 <widget class="QLabel">
419 <property name="name">
420 <cstring>txSizeMax</cstring>
421 </property>
422 <property name="alignment">
423 <set>WordBreak|AlignVCenter|AlignRight</set>
424 </property>
425 </widget>
426 </hbox>
427 </widget>
428 </vbox>
429 </widget>
430 <widget class="QLayoutWidget">
431 <property name="name">
432 <cstring>layout8</cstring>
433 </property>
434 <vbox>
435 <property name="name">
436 <cstring>unnamed</cstring>
437 </property>
438 <widget class="QLineEdit">
439 <property name="name">
440 <cstring>leSize</cstring>
441 </property>
442 <property name="sizePolicy">
443 <sizepolicy>
444 <hsizetype>4</hsizetype>
445 <vsizetype>0</vsizetype>
446 <horstretch>0</horstretch>
447 <verstretch>0</verstretch>
448 </sizepolicy>
449 </property>
450 </widget>
451 <spacer>
452 <property name="name">
453 <cstring>spacer9_2</cstring>
454 </property>
455 <property name="orientation">
456 <enum>Vertical</enum>
457 </property>
458 <property name="sizeType">
459 <enum>Minimum</enum>
460 </property>
461 <property name="sizeHint">
462 <size>
463 <width>20</width>
464 <height>16</height>
465 </size>
466 </property>
467 </spacer>
468 </vbox>
469 </widget>
470 </hbox>
471 </widget>
472 <spacer>
473 <property name="name">
474 <cstring>spacer37</cstring>
475 </property>
476 <property name="orientation">
477 <enum>Vertical</enum>
478 </property>
479 <property name="sizeType">
480 <enum>Expanding</enum>
481 </property>
482 <property name="sizeHint">
483 <size>
484 <width>20</width>
485 <height>20</height>
486 </size>
487 </property>
488 </spacer>
489 </vbox>
490 </widget>
491 </grid>
492 </widget>
493 <widget class="QWidget">
494 <property name="name">
495 <cstring>pageSummary</cstring>
496 </property>
497 <attribute name="title">
498 <string>Summary</string>
499 </attribute>
500 <hbox>
501 <property name="name">
502 <cstring>unnamed</cstring>
503 </property>
504 <property name="spacing">
505 <number>20</number>
506 </property>
507 <widget class="QLabel">
508 <property name="name">
509 <cstring>pmSummary</cstring>
510 </property>
511 <property name="sizePolicy">
512 <sizepolicy>
513 <hsizetype>4</hsizetype>
514 <vsizetype>5</vsizetype>
515 <horstretch>0</horstretch>
516 <verstretch>0</verstretch>
517 </sizepolicy>
518 </property>
519 <property name="pixmap">
520 <pixmap>vmw_new_harddisk.png</pixmap>
521 </property>
522 <property name="alignment">
523 <set>AlignTop</set>
524 </property>
525 </widget>
526 <widget class="QLayoutWidget">
527 <property name="name">
528 <cstring>layout15</cstring>
529 </property>
530 <vbox>
531 <property name="name">
532 <cstring>unnamed</cstring>
533 </property>
534 <widget class="QLabel">
535 <property name="name">
536 <cstring>txSummaryHdr</cstring>
537 </property>
538 <property name="text">
539 <string>You are going to create a new virtual hard disk image with the following parameters:</string>
540 </property>
541 <property name="alignment">
542 <set>WordBreak|AlignVCenter</set>
543 </property>
544 </widget>
545 <widget class="QTextEdit">
546 <property name="name">
547 <cstring>teSummary</cstring>
548 </property>
549 <property name="sizePolicy">
550 <sizepolicy>
551 <hsizetype>7</hsizetype>
552 <vsizetype>5</vsizetype>
553 <horstretch>0</horstretch>
554 <verstretch>1</verstretch>
555 </sizepolicy>
556 </property>
557 <property name="frameShape">
558 <enum>NoFrame</enum>
559 </property>
560 <property name="wordWrap">
561 <enum>NoWrap</enum>
562 </property>
563 <property name="readOnly">
564 <bool>true</bool>
565 </property>
566 </widget>
567 <widget class="QLabel">
568 <property name="name">
569 <cstring>txSummaryFtr</cstring>
570 </property>
571 <property name="text">
572 <string>If the above settings are correct, press the &lt;b&gt;Finish&lt;/b&gt; button.
573 Once you press it, a new hard disk image will be created.
574 </string>
575 </property>
576 </widget>
577 <spacer>
578 <property name="name">
579 <cstring>spacer45</cstring>
580 </property>
581 <property name="orientation">
582 <enum>Vertical</enum>
583 </property>
584 <property name="sizeType">
585 <enum>Expanding</enum>
586 </property>
587 <property name="sizeHint">
588 <size>
589 <width>20</width>
590 <height>20</height>
591 </size>
592 </property>
593 </spacer>
594 </vbox>
595 </widget>
596 </hbox>
597 </widget>
598</widget>
599<connections>
600 <connection>
601 <sender>tbNameSelect</sender>
602 <signal>clicked()</signal>
603 <receiver>VBoxNewHDWzd</receiver>
604 <slot>tbNameSelect_clicked()</slot>
605 </connection>
606 <connection>
607 <sender>slSize</sender>
608 <signal>valueChanged(int)</signal>
609 <receiver>VBoxNewHDWzd</receiver>
610 <slot>slSize_valueChanged(int)</slot>
611 </connection>
612 <connection>
613 <sender>leSize</sender>
614 <signal>textChanged(const QString&amp;)</signal>
615 <receiver>VBoxNewHDWzd</receiver>
616 <slot>leSize_textChanged(const QString&amp;)</slot>
617 </connection>
618</connections>
619<tabstops>
620 <tabstop>leName</tabstop>
621 <tabstop>slSize</tabstop>
622 <tabstop>leSize</tabstop>
623</tabstops>
624<includes>
625 <include location="local" impldecl="in declaration">qfiledialog.h</include>
626 <include location="local" impldecl="in declaration">QIWidgetValidator.h</include>
627 <include location="local" impldecl="in declaration">COMDefs.h</include>
628 <include location="local" impldecl="in implementation">VBoxUtils.h</include>
629 <include location="local" impldecl="in implementation">VBoxGlobal.h</include>
630 <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include>
631 <include location="global" impldecl="in implementation">qvalidator.h</include>
632 <include location="global" impldecl="in implementation">qlocale.h</include>
633 <include location="local" impldecl="in implementation">math.h</include>
634</includes>
635<variables>
636 <variable access="private">QIWidgetValidator *wvalNameAndSize;</variable>
637 <variable access="private">CHardDisk chd;</variable>
638 <variable access="private">int sliderStep;</variable>
639 <variable access="private">Q_UINT64 MaxVDISize;</variable>
640 <variable access="private">Q_UINT64 currentSize;</variable>
641</variables>
642<slots>
643 <slot>enableNext( const QIWidgetValidator * wval )</slot>
644 <slot>revalidate( QIWidgetValidator * )</slot>
645 <slot>slSize_valueChanged( int val )</slot>
646 <slot>leSize_textChanged( const QString &amp; text )</slot>
647 <slot>tbNameSelect_clicked()</slot>
648</slots>
649<functions>
650 <function access="private">init()</function>
651 <function>setRecommendedFileName( const QString &amp; aName )</function>
652 <function>setRecommendedSize( ulong aSize )</function>
653 <function returnType="QString">imageFileName()</function>
654 <function returnType="Q_UINT64">imageSize()</function>
655 <function returnType="bool">isDynamicImage()</function>
656 <function returnType="CHardDisk">hardDisk() { return chd; }</function>
657 <function>accept()</function>
658 <function access="private" returnType="bool">createHardDisk()</function>
659 <function>showPage( QWidget * page )</function>
660</functions>
661<pixmapinproject/>
662<layoutdefaults spacing="6" margin="11"/>
663</UI>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette