1 | <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
|
---|
2 | <class>VBoxHardDiskSettings</class>
|
---|
3 | <comment>
|
---|
4 | :mode=html:tabSize=4:indentSize=4:noTabs=true:
|
---|
5 | :folding=explicit:collapseFolds=1:
|
---|
6 |
|
---|
7 | VBox GUI: Hard Disk Settings UI (Qt Designer).
|
---|
8 |
|
---|
9 | Copyright (C) 2008 Sun Microsystems, Inc.
|
---|
10 |
|
---|
11 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
12 | available from http://www.virtualbox.org. This file is free software;
|
---|
13 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
14 | General Public License (GPL) as published by the Free Software
|
---|
15 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
16 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
17 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
18 |
|
---|
19 | Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
20 | Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
21 | additional information or have any questions.
|
---|
22 | </comment>
|
---|
23 | <widget class="QWidget">
|
---|
24 | <property name="name">
|
---|
25 | <cstring>VBoxHardDiskSettings</cstring>
|
---|
26 | </property>
|
---|
27 | <property name="geometry">
|
---|
28 | <rect>
|
---|
29 | <x>0</x>
|
---|
30 | <y>0</y>
|
---|
31 | <width>481</width>
|
---|
32 | <height>371</height>
|
---|
33 | </rect>
|
---|
34 | </property>
|
---|
35 | <property name="caption">
|
---|
36 | <string>VBoxHardDiskSettings</string>
|
---|
37 | </property>
|
---|
38 | <vbox>
|
---|
39 | <property name="name">
|
---|
40 | <cstring>unnamed</cstring>
|
---|
41 | </property>
|
---|
42 | <property name="margin">
|
---|
43 | <number>0</number>
|
---|
44 | </property>
|
---|
45 | <widget class="QGroupBox">
|
---|
46 | <property name="name">
|
---|
47 | <cstring>mGbHD</cstring>
|
---|
48 | </property>
|
---|
49 | <property name="title">
|
---|
50 | <string>&Hard Disks</string>
|
---|
51 | </property>
|
---|
52 | <vbox>
|
---|
53 | <property name="name">
|
---|
54 | <cstring>unnamed</cstring>
|
---|
55 | </property>
|
---|
56 | <widget class="QCheckBox">
|
---|
57 | <property name="name">
|
---|
58 | <cstring>mCbSATA</cstring>
|
---|
59 | </property>
|
---|
60 | <property name="text">
|
---|
61 | <string>&Enable SATA Controller</string>
|
---|
62 | </property>
|
---|
63 | <property name="accel">
|
---|
64 | <string>Alt+E</string>
|
---|
65 | </property>
|
---|
66 | <property name="whatsThis" stdset="0">
|
---|
67 | <string>
|
---|
68 | <qt>When checked, enables the virtual SATA
|
---|
69 | controller of this machine. Note that you cannot
|
---|
70 | attach hard disks to SATA ports when the virtual SATA
|
---|
71 | controller is disabled.</qt>
|
---|
72 | </string>
|
---|
73 | </property>
|
---|
74 | </widget>
|
---|
75 | <widget class="QGroupBox">
|
---|
76 | <property name="name">
|
---|
77 | <cstring>mGbHDList</cstring>
|
---|
78 | </property>
|
---|
79 | <property name="title">
|
---|
80 | <string>Hard Disks &Attachments</string>
|
---|
81 | </property>
|
---|
82 | <hbox>
|
---|
83 | <property name="name">
|
---|
84 | <cstring>unnamed</cstring>
|
---|
85 | </property>
|
---|
86 | <widget class="QListView">
|
---|
87 | <column>
|
---|
88 | <property name="text">
|
---|
89 | <string>Slot</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>Hard Disk</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 | <property name="name">
|
---|
110 | <cstring>mLvHD</cstring>
|
---|
111 | </property>
|
---|
112 | <property name="allColumnsShowFocus">
|
---|
113 | <bool>true</bool>
|
---|
114 | </property>
|
---|
115 | <property name="resizeMode">
|
---|
116 | <enum>AllColumns</enum>
|
---|
117 | </property>
|
---|
118 | <property name="whatsThis" stdset="0">
|
---|
119 | <string>
|
---|
120 | <qt>Lists all hard disks attached to
|
---|
121 | this machine. Use a mouse double-click or the
|
---|
122 | <tt>F2</tt>/<tt>Space</tt>
|
---|
123 | key on the highlighted item to activate the
|
---|
124 | drop-down list and choose the desired value.
|
---|
125 | Use buttons to the right to add or remove hard
|
---|
126 | disk attachments.</qt>
|
---|
127 | </string>
|
---|
128 | </property>
|
---|
129 | </widget>
|
---|
130 | <widget class="QLayoutWidget">
|
---|
131 | <property name="name">
|
---|
132 | <cstring>layout1</cstring>
|
---|
133 | </property>
|
---|
134 | <vbox>
|
---|
135 | <property name="name">
|
---|
136 | <cstring>unnamed</cstring>
|
---|
137 | </property>
|
---|
138 | <property name="spacing">
|
---|
139 | <number>0</number>
|
---|
140 | </property>
|
---|
141 | <widget class="QToolButton">
|
---|
142 | <property name="name">
|
---|
143 | <cstring>mBtnAdd</cstring>
|
---|
144 | </property>
|
---|
145 | <property name="focusPolicy">
|
---|
146 | <enum>TabFocus</enum>
|
---|
147 | </property>
|
---|
148 | <property name="text">
|
---|
149 | <string></string>
|
---|
150 | </property>
|
---|
151 | <property name="accel">
|
---|
152 | <string>Ins</string>
|
---|
153 | </property>
|
---|
154 | <property name="autoRaise">
|
---|
155 | <bool>true</bool>
|
---|
156 | </property>
|
---|
157 | <property name="toolTip" stdset="0">
|
---|
158 | <string>Add (Ins)</string>
|
---|
159 | </property>
|
---|
160 | <property name="whatsThis" stdset="0">
|
---|
161 | <string>
|
---|
162 | <qt> Adds a new hard disk
|
---|
163 | attachment.</qt>
|
---|
164 | </string>
|
---|
165 | </property>
|
---|
166 | </widget>
|
---|
167 | <widget class="QToolButton">
|
---|
168 | <property name="name">
|
---|
169 | <cstring>mBtnDel</cstring>
|
---|
170 | </property>
|
---|
171 | <property name="focusPolicy">
|
---|
172 | <enum>TabFocus</enum>
|
---|
173 | </property>
|
---|
174 | <property name="text">
|
---|
175 | <string></string>
|
---|
176 | </property>
|
---|
177 | <property name="accel">
|
---|
178 | <string>Del</string>
|
---|
179 | </property>
|
---|
180 | <property name="autoRaise">
|
---|
181 | <bool>true</bool>
|
---|
182 | </property>
|
---|
183 | <property name="toolTip" stdset="0">
|
---|
184 | <string>Remove (Del)</string>
|
---|
185 | </property>
|
---|
186 | <property name="whatsThis" stdset="0">
|
---|
187 | <string>
|
---|
188 | <qt>Removes the highlighted hard
|
---|
189 | disk attachment.</qt>
|
---|
190 | </string>
|
---|
191 | </property>
|
---|
192 | </widget>
|
---|
193 | <widget class="QToolButton">
|
---|
194 | <property name="name">
|
---|
195 | <cstring>mBtnOpn</cstring>
|
---|
196 | </property>
|
---|
197 | <property name="focusPolicy">
|
---|
198 | <enum>TabFocus</enum>
|
---|
199 | </property>
|
---|
200 | <property name="text">
|
---|
201 | <string></string>
|
---|
202 | </property>
|
---|
203 | <property name="accel">
|
---|
204 | <string>Ctrl+Space</string>
|
---|
205 | </property>
|
---|
206 | <property name="autoRaise">
|
---|
207 | <bool>true</bool>
|
---|
208 | </property>
|
---|
209 | <property name="toolTip" stdset="0">
|
---|
210 | <string>Select (Ctrl+Space)</string>
|
---|
211 | </property>
|
---|
212 | <property name="whatsThis" stdset="0">
|
---|
213 | <string>
|
---|
214 | <qt> Invokes the Virtual Disk
|
---|
215 | Manager to select a hard disk to
|
---|
216 | attach to the currently highlighted
|
---|
217 | slot.</qt>
|
---|
218 | </string>
|
---|
219 | </property>
|
---|
220 | </widget>
|
---|
221 | <spacer>
|
---|
222 | <property name="name">
|
---|
223 | <cstring>mSpHD</cstring>
|
---|
224 | </property>
|
---|
225 | <property name="orientation">
|
---|
226 | <enum>Vertical</enum>
|
---|
227 | </property>
|
---|
228 | <property name="sizeType">
|
---|
229 | <enum>Expanding</enum>
|
---|
230 | </property>
|
---|
231 | <property name="sizeHint">
|
---|
232 | <size>
|
---|
233 | <width>10</width>
|
---|
234 | <height>0</height>
|
---|
235 | </size>
|
---|
236 | </property>
|
---|
237 | </spacer>
|
---|
238 | </vbox>
|
---|
239 | </widget>
|
---|
240 | </hbox>
|
---|
241 | </widget>
|
---|
242 | </vbox>
|
---|
243 | </widget>
|
---|
244 | </vbox>
|
---|
245 | </widget>
|
---|
246 | <includes>
|
---|
247 | <include location="local" impldecl="in declaration">COMDefs.h</include>
|
---|
248 | <include location="global" impldecl="in implementation">qptrvector.h</include>
|
---|
249 | <include location="global" impldecl="in implementation">qcombobox.h</include>
|
---|
250 | <include location="global" impldecl="in implementation">qlistbox.h</include>
|
---|
251 | <include location="global" impldecl="in implementation">qobjectlist.h</include>
|
---|
252 | <include location="global" impldecl="in implementation">qaction.h</include>
|
---|
253 | <include location="global" impldecl="in implementation">qpopupmenu.h</include>
|
---|
254 | <include location="local" impldecl="in implementation">VBoxGlobal.h</include>
|
---|
255 | <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include>
|
---|
256 | <include location="local" impldecl="in implementation">VBoxMediaComboBox.h</include>
|
---|
257 | <include location="local" impldecl="in implementation">VBoxDiskImageManagerDlg.h</include>
|
---|
258 | <include location="local" impldecl="in implementation">VBoxHardDiskSettings.ui.h</include>
|
---|
259 | </includes>
|
---|
260 | <forwards>
|
---|
261 | <forward>class HDSlotUniquizer</forward>
|
---|
262 | <forward>class HDListItem</forward>
|
---|
263 | </forwards>
|
---|
264 | <variables>
|
---|
265 | <variable access="private">QListViewItem *mPrevItem;</variable>
|
---|
266 | <variable access="private">HDSlotUniquizer *mSlotUniquizer;</variable>
|
---|
267 | <variable access="private">CMachine mMachine;</variable>
|
---|
268 | </variables>
|
---|
269 | <signals>
|
---|
270 | <signal>afterCurrentChanged()</signal>
|
---|
271 | <signal>hddListChanged()</signal>
|
---|
272 | </signals>
|
---|
273 | <slots>
|
---|
274 | <slot>addHDItem()</slot>
|
---|
275 | <slot>delHDItem()</slot>
|
---|
276 | <slot>showVDM()</slot>
|
---|
277 | <slot>moveFocus( QListViewItem *, const QPoint &, int )</slot>
|
---|
278 | <slot>onCurrentChanged( QListViewItem * )</slot>
|
---|
279 | <slot>onToggleSATAController( bool aOn )</slot>
|
---|
280 | <slot>onAfterCurrentChanged( QListViewItem * )</slot>
|
---|
281 | <slot>onContextMenuRequested( QListViewItem *, const QPoint &, int )</slot>
|
---|
282 | </slots>
|
---|
283 | <functions>
|
---|
284 | <function access="private">init()</function>
|
---|
285 | <function>getFromMachine( const CMachine & )</function>
|
---|
286 | <function>putBackToMachine()</function>
|
---|
287 | <function returnType="QString">checkValidity()</function>
|
---|
288 | <function access="private" returnType="HDListItem*">createItem( HDSlotUniquizer *, const CMachine & )</function>
|
---|
289 | <function access="private" returnType="bool">event( QEvent * )</function>
|
---|
290 | <function access="private">showEvent( QShowEvent * )</function>
|
---|
291 | <function access="private" returnType="bool">eventFilter( QObject * , QEvent * )</function>
|
---|
292 | <function access="private">adjustList()</function>
|
---|
293 | </functions>
|
---|
294 | <layoutdefaults spacing="6" margin="11"/>
|
---|
295 | </UI>
|
---|