VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/ui/VBoxMediaManagerDlg.ui@ 14707

Last change on this file since 14707 was 13580, checked in by vboxsync, 16 years ago

Ported s2 branch (r37120:38456).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 31.1 KB
Line 
1<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
2<class>VBoxMediaManagerDlg</class>
3<comment>
4:mode=html:tabSize=4:indentSize=4:noTabs=true:
5:folding=explicit:collapseFolds=1:
6
7 Copyright (C) 2006-2007 Sun Microsystems, Inc.
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 (GPL) as published by the Free Software
13 Foundation, in version 2 as it comes in the "COPYING" file of the
14 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16
17 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 Clara, CA 95054 USA or visit http://www.sun.com if you need
19 additional information or have any questions.
20</comment>
21<widget class="QMainWindow">
22 <property name="name">
23 <cstring>VBoxMediaManagerDlg</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 Media 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>mMediaTabs</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>Logical 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>mHardDiskView</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>mHDInfoPane</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>mDVDView</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>mDVDInfoPane</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>mFloppyView</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>mFloppyInfoPane</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>buttonLayout</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 <spacer>
346 <property name="name">
347 <cstring>Spacer2</cstring>
348 </property>
349 <property name="orientation">
350 <enum>Horizontal</enum>
351 </property>
352 <property name="sizeType">
353 <enum>Expanding</enum>
354 </property>
355 <property name="sizeHint">
356 <size>
357 <width>214</width>
358 <height>16</height>
359 </size>
360 </property>
361 </spacer>
362 <widget class="QPushButton">
363 <property name="name">
364 <cstring>buttonOk</cstring>
365 </property>
366 <property name="text">
367 <string>&amp;OK</string>
368 </property>
369 <property name="autoDefault">
370 <bool>true</bool>
371 </property>
372 <property name="default">
373 <bool>true</bool>
374 </property>
375 <property name="whatsThis" stdset="0">
376 <string>Accept dialog</string>
377 </property>
378 </widget>
379 <widget class="QPushButton">
380 <property name="name">
381 <cstring>buttonCancel</cstring>
382 </property>
383 <property name="text">
384 <string>Cancel</string>
385 </property>
386 <property name="autoDefault">
387 <bool>true</bool>
388 </property>
389 <property name="whatsThis" stdset="0">
390 <string>Cancel dialog</string>
391 </property>
392 </widget>
393 </hbox>
394 </widget>
395 </vbox>
396 </widget>
397 </vbox>
398</widget>
399<toolbars>
400</toolbars>
401<connections>
402 <connection>
403 <sender>buttonOk</sender>
404 <signal>clicked()</signal>
405 <receiver>VBoxMediaManagerDlg</receiver>
406 <slot>accept()</slot>
407 </connection>
408 <connection>
409 <sender>buttonCancel</sender>
410 <signal>clicked()</signal>
411 <receiver>VBoxMediaManagerDlg</receiver>
412 <slot>reject()</slot>
413 </connection>
414 <connection>
415 <sender>mHardDiskView</sender>
416 <signal>currentChanged(QListViewItem*)</signal>
417 <receiver>VBoxMediaManagerDlg</receiver>
418 <slot>processCurrentChanged(QListViewItem*)</slot>
419 </connection>
420 <connection>
421 <sender>mDVDView</sender>
422 <signal>currentChanged(QListViewItem*)</signal>
423 <receiver>VBoxMediaManagerDlg</receiver>
424 <slot>processCurrentChanged(QListViewItem*)</slot>
425 </connection>
426 <connection>
427 <sender>mFloppyView</sender>
428 <signal>currentChanged(QListViewItem*)</signal>
429 <receiver>VBoxMediaManagerDlg</receiver>
430 <slot>processCurrentChanged(QListViewItem*)</slot>
431 </connection>
432 <connection>
433 <sender>mHardDiskView</sender>
434 <signal>pressed(QListViewItem*)</signal>
435 <receiver>VBoxMediaManagerDlg</receiver>
436 <slot>processPressed(QListViewItem*)</slot>
437 </connection>
438 <connection>
439 <sender>mDVDView</sender>
440 <signal>pressed(QListViewItem*)</signal>
441 <receiver>VBoxMediaManagerDlg</receiver>
442 <slot>processPressed(QListViewItem*)</slot>
443 </connection>
444 <connection>
445 <sender>mFloppyView</sender>
446 <signal>pressed(QListViewItem*)</signal>
447 <receiver>VBoxMediaManagerDlg</receiver>
448 <slot>processPressed(QListViewItem*)</slot>
449 </connection>
450 <connection>
451 <sender>mHardDiskView</sender>
452 <signal>doubleClicked(QListViewItem*)</signal>
453 <receiver>VBoxMediaManagerDlg</receiver>
454 <slot>processDoubleClick(QListViewItem*)</slot>
455 </connection>
456 <connection>
457 <sender>mDVDView</sender>
458 <signal>doubleClicked(QListViewItem*)</signal>
459 <receiver>VBoxMediaManagerDlg</receiver>
460 <slot>processDoubleClick(QListViewItem*)</slot>
461 </connection>
462 <connection>
463 <sender>mFloppyView</sender>
464 <signal>doubleClicked(QListViewItem*)</signal>
465 <receiver>VBoxMediaManagerDlg</receiver>
466 <slot>processDoubleClick(QListViewItem*)</slot>
467 </connection>
468 <connection>
469 <sender>mHardDiskView</sender>
470 <signal>contextMenuRequested(QListViewItem*,const QPoint&amp;,int)</signal>
471 <receiver>VBoxMediaManagerDlg</receiver>
472 <slot>invokePopup(QListViewItem*,const QPoint&amp;,int)</slot>
473 </connection>
474 <connection>
475 <sender>mDVDView</sender>
476 <signal>contextMenuRequested(QListViewItem*,const QPoint&amp;,int)</signal>
477 <receiver>VBoxMediaManagerDlg</receiver>
478 <slot>invokePopup(QListViewItem*,const QPoint&amp;,int)</slot>
479 </connection>
480 <connection>
481 <sender>mFloppyView</sender>
482 <signal>contextMenuRequested(QListViewItem*,const QPoint&amp;,int)</signal>
483 <receiver>VBoxMediaManagerDlg</receiver>
484 <slot>invokePopup(QListViewItem*,const QPoint&amp;,int)</slot>
485 </connection>
486 <connection>
487 <sender>mMediaTabs</sender>
488 <signal>currentChanged(QWidget*)</signal>
489 <receiver>VBoxMediaManagerDlg</receiver>
490 <slot>processCurrentChanged()</slot>
491 </connection>
492 <connection>
493 <sender>buttonHelp</sender>
494 <signal>clicked()</signal>
495 <receiver>&amp;vboxProblem()</receiver>
496 <slot>showHelpHelpDialog()</slot>
497 </connection>
498</connections>
499<includes>
500 <include location="global" impldecl="in implementation">qapplication.h</include>
501 <include location="global" impldecl="in implementation">qprogressdialog.h</include>
502 <include location="global" impldecl="in implementation">qfocusdata.h</include>
503 <include location="global" impldecl="in implementation">qobjectlist.h</include>
504 <include location="global" impldecl="in implementation">qdragobject.h</include>
505 <include location="global" impldecl="in implementation">qaction.h</include>
506 <include location="global" impldecl="in implementation">qpopupmenu.h</include>
507 <include location="global" impldecl="in implementation">qeventloop.h</include>
508 <include location="global" impldecl="in implementation">qstatusbar.h</include>
509 <include location="global" impldecl="in implementation">qsizegrip.h</include>
510 <include location="global" impldecl="in implementation">qlocale.h</include>
511 <include location="global" impldecl="in implementation">qregexp.h</include>
512 <include location="global" impldecl="in implementation">qpainter.h</include>
513 <include location="global" impldecl="in implementation">qprogressbar.h</include>
514 <include location="global" impldecl="in declaration">qvaluelist.h</include>
515 <include location="local" impldecl="in declaration">COMDefs.h</include>
516 <include location="local" impldecl="in declaration">VBoxGlobal.h</include>
517 <include location="local" impldecl="in declaration">VBoxProblemReporter.h</include>
518 <include location="local" impldecl="in implementation">VBoxDefs.h</include>
519 <include location="local" impldecl="in implementation">VBoxNewHDWzd.h</include>
520 <include location="local" impldecl="in implementation">VBoxToolBar.h</include>
521 <include location="local" impldecl="in implementation">QIRichLabel.h</include>
522</includes>
523<forwards>
524 <forward>class MediaItem</forward>
525 <forward>class VBoxToolBar</forward>
526 <forward>class QSizeGrip</forward>
527 <forward>class InfoPaneLabel</forward>
528 <forward>class QProgressBar</forward>
529</forwards>
530<variables>
531 <variable access="public">enum ResultCode { Rejected, Accepted };</variable>
532 <variable access="public">enum ItemAction { ItemAction_Added, ItemAction_Updated, ItemAction_Removed };</variable>
533 <variable access="public">enum Action { Action_Select, Action_Edit, Action_Remove, Action_Release };</variable>
534 <variable access="private">bool mIsPolished;</variable>
535 <variable access="private">CVirtualBox mVBox;</variable>
536 <variable access="private">int mType;</variable>
537 <variable access="private">bool mDoSelect;</variable>
538 <variable access="private">CMachine mSessionMachine;</variable>
539 <variable access="private">QUuid mSessionMachineId;</variable>
540 <variable access="private">QIconSet mHardDiskIconSet;</variable>
541 <variable access="private">QIconSet mDVDImageIconSet;</variable>
542 <variable access="private">QIconSet mFloppyImageIconSet;</variable>
543 <variable access="private">bool mHardDisksInaccessible;</variable>
544 <variable access="private">bool mDVDImagesInaccessible;</variable>
545 <variable access="private">bool mFloppyImagesInaccessible;</variable>
546 <variable access="private">QPopupMenu *mItemMenu;</variable>
547 <variable access="private">VBoxToolBar *mToolBar;</variable>
548 <variable access="private">int mRescode;</variable>
549 <variable access="private">bool mInLoop;</variable>
550 <variable access="private">QAction *mNewAction;</variable>
551 <variable access="private">QAction *mAddAction;</variable>
552 <variable access="private">QAction *mEditAction;</variable>
553 <variable access="private">QAction *mRemoveAction;</variable>
554 <variable access="private">QAction *mReleaseAction;</variable>
555 <variable access="private">QAction *mRefreshAction;</variable>
556 <variable access="private">InfoPaneLabel *mHDLocationLabel;</variable>
557 <variable access="private">InfoPaneLabel *mHDTypeLabel;</variable>
558 <variable access="private">InfoPaneLabel *mHDUsageLabel;</variable>
559 <variable access="private">InfoPaneLabel *mDVDLocationLabel;</variable>
560 <variable access="private">InfoPaneLabel *mDVDUsageLabel;</variable>
561 <variable access="private">InfoPaneLabel *mFloppyLocationLabel;</variable>
562 <variable access="private">InfoPaneLabel *mFloppyUsageLabel;</variable>
563 <variable>QSizeGrip *sizeGrip;</variable>
564 <variable>QPushButton *defaultButton;</variable>
565 <variable access="private">static VBoxMediaManagerDlg *mModelessDialog;</variable>
566 <variable access="private">QProgressBar *mProgressBar;</variable>
567 <variable access="private">QLabel *mProgressText;</variable>
568 <variable access="private">QUuid mHDSelectedId;</variable>
569 <variable access="private">QUuid mDVDSelectedId;</variable>
570 <variable access="private">QUuid mFloppySelectedId;</variable>
571 <variable access="private">bool mShowDiffs : 1;</variable>
572</variables>
573<slots>
574 <slot access="protected">mediaEnumStarted()</slot>
575 <slot access="protected">mediumEnumerated( const VBoxMedium &amp;, int )</slot>
576 <slot access="protected">mediaEnumFinished( const VBoxMediaList &amp; )</slot>
577 <slot access="protected">mediumAdded( const VBoxMedium &amp; )</slot>
578 <slot access="protected">mediumUpdated( const VBoxMedium &amp; )</slot>
579 <slot access="protected">mediumRemoved( VBoxDefs::MediaType, const QUuid &amp; )</slot>
580 <slot access="protected">machineStateChanged( const VBoxMachineStateChangeEvent &amp; )</slot>
581 <slot>refreshAll()</slot>
582 <slot access="protected">processCurrentChanged( QListViewItem * item )</slot>
583 <slot access="protected">processPressed( QListViewItem * item )</slot>
584 <slot access="protected">doNewMedium()</slot>
585 <slot access="protected">doAddMedium()</slot>
586 <slot access="protected">doRemoveMedium()</slot>
587 <slot access="protected">doReleaseMedium()</slot>
588 <slot access="protected">processDoubleClick( QListViewItem * item )</slot>
589 <slot access="protected">invokePopup( QListViewItem * item, const QPoint &amp; pos, int col )</slot>
590 <slot access="protected">processCurrentChanged()</slot>
591 <slot access="protected">accept()</slot>
592 <slot access="protected">reject()</slot>
593 <slot access="protected">mouseOnItem( QListViewItem *item )</slot>
594</slots>
595<functions>
596 <function access="private">init()</function>
597 <function access="private" returnType="int">result()</function>
598 <function access="private">setResult( int )</function>
599 <function returnType="int">exec()</function>
600 <function access="private">done( int )</function>
601 <function access="private" returnType="MediaItem *">findMediaItem( QListView *, const QUuid &amp; )</function>
602 <function access="private" returnType="bool">checkMediumFor( MediaItem *aItem, Action )</function>
603 <function access="private" returnType="bool">releaseMediumFrom( const VBoxMedium &amp;, const QUuid &amp; )</function>
604 <function returnType="QUuid">selectedId()</function>
605 <function returnType="QString">selectedLocation()</function>
606 <function>setup( VBoxDefs::MediaType, bool, bool = true, const CMachine &amp; = CMachine(), const QUuid &amp; = QUuid(), bool = false )</function>
607 <function access="private" returnType="QListView *">currentListView()</function>
608 <function access="private" returnType="QListView *">listView( VBoxDefs::MediaType )</function>
609 <function returnType="bool">eventFilter( QObject *, QEvent * )</function>
610 <function access="private">addDroppedImages( QStringList* )</function>
611 <function access="private">addMediumToList( const QString &amp; aLocation, VBoxDefs::MediaType aType )</function>
612 <function access="private" returnType="MediaItem *">createHardDiskItem( QListView *, const VBoxMedium &amp; )</function>
613 <function access="protected" returnType="bool">event( QEvent* )</function>
614 <function access="protected">showEvent( QShowEvent * )</function>
615 <function access="protected">resizeEvent( QResizeEvent* )</function>
616 <function access="protected">keyPressEvent( QKeyEvent* )</function>
617 <function access="protected">closeEvent( QCloseEvent* )</function>
618 <function access="protected">createInfoString( InfoPaneLabel *&amp;, QWidget*, int, int )</function>
619 <function access="protected" returnType="QPushButton *">searchDefaultButton()</function>
620 <function access="protected">setCurrentItem( QListView*, QListViewItem* )</function>
621 <function specifier="static"> showModeless( bool aRefresh = true )</function>
622 <function access="protected">clearInfoPanes()</function>
623 <function access="protected">prepareToRefresh( int aTotal = 0 )</function>
624 <function access="protected">updateTabIcons( MediaItem *, ItemAction )</function>
625 <function access="pritave">languageChangeImp()</function>
626 <function returnType="bool">inAttachMode() { return !mSessionMachine.isNull(); }</function>
627 <function returnType="bool">showDiffs() { return mShowDiffs; }</function>
628</functions>
629<layoutdefaults spacing="10" margin="10"/>
630</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