VirtualBox

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

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

FE/Qt: Fixed VBoxNewHD wizard:

  • Corrected minimum size hinting;
  • Improved logarithmic slider to allow to select the full range of valid values (including minimum and maximum, even if they are not powers of 2).
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 34.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>542</width>
31 <height>499</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="QLayoutWidget">
81 <property name="name">
82 <cstring>layout33</cstring>
83 </property>
84 <vbox>
85 <property name="name">
86 <cstring>unnamed</cstring>
87 </property>
88 <widget class="QLabel">
89 <property name="name">
90 <cstring>txWelcome</cstring>
91 </property>
92 <property name="sizePolicy">
93 <sizepolicy>
94 <hsizetype>1</hsizetype>
95 <vsizetype>0</vsizetype>
96 <horstretch>0</horstretch>
97 <verstretch>0</verstretch>
98 </sizepolicy>
99 </property>
100 <property name="text">
101 <string>&lt;p&gt;This wizard will help you to create a new virtual hard disk image for your virtual machine.&lt;/p&gt;
102&lt;p&gt;Use the &lt;b&gt;Next&lt;/b&gt; button to go to the next page of the wizard
103and the &lt;b&gt;Back&lt;/b&gt; button to return to the previous page.&lt;/p&gt;</string>
104 </property>
105 <property name="alignment">
106 <set>WordBreak|AlignTop</set>
107 </property>
108 </widget>
109 <spacer>
110 <property name="name">
111 <cstring>spacer30</cstring>
112 </property>
113 <property name="orientation">
114 <enum>Vertical</enum>
115 </property>
116 <property name="sizeType">
117 <enum>Expanding</enum>
118 </property>
119 <property name="sizeHint">
120 <size>
121 <width>0</width>
122 <height>0</height>
123 </size>
124 </property>
125 </spacer>
126 </vbox>
127 </widget>
128 </hbox>
129 </widget>
130 <widget class="QWidget">
131 <property name="name">
132 <cstring>pageType</cstring>
133 </property>
134 <attribute name="title">
135 <string>Virtual Disk Image Type</string>
136 </attribute>
137 <hbox>
138 <property name="name">
139 <cstring>unnamed</cstring>
140 </property>
141 <property name="spacing">
142 <number>20</number>
143 </property>
144 <property name="resizeMode">
145 <enum>Minimum</enum>
146 </property>
147 <widget class="QLabel">
148 <property name="name">
149 <cstring>pmType</cstring>
150 </property>
151 <property name="sizePolicy">
152 <sizepolicy>
153 <hsizetype>4</hsizetype>
154 <vsizetype>5</vsizetype>
155 <horstretch>0</horstretch>
156 <verstretch>0</verstretch>
157 </sizepolicy>
158 </property>
159 <property name="pixmap">
160 <pixmap>vmw_new_harddisk.png</pixmap>
161 </property>
162 <property name="alignment">
163 <set>AlignTop</set>
164 </property>
165 </widget>
166 <widget class="QLayoutWidget">
167 <property name="name">
168 <cstring>layout12</cstring>
169 </property>
170 <vbox>
171 <property name="name">
172 <cstring>unnamed</cstring>
173 </property>
174 <property name="spacing">
175 <number>10</number>
176 </property>
177 <widget class="QLabel">
178 <property name="name">
179 <cstring>textLabel1_2</cstring>
180 </property>
181 <property name="sizePolicy">
182 <sizepolicy>
183 <hsizetype>1</hsizetype>
184 <vsizetype>0</vsizetype>
185 <horstretch>0</horstretch>
186 <verstretch>0</verstretch>
187 </sizepolicy>
188 </property>
189 <property name="text">
190 <string>&lt;p&gt;Select the type of virtual hard disk image you want to create.&lt;/p&gt;
191&lt;p&gt;A &lt;b&gt;dynamically expanding image&lt;/b&gt; initially occupies a very small amount
192of space on your physical hard disk. It will grow dynamically (up to
193the size specified), as the Guest OS makes the usage of the disk space.&lt;/p&gt;
194&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
195the same size as the size of the virtual hard disk.&lt;/p&gt;</string>
196 </property>
197 <property name="alignment">
198 <set>WordBreak|AlignTop</set>
199 </property>
200 </widget>
201 <widget class="QButtonGroup">
202 <property name="name">
203 <cstring>bgType</cstring>
204 </property>
205 <property name="title">
206 <string>Image Type</string>
207 </property>
208 <property name="exclusive">
209 <bool>true</bool>
210 </property>
211 <vbox>
212 <property name="name">
213 <cstring>unnamed</cstring>
214 </property>
215 <widget class="QRadioButton">
216 <property name="name">
217 <cstring>rbDynamicType</cstring>
218 </property>
219 <property name="text">
220 <string>&amp;Dynamically expanding image</string>
221 </property>
222 <property name="accel">
223 <string>Alt+D</string>
224 </property>
225 <property name="checked">
226 <bool>true</bool>
227 </property>
228 </widget>
229 <widget class="QRadioButton">
230 <property name="name">
231 <cstring>rbFixedType</cstring>
232 </property>
233 <property name="text">
234 <string>&amp;Fixed-size image</string>
235 </property>
236 <property name="accel">
237 <string>Alt+F</string>
238 </property>
239 </widget>
240 </vbox>
241 </widget>
242 <spacer>
243 <property name="name">
244 <cstring>spacer10</cstring>
245 </property>
246 <property name="orientation">
247 <enum>Vertical</enum>
248 </property>
249 <property name="sizeType">
250 <enum>Expanding</enum>
251 </property>
252 <property name="sizeHint">
253 <size>
254 <width>0</width>
255 <height>0</height>
256 </size>
257 </property>
258 </spacer>
259 </vbox>
260 </widget>
261 </hbox>
262 </widget>
263 <widget class="QWidget">
264 <property name="name">
265 <cstring>pageNameAndSize</cstring>
266 </property>
267 <attribute name="title">
268 <string>Virtual Disk Location and Size</string>
269 </attribute>
270 <grid>
271 <property name="name">
272 <cstring>unnamed</cstring>
273 </property>
274 <property name="spacing">
275 <number>20</number>
276 </property>
277 <widget class="QLabel" row="0" column="0">
278 <property name="name">
279 <cstring>pmNameAndSize</cstring>
280 </property>
281 <property name="sizePolicy">
282 <sizepolicy>
283 <hsizetype>4</hsizetype>
284 <vsizetype>5</vsizetype>
285 <horstretch>0</horstretch>
286 <verstretch>0</verstretch>
287 </sizepolicy>
288 </property>
289 <property name="pixmap">
290 <pixmap>vmw_new_harddisk.png</pixmap>
291 </property>
292 <property name="alignment">
293 <set>AlignTop</set>
294 </property>
295 </widget>
296 <widget class="QLayoutWidget" row="0" column="1">
297 <property name="name">
298 <cstring>layout36</cstring>
299 </property>
300 <vbox>
301 <property name="name">
302 <cstring>unnamed</cstring>
303 </property>
304 <property name="spacing">
305 <number>10</number>
306 </property>
307 <widget class="QLabel">
308 <property name="name">
309 <cstring>txNameComment</cstring>
310 </property>
311 <property name="sizePolicy">
312 <sizepolicy>
313 <hsizetype>1</hsizetype>
314 <vsizetype>0</vsizetype>
315 <horstretch>0</horstretch>
316 <verstretch>0</verstretch>
317 </sizepolicy>
318 </property>
319 <property name="text">
320 <string>&lt;p&gt;Press the &lt;b&gt;Select&lt;/b&gt; button to select the location and name of the file
321to store the virtual hard disk image or type a file name in the entry field.&lt;/p&gt;</string>
322 </property>
323 <property name="alignment">
324 <set>WordBreak|AlignTop</set>
325 </property>
326 </widget>
327 <widget class="QGroupBox">
328 <property name="name">
329 <cstring>groupBox1</cstring>
330 </property>
331 <property name="title">
332 <string>&amp;Image File Name</string>
333 </property>
334 <hbox>
335 <property name="name">
336 <cstring>unnamed</cstring>
337 </property>
338 <widget class="QLineEdit">
339 <property name="name">
340 <cstring>leName</cstring>
341 </property>
342 <property name="frameShape">
343 <enum>LineEditPanel</enum>
344 </property>
345 <property name="frameShadow">
346 <enum>Sunken</enum>
347 </property>
348 </widget>
349 <widget class="QToolButton">
350 <property name="name">
351 <cstring>tbNameSelect</cstring>
352 </property>
353 <property name="focusPolicy">
354 <enum>TabFocus</enum>
355 </property>
356 <property name="text">
357 <string></string>
358 </property>
359 <property name="iconSet">
360 <iconset>select_file_16px.png</iconset>
361 </property>
362 <property name="textLabel">
363 <string>Select</string>
364 </property>
365 <property name="autoRaise">
366 <bool>true</bool>
367 </property>
368 </widget>
369 </hbox>
370 </widget>
371 <widget class="QLabel">
372 <property name="name">
373 <cstring>txSizeComment</cstring>
374 </property>
375 <property name="sizePolicy">
376 <sizepolicy>
377 <hsizetype>1</hsizetype>
378 <vsizetype>0</vsizetype>
379 <horstretch>0</horstretch>
380 <verstretch>0</verstretch>
381 </sizepolicy>
382 </property>
383 <property name="text">
384 <string>&lt;p&gt;Select the size of the virtual hard disk image in megabytes. This size will be reported to the Guest OS
385as the size of the virtual hard disk.&lt;/p&gt;</string>
386 </property>
387 <property name="alignment">
388 <set>WordBreak|AlignTop</set>
389 </property>
390 </widget>
391 <widget class="QGroupBox">
392 <property name="name">
393 <cstring>groupBox3</cstring>
394 </property>
395 <property name="title">
396 <string>Image &amp;Size</string>
397 </property>
398 <hbox>
399 <property name="name">
400 <cstring>unnamed</cstring>
401 </property>
402 <widget class="QLayoutWidget">
403 <property name="name">
404 <cstring>layout15_2</cstring>
405 </property>
406 <vbox>
407 <property name="name">
408 <cstring>unnamed</cstring>
409 </property>
410 <property name="spacing">
411 <number>0</number>
412 </property>
413 <widget class="QSlider">
414 <property name="name">
415 <cstring>slSize</cstring>
416 </property>
417 <property name="sizePolicy">
418 <sizepolicy>
419 <hsizetype>7</hsizetype>
420 <vsizetype>0</vsizetype>
421 <horstretch>10</horstretch>
422 <verstretch>0</verstretch>
423 </sizepolicy>
424 </property>
425 <property name="minValue">
426 <number>4</number>
427 </property>
428 <property name="maxValue">
429 <number>384</number>
430 </property>
431 <property name="lineStep">
432 <number>4</number>
433 </property>
434 <property name="pageStep">
435 <number>32</number>
436 </property>
437 <property name="orientation">
438 <enum>Horizontal</enum>
439 </property>
440 <property name="tickmarks">
441 <enum>Below</enum>
442 </property>
443 <property name="tickInterval">
444 <number>32</number>
445 </property>
446 </widget>
447 <widget class="QLayoutWidget">
448 <property name="name">
449 <cstring>layout14_2</cstring>
450 </property>
451 <hbox>
452 <property name="name">
453 <cstring>unnamed</cstring>
454 </property>
455 <widget class="QLabel">
456 <property name="name">
457 <cstring>txSizeMin</cstring>
458 </property>
459 <property name="alignment">
460 <set>WordBreak|AlignVCenter|AlignLeft</set>
461 </property>
462 </widget>
463 <spacer>
464 <property name="name">
465 <cstring>spacer8_2</cstring>
466 </property>
467 <property name="orientation">
468 <enum>Horizontal</enum>
469 </property>
470 <property name="sizeType">
471 <enum>Expanding</enum>
472 </property>
473 <property name="sizeHint">
474 <size>
475 <width>40</width>
476 <height>20</height>
477 </size>
478 </property>
479 </spacer>
480 <widget class="QLabel">
481 <property name="name">
482 <cstring>txSizeMax</cstring>
483 </property>
484 <property name="alignment">
485 <set>WordBreak|AlignVCenter|AlignRight</set>
486 </property>
487 </widget>
488 </hbox>
489 </widget>
490 </vbox>
491 </widget>
492 <widget class="QLayoutWidget">
493 <property name="name">
494 <cstring>layout8</cstring>
495 </property>
496 <vbox>
497 <property name="name">
498 <cstring>unnamed</cstring>
499 </property>
500 <widget class="QLineEdit">
501 <property name="name">
502 <cstring>leSize</cstring>
503 </property>
504 <property name="sizePolicy">
505 <sizepolicy>
506 <hsizetype>4</hsizetype>
507 <vsizetype>0</vsizetype>
508 <horstretch>0</horstretch>
509 <verstretch>0</verstretch>
510 </sizepolicy>
511 </property>
512 </widget>
513 <spacer>
514 <property name="name">
515 <cstring>spacer9_2</cstring>
516 </property>
517 <property name="orientation">
518 <enum>Vertical</enum>
519 </property>
520 <property name="sizeType">
521 <enum>Minimum</enum>
522 </property>
523 <property name="sizeHint">
524 <size>
525 <width>20</width>
526 <height>16</height>
527 </size>
528 </property>
529 </spacer>
530 </vbox>
531 </widget>
532 </hbox>
533 </widget>
534 <spacer>
535 <property name="name">
536 <cstring>spacer37</cstring>
537 </property>
538 <property name="orientation">
539 <enum>Vertical</enum>
540 </property>
541 <property name="sizeType">
542 <enum>Expanding</enum>
543 </property>
544 <property name="sizeHint">
545 <size>
546 <width>0</width>
547 <height>0</height>
548 </size>
549 </property>
550 </spacer>
551 </vbox>
552 </widget>
553 </grid>
554 </widget>
555 <widget class="QWidget">
556 <property name="name">
557 <cstring>pageSummary</cstring>
558 </property>
559 <attribute name="title">
560 <string>Summary</string>
561 </attribute>
562 <hbox>
563 <property name="name">
564 <cstring>unnamed</cstring>
565 </property>
566 <property name="spacing">
567 <number>20</number>
568 </property>
569 <property name="resizeMode">
570 <enum>Minimum</enum>
571 </property>
572 <widget class="QLabel">
573 <property name="name">
574 <cstring>pmSummary</cstring>
575 </property>
576 <property name="sizePolicy">
577 <sizepolicy>
578 <hsizetype>4</hsizetype>
579 <vsizetype>5</vsizetype>
580 <horstretch>0</horstretch>
581 <verstretch>0</verstretch>
582 </sizepolicy>
583 </property>
584 <property name="pixmap">
585 <pixmap>vmw_new_harddisk.png</pixmap>
586 </property>
587 <property name="alignment">
588 <set>AlignTop</set>
589 </property>
590 </widget>
591 <widget class="QLayoutWidget">
592 <property name="name">
593 <cstring>layout15</cstring>
594 </property>
595 <vbox>
596 <property name="name">
597 <cstring>unnamed</cstring>
598 </property>
599 <property name="spacing">
600 <number>15</number>
601 </property>
602 <widget class="QLabel">
603 <property name="name">
604 <cstring>txSummaryHdr</cstring>
605 </property>
606 <property name="sizePolicy">
607 <sizepolicy>
608 <hsizetype>1</hsizetype>
609 <vsizetype>0</vsizetype>
610 <horstretch>0</horstretch>
611 <verstretch>0</verstretch>
612 </sizepolicy>
613 </property>
614 <property name="text">
615 <string>You are going to create a new virtual hard disk image with the following parameters:</string>
616 </property>
617 <property name="alignment">
618 <set>WordBreak|AlignTop</set>
619 </property>
620 </widget>
621 <widget class="QTextEdit">
622 <property name="name">
623 <cstring>teSummary</cstring>
624 </property>
625 <property name="sizePolicy">
626 <sizepolicy>
627 <hsizetype>7</hsizetype>
628 <vsizetype>5</vsizetype>
629 <horstretch>0</horstretch>
630 <verstretch>0</verstretch>
631 </sizepolicy>
632 </property>
633 <property name="frameShape">
634 <enum>NoFrame</enum>
635 </property>
636 <property name="wordWrap">
637 <enum>NoWrap</enum>
638 </property>
639 <property name="readOnly">
640 <bool>true</bool>
641 </property>
642 </widget>
643 <widget class="QLabel">
644 <property name="name">
645 <cstring>txSummaryFtr</cstring>
646 </property>
647 <property name="sizePolicy">
648 <sizepolicy>
649 <hsizetype>1</hsizetype>
650 <vsizetype>0</vsizetype>
651 <horstretch>0</horstretch>
652 <verstretch>0</verstretch>
653 </sizepolicy>
654 </property>
655 <property name="text">
656 <string>If the above settings are correct, press the &lt;b&gt;Finish&lt;/b&gt; button.
657 Once you press it, a new hard disk image will be created.
658 </string>
659 </property>
660 <property name="alignment">
661 <set>WordBreak|AlignTop</set>
662 </property>
663 </widget>
664 <spacer>
665 <property name="name">
666 <cstring>spacer45</cstring>
667 </property>
668 <property name="orientation">
669 <enum>Vertical</enum>
670 </property>
671 <property name="sizeType">
672 <enum>Expanding</enum>
673 </property>
674 <property name="sizeHint">
675 <size>
676 <width>0</width>
677 <height>0</height>
678 </size>
679 </property>
680 </spacer>
681 </vbox>
682 </widget>
683 </hbox>
684 </widget>
685</widget>
686<connections>
687 <connection>
688 <sender>tbNameSelect</sender>
689 <signal>clicked()</signal>
690 <receiver>VBoxNewHDWzd</receiver>
691 <slot>tbNameSelect_clicked()</slot>
692 </connection>
693 <connection>
694 <sender>slSize</sender>
695 <signal>valueChanged(int)</signal>
696 <receiver>VBoxNewHDWzd</receiver>
697 <slot>slSize_valueChanged(int)</slot>
698 </connection>
699 <connection>
700 <sender>leSize</sender>
701 <signal>textChanged(const QString&amp;)</signal>
702 <receiver>VBoxNewHDWzd</receiver>
703 <slot>leSize_textChanged(const QString&amp;)</slot>
704 </connection>
705</connections>
706<tabstops>
707 <tabstop>leName</tabstop>
708 <tabstop>slSize</tabstop>
709 <tabstop>leSize</tabstop>
710</tabstops>
711<includes>
712 <include location="local" impldecl="in declaration">qfiledialog.h</include>
713 <include location="local" impldecl="in declaration">QIWidgetValidator.h</include>
714 <include location="local" impldecl="in declaration">COMDefs.h</include>
715 <include location="local" impldecl="in implementation">VBoxUtils.h</include>
716 <include location="local" impldecl="in implementation">VBoxGlobal.h</include>
717 <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include>
718 <include location="global" impldecl="in implementation">qvalidator.h</include>
719 <include location="global" impldecl="in implementation">qlocale.h</include>
720</includes>
721<variables>
722 <variable access="private">QIWidgetValidator *wvalNameAndSize;</variable>
723 <variable access="private">CHardDisk chd;</variable>
724 <variable access="private">int sliderScale;</variable>
725 <variable access="private">Q_UINT64 maxVDISize;</variable>
726 <variable access="private">Q_UINT64 currentSize;</variable>
727</variables>
728<slots>
729 <slot>enableNext( const QIWidgetValidator * wval )</slot>
730 <slot>revalidate( QIWidgetValidator * )</slot>
731 <slot>slSize_valueChanged( int val )</slot>
732 <slot>leSize_textChanged( const QString &amp; text )</slot>
733 <slot>tbNameSelect_clicked()</slot>
734</slots>
735<functions>
736 <function access="private">init()</function>
737 <function>setRecommendedFileName( const QString &amp; aName )</function>
738 <function>setRecommendedSize( Q_UINT64 aSize )</function>
739 <function returnType="QString">imageFileName()</function>
740 <function returnType="Q_UINT64">imageSize()</function>
741 <function returnType="bool">isDynamicImage()</function>
742 <function returnType="CHardDisk">hardDisk() { return chd; }</function>
743 <function>showPage( QWidget * page )</function>
744 <function>updateSizeToolTip (Q_UINT64)</function>
745 <function>accept()</function>
746 <function access="private" returnType="bool">createHardDisk()</function>
747</functions>
748<pixmapinproject/>
749<layoutdefaults spacing="6" margin="11"/>
750</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