VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/ui/VBoxDiskImageManagerDlg.ui@ 163

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

FE/Qt [dsen]:

  • Replaced the "enumeration in progress" indication in the VDM list-views with progress bar list view items. Single media enumretaion events for individual media are handled again to make progress bars run.
  • Added static methods to VBoxDiskImageManagerDlg to compose tool tips for media. These methods are used in the VM settings dialog for media shortcut comboboxes.
  • Fixed: The Remove button is now disabled for hard disks with children.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 30.5 KB
Line 
1<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
2<class>VBoxDiskImageManagerDlg</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</comment>
21<widget class="QMainWindow">
22 <property name="name">
23 <cstring>VBoxDiskImageManagerDlg</cstring>
24 </property>
25 <property name="geometry">
26 <rect>
27 <x>0</x>
28 <y>0</y>
29 <width>620</width>
30 <height>460</height>
31 </rect>
32 </property>
33 <property name="minimumSize">
34 <size>
35 <width>289</width>
36 <height>178</height>
37 </size>
38 </property>
39 <property name="caption">
40 <string>Virtual Disk Manager</string>
41 </property>
42 <vbox>
43 <property name="name">
44 <cstring>unnamed</cstring>
45 </property>
46 <property name="margin">
47 <number>3</number>
48 </property>
49 <property name="spacing">
50 <number>5</number>
51 </property>
52 <widget class="QLayoutWidget">
53 <property name="name">
54 <cstring>layout2</cstring>
55 </property>
56 <vbox>
57 <property name="name">
58 <cstring>unnamed</cstring>
59 </property>
60 <property name="margin">
61 <number>7</number>
62 </property>
63 <widget class="QTabWidget">
64 <property name="name">
65 <cstring>twImages</cstring>
66 </property>
67 <property name="sizePolicy">
68 <sizepolicy>
69 <hsizetype>5</hsizetype>
70 <vsizetype>7</vsizetype>
71 <horstretch>0</horstretch>
72 <verstretch>0</verstretch>
73 </sizepolicy>
74 </property>
75 <widget class="QWidget">
76 <property name="name">
77 <cstring>tab</cstring>
78 </property>
79 <attribute name="title">
80 <string>&amp;Hard Disks</string>
81 </attribute>
82 <vbox>
83 <property name="name">
84 <cstring>unnamed</cstring>
85 </property>
86 <widget class="QListView">
87 <column>
88 <property name="text">
89 <string>Name</string>
90 </property>
91 <property name="clickable">
92 <bool>true</bool>
93 </property>
94 <property name="resizable">
95 <bool>true</bool>
96 </property>
97 </column>
98 <column>
99 <property name="text">
100 <string>Virtual Size</string>
101 </property>
102 <property name="clickable">
103 <bool>true</bool>
104 </property>
105 <property name="resizable">
106 <bool>true</bool>
107 </property>
108 </column>
109 <column>
110 <property name="text">
111 <string>Actual Size</string>
112 </property>
113 <property name="clickable">
114 <bool>true</bool>
115 </property>
116 <property name="resizable">
117 <bool>true</bool>
118 </property>
119 </column>
120 <property name="name">
121 <cstring>hdsView</cstring>
122 </property>
123 <property name="acceptDrops">
124 <bool>true</bool>
125 </property>
126 <property name="hScrollBarMode">
127 <enum>AlwaysOff</enum>
128 </property>
129 <property name="dragAutoScroll">
130 <bool>false</bool>
131 </property>
132 <property name="allColumnsShowFocus">
133 <bool>true</bool>
134 </property>
135 <property name="rootIsDecorated">
136 <bool>true</bool>
137 </property>
138 <property name="resizeMode">
139 <enum>AllColumns</enum>
140 </property>
141 <property name="whatsThis" stdset="0">
142 <string></string>
143 </property>
144 </widget>
145 <widget class="QFrame">
146 <property name="name">
147 <cstring>hdsContainer</cstring>
148 </property>
149 <property name="frameShape">
150 <enum>Box</enum>
151 </property>
152 <property name="frameShadow">
153 <enum>Sunken</enum>
154 </property>
155 </widget>
156 </vbox>
157 </widget>
158 <widget class="QWidget">
159 <property name="name">
160 <cstring>tab</cstring>
161 </property>
162 <attribute name="title">
163 <string>&amp;CD/DVD Images</string>
164 </attribute>
165 <vbox>
166 <property name="name">
167 <cstring>unnamed</cstring>
168 </property>
169 <widget class="QListView">
170 <column>
171 <property name="text">
172 <string>Name</string>
173 </property>
174 <property name="clickable">
175 <bool>true</bool>
176 </property>
177 <property name="resizable">
178 <bool>true</bool>
179 </property>
180 </column>
181 <column>
182 <property name="text">
183 <string>Size</string>
184 </property>
185 <property name="clickable">
186 <bool>true</bool>
187 </property>
188 <property name="resizable">
189 <bool>true</bool>
190 </property>
191 </column>
192 <property name="name">
193 <cstring>cdsView</cstring>
194 </property>
195 <property name="acceptDrops">
196 <bool>true</bool>
197 </property>
198 <property name="hScrollBarMode">
199 <enum>AlwaysOff</enum>
200 </property>
201 <property name="dragAutoScroll">
202 <bool>false</bool>
203 </property>
204 <property name="allColumnsShowFocus">
205 <bool>true</bool>
206 </property>
207 <property name="rootIsDecorated">
208 <bool>true</bool>
209 </property>
210 <property name="resizeMode">
211 <enum>AllColumns</enum>
212 </property>
213 <property name="whatsThis" stdset="0">
214 <string></string>
215 </property>
216 </widget>
217 <widget class="QFrame">
218 <property name="name">
219 <cstring>cdsContainer</cstring>
220 </property>
221 <property name="frameShape">
222 <enum>Box</enum>
223 </property>
224 <property name="frameShadow">
225 <enum>Sunken</enum>
226 </property>
227 </widget>
228 </vbox>
229 </widget>
230 <widget class="QWidget">
231 <property name="name">
232 <cstring>TabPage</cstring>
233 </property>
234 <attribute name="title">
235 <string>&amp;Floppy Images</string>
236 </attribute>
237 <vbox>
238 <property name="name">
239 <cstring>unnamed</cstring>
240 </property>
241 <widget class="QListView">
242 <column>
243 <property name="text">
244 <string>Name</string>
245 </property>
246 <property name="clickable">
247 <bool>true</bool>
248 </property>
249 <property name="resizable">
250 <bool>true</bool>
251 </property>
252 </column>
253 <column>
254 <property name="text">
255 <string>Size</string>
256 </property>
257 <property name="clickable">
258 <bool>true</bool>
259 </property>
260 <property name="resizable">
261 <bool>true</bool>
262 </property>
263 </column>
264 <property name="name">
265 <cstring>fdsView</cstring>
266 </property>
267 <property name="acceptDrops">
268 <bool>true</bool>
269 </property>
270 <property name="hScrollBarMode">
271 <enum>AlwaysOff</enum>
272 </property>
273 <property name="dragAutoScroll">
274 <bool>false</bool>
275 </property>
276 <property name="allColumnsShowFocus">
277 <bool>true</bool>
278 </property>
279 <property name="rootIsDecorated">
280 <bool>true</bool>
281 </property>
282 <property name="resizeMode">
283 <enum>AllColumns</enum>
284 </property>
285 <property name="whatsThis" stdset="0">
286 <string></string>
287 </property>
288 </widget>
289 <widget class="QFrame">
290 <property name="name">
291 <cstring>fdsContainer</cstring>
292 </property>
293 <property name="frameShape">
294 <enum>Box</enum>
295 </property>
296 <property name="frameShadow">
297 <enum>Sunken</enum>
298 </property>
299 </widget>
300 </vbox>
301 </widget>
302 </widget>
303 <widget class="QLayoutWidget">
304 <property name="name">
305 <cstring>layout6</cstring>
306 </property>
307 <hbox>
308 <property name="name">
309 <cstring>unnamed</cstring>
310 </property>
311 <widget class="QPushButton">
312 <property name="name">
313 <cstring>buttonHelp</cstring>
314 </property>
315 <property name="text">
316 <string>Help</string>
317 </property>
318 <property name="accel">
319 <string>F1</string>
320 </property>
321 <property name="autoDefault">
322 <bool>true</bool>
323 </property>
324 <property name="whatsThis" stdset="0">
325 <string>Invoke dialog's help</string>
326 </property>
327 </widget>
328 <spacer>
329 <property name="name">
330 <cstring>Spacer1</cstring>
331 </property>
332 <property name="orientation">
333 <enum>Horizontal</enum>
334 </property>
335 <property name="sizeType">
336 <enum>Expanding</enum>
337 </property>
338 <property name="sizeHint">
339 <size>
340 <width>214</width>
341 <height>16</height>
342 </size>
343 </property>
344 </spacer>
345 <widget class="QPushButton">
346 <property name="name">
347 <cstring>buttonOk</cstring>
348 </property>
349 <property name="text">
350 <string>&amp;OK</string>
351 </property>
352 <property name="accel">
353 <string>Alt+O</string>
354 </property>
355 <property name="autoDefault">
356 <bool>true</bool>
357 </property>
358 <property name="default">
359 <bool>true</bool>
360 </property>
361 <property name="whatsThis" stdset="0">
362 <string>Accept dialog</string>
363 </property>
364 </widget>
365 <widget class="QPushButton">
366 <property name="name">
367 <cstring>buttonCancel</cstring>
368 </property>
369 <property name="text">
370 <string>&amp;Cancel</string>
371 </property>
372 <property name="accel">
373 <string></string>
374 </property>
375 <property name="autoDefault">
376 <bool>true</bool>
377 </property>
378 <property name="whatsThis" stdset="0">
379 <string>Cancel dialog</string>
380 </property>
381 </widget>
382 </hbox>
383 </widget>
384 </vbox>
385 </widget>
386 </vbox>
387</widget>
388<toolbars>
389</toolbars>
390<connections>
391 <connection>
392 <sender>buttonOk</sender>
393 <signal>clicked()</signal>
394 <receiver>VBoxDiskImageManagerDlg</receiver>
395 <slot>accept()</slot>
396 </connection>
397 <connection>
398 <sender>buttonCancel</sender>
399 <signal>clicked()</signal>
400 <receiver>VBoxDiskImageManagerDlg</receiver>
401 <slot>reject()</slot>
402 </connection>
403 <connection>
404 <sender>hdsView</sender>
405 <signal>currentChanged(QListViewItem*)</signal>
406 <receiver>VBoxDiskImageManagerDlg</receiver>
407 <slot>processCurrentChanged(QListViewItem*)</slot>
408 </connection>
409 <connection>
410 <sender>cdsView</sender>
411 <signal>currentChanged(QListViewItem*)</signal>
412 <receiver>VBoxDiskImageManagerDlg</receiver>
413 <slot>processCurrentChanged(QListViewItem*)</slot>
414 </connection>
415 <connection>
416 <sender>fdsView</sender>
417 <signal>currentChanged(QListViewItem*)</signal>
418 <receiver>VBoxDiskImageManagerDlg</receiver>
419 <slot>processCurrentChanged(QListViewItem*)</slot>
420 </connection>
421 <connection>
422 <sender>hdsView</sender>
423 <signal>pressed(QListViewItem*)</signal>
424 <receiver>VBoxDiskImageManagerDlg</receiver>
425 <slot>processPressed(QListViewItem*)</slot>
426 </connection>
427 <connection>
428 <sender>cdsView</sender>
429 <signal>pressed(QListViewItem*)</signal>
430 <receiver>VBoxDiskImageManagerDlg</receiver>
431 <slot>processPressed(QListViewItem*)</slot>
432 </connection>
433 <connection>
434 <sender>fdsView</sender>
435 <signal>pressed(QListViewItem*)</signal>
436 <receiver>VBoxDiskImageManagerDlg</receiver>
437 <slot>processPressed(QListViewItem*)</slot>
438 </connection>
439 <connection>
440 <sender>hdsView</sender>
441 <signal>doubleClicked(QListViewItem*)</signal>
442 <receiver>VBoxDiskImageManagerDlg</receiver>
443 <slot>processDoubleClick(QListViewItem*)</slot>
444 </connection>
445 <connection>
446 <sender>cdsView</sender>
447 <signal>doubleClicked(QListViewItem*)</signal>
448 <receiver>VBoxDiskImageManagerDlg</receiver>
449 <slot>processDoubleClick(QListViewItem*)</slot>
450 </connection>
451 <connection>
452 <sender>fdsView</sender>
453 <signal>doubleClicked(QListViewItem*)</signal>
454 <receiver>VBoxDiskImageManagerDlg</receiver>
455 <slot>processDoubleClick(QListViewItem*)</slot>
456 </connection>
457 <connection>
458 <sender>hdsView</sender>
459 <signal>contextMenuRequested(QListViewItem*,const QPoint&amp;,int)</signal>
460 <receiver>VBoxDiskImageManagerDlg</receiver>
461 <slot>invokePopup(QListViewItem*,const QPoint&amp;,int)</slot>
462 </connection>
463 <connection>
464 <sender>cdsView</sender>
465 <signal>contextMenuRequested(QListViewItem*,const QPoint&amp;,int)</signal>
466 <receiver>VBoxDiskImageManagerDlg</receiver>
467 <slot>invokePopup(QListViewItem*,const QPoint&amp;,int)</slot>
468 </connection>
469 <connection>
470 <sender>fdsView</sender>
471 <signal>contextMenuRequested(QListViewItem*,const QPoint&amp;,int)</signal>
472 <receiver>VBoxDiskImageManagerDlg</receiver>
473 <slot>invokePopup(QListViewItem*,const QPoint&amp;,int)</slot>
474 </connection>
475 <connection>
476 <sender>twImages</sender>
477 <signal>currentChanged(QWidget*)</signal>
478 <receiver>VBoxDiskImageManagerDlg</receiver>
479 <slot>processCurrentChanged()</slot>
480 </connection>
481</connections>
482<includes>
483 <include location="global" impldecl="in implementation">qapplication.h</include>
484 <include location="global" impldecl="in implementation">qfiledialog.h</include>
485 <include location="global" impldecl="in implementation">qprogressdialog.h</include>
486 <include location="global" impldecl="in implementation">qfocusdata.h</include>
487 <include location="global" impldecl="in implementation">qobjectlist.h</include>
488 <include location="global" impldecl="in implementation">qdragobject.h</include>
489 <include location="global" impldecl="in implementation">qaction.h</include>
490 <include location="global" impldecl="in implementation">qpopupmenu.h</include>
491 <include location="global" impldecl="in implementation">qeventloop.h</include>
492 <include location="global" impldecl="in implementation">qstatusbar.h</include>
493 <include location="global" impldecl="in implementation">qsizegrip.h</include>
494 <include location="global" impldecl="in implementation">qlocale.h</include>
495 <include location="global" impldecl="in implementation">qregexp.h</include>
496 <include location="global" impldecl="in implementation">qpainter.h</include>
497 <include location="global" impldecl="in implementation">qprogressbar.h</include>
498 <include location="global" impldecl="in declaration">qvaluelist.h</include>
499 <include location="local" impldecl="in declaration">COMDefs.h</include>
500 <include location="local" impldecl="in declaration">VBoxGlobal.h</include>
501 <include location="local" impldecl="in declaration">VBoxProblemReporter.h</include>
502 <include location="local" impldecl="in implementation">VBoxNewHDWzd.h</include>
503 <include location="local" impldecl="in implementation">VBoxToolBar.h</include>
504 <include location="local" impldecl="in implementation">QIRichLabel.h</include>
505</includes>
506<forwards>
507 <forward>class DiskImageItem</forward>
508 <forward>class VBoxToolBar</forward>
509 <forward>class QSizeGrip</forward>
510 <forward>class QIRichLabel</forward>
511 <forward>class ProgressBarItem</forward>
512</forwards>
513<variables>
514 <variable access="public">enum ResultCode { Rejected, Accepted };</variable>
515 <variable access="private">bool polished;</variable>
516 <variable access="private">CVirtualBox vbox;</variable>
517 <variable access="private">int type;</variable>
518 <variable access="private">bool doSelect;</variable>
519 <variable access="private">QString targetVMId;</variable>
520 <variable access="private">QPixmap pxInaccessible;</variable>
521 <variable access="private">QPixmap pxErroneous;</variable>
522 <variable access="private">CMachine cmachine;</variable>
523 <variable access="private">QPopupMenu *itemMenu;</variable>
524 <variable access="private">VBoxToolBar *toolBar;</variable>
525 <variable access="private">int mRescode;</variable>
526 <variable access="private">bool mInLoop;</variable>
527 <variable access="private">QAction *imNewAction;</variable>
528 <variable access="private">QAction *imAddAction;</variable>
529 <variable access="private">QAction *imEditAction;</variable>
530 <variable access="private">QAction *imRemoveAction;</variable>
531 <variable access="private">QAction *imReleaseAction;</variable>
532 <variable access="private">QAction *imRefreshAction;</variable>
533 <variable access="private">QIRichLabel *hdsPane1;</variable>
534 <variable access="private">QIRichLabel *hdsPane2;</variable>
535 <variable access="private">QIRichLabel *hdsPane3;</variable>
536 <variable access="private">QIRichLabel *hdsPane4;</variable>
537 <variable access="private">QIRichLabel *hdsPane5;</variable>
538 <variable access="private">QIRichLabel *hdsPane6;</variable>
539 <variable access="private">QIRichLabel *hdsPane7;</variable>
540 <variable access="private">QIRichLabel *cdsPane1;</variable>
541 <variable access="private">QIRichLabel *cdsPane2;</variable>
542 <variable access="private">QIRichLabel *fdsPane1;</variable>
543 <variable access="private">QIRichLabel *fdsPane2;</variable>
544 <variable>QSizeGrip *sizeGrip;</variable>
545 <variable>QPushButton *defaultButton;</variable>
546 <variable access="private">static VBoxDiskImageManagerDlg *mModelessDialog;</variable>
547 <variable access="private">bool mToBeRefreshed;</variable>
548 <variable access="private">ProgressBarItem *mHdsProgress;</variable>
549 <variable access="private">ProgressBarItem *mCdsProgress;</variable>
550 <variable access="private">ProgressBarItem *mFdsProgress;</variable>
551</variables>
552<slots>
553 <slot access="protected">mediaEnumerated( const VBoxMedia &amp; media )</slot>
554 <slot access="protected">mediaEnumerated( const VBoxMediaList &amp; )</slot>
555 <slot access="protected">machineStateChanged( const VBoxMachineStateChangeEvent &amp; )</slot>
556 <slot>refreshAll()</slot>
557 <slot access="protected">processCurrentChanged( QListViewItem * item )</slot>
558 <slot access="protected">processPressed( QListViewItem * item )</slot>
559 <slot access="protected">newImage()</slot>
560 <slot access="protected">addImage()</slot>
561 <slot access="protected">removeImage()</slot>
562 <slot access="protected">processDoubleClick( QListViewItem * item )</slot>
563 <slot access="protected">releaseImage()</slot>
564 <slot access="protected">invokePopup( QListViewItem * item, const QPoint &amp; pos, int col )</slot>
565 <slot access="protected">processCurrentChanged()</slot>
566 <slot access="protected">accept()</slot>
567 <slot access="protected">reject()</slot>
568 <slot access="protected">mouseOnItem( QListViewItem *item )</slot>
569 <slot access="protected">addDroppedImages( QDropEvent* )</slot>
570</slots>
571<functions>
572 <function access="private">init()</function>
573 <function access="private" returnType="int">result()</function>
574 <function access="private">setResult( int )</function>
575 <function returnType="int">exec()</function>
576 <function access="private">done( int )</function>
577 <function access="private">insertMedia( const VBoxMedia &amp; media )</function>
578 <function specifier="non virtual" access="private" returnType="QString">static getDVDImageUsage( const QUuid &amp; id )</function>
579 <function specifier="non virtual" access="private" returnType="QString">static getFloppyImageUsage( const QUuid &amp; id )</function>
580 <function access="private" returnType="bool">checkImage( DiskImageItem* item )</function>
581 <function access="private">releaseDisk( QUuid machineId, QUuid itemId, VBoxDefs::DiskType diskType )</function>
582 <function returnType="QUuid">getSelectedUuid()</function>
583 <function returnType="QString">getSelectedPath()</function>
584 <function>setup( int aType, bool aDoSelect, const QUuid *aTargetVMId = NULL, const VBoxMediaList *mediaList = NULL, CMachine machine = 0 )</function>
585 <function access="private" returnType="QListView*">getCurrentListView()</function>
586 <function returnType="bool">eventFilter( QObject *, QEvent * )</function>
587 <function access="private">addDroppedImage( QString aSource, VBoxDefs::DiskType aDiskType )</function>
588 <function access="private" returnType="DiskImageItem*">createImageNode( QListView *aList, DiskImageItem *aRoot, QString aName, QString aLabel1 = QString::null, QString aLabel2 = QString::null, QString aLabel3 = QString::null, QString aLabel4 = QString::null, QString aLabel5 = QString::null, QString aLabel6 = QString::null, QString aLabel7 = QString::null )</function>
589 <function access="private" returnType="DiskImageItem*">createHdItem( QListView*, DiskImageItem*, CHardDisk &amp; )</function>
590 <function access="private" returnType="DiskImageItem*">createCdItem( QListView*, DiskImageItem*, CDVDImage &amp; )</function>
591 <function access="private" returnType="DiskImageItem*">createFdItem( QListView*, DiskImageItem*, CFloppyImage &amp; )</function>
592 <function access="private">createHdChildren( DiskImageItem*, CHardDisk &amp; )</function>
593 <function access="protected">showEvent( QShowEvent * )</function>
594 <function access="protected">resizeEvent( QResizeEvent* )</function>
595 <function access="protected">keyPressEvent( QKeyEvent* )</function>
596 <function access="protected">closeEvent( QCloseEvent* )</function>
597 <function access="protected" returnType="QIRichLabel*">createInfoString( QString, QWidget*, int, int )</function>
598 <function access="protected" returnType="QPushButton*">searchDefaultButton()</function>
599 <function access="protected">setCurrentItem( QListView*, DiskImageItem* )</function>
600 <function>uploadCurrentList( QStringList&amp;, QStringList&amp;, const QUuid&amp; )</function>
601 <function specifier="non virtual">static showModeless( const VBoxMediaList * = NULL )</function>
602 <function access="protected">refreshList( QListView*, ProgressBarItem*&amp; )</function>
603 <function specifier="non virtual" returnType="QString">static composeHdToolTip( CHardDisk &amp; )</function>
604 <function specifier="non virtual" returnType="QString">static composeCdToolTip( CDVDImage &amp; )</function>
605 <function specifier="non virtual" returnType="QString">static composeFdToolTip( CFloppyImage &amp; )</function>
606</functions>
607<layoutdefaults spacing="10" margin="10"/>
608</UI>
Note: See TracBrowser for help on using the repository browser.

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