1 | <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
|
---|
2 | <class>VBoxSnapshotsWgt</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="QWidget">
|
---|
22 | <property name="name">
|
---|
23 | <cstring>VBoxSnapshotsWgt</cstring>
|
---|
24 | </property>
|
---|
25 | <property name="geometry">
|
---|
26 | <rect>
|
---|
27 | <x>0</x>
|
---|
28 | <y>0</y>
|
---|
29 | <width>600</width>
|
---|
30 | <height>480</height>
|
---|
31 | </rect>
|
---|
32 | </property>
|
---|
33 | <property name="caption">
|
---|
34 | <string>VBoxSnapshotsWgt</string>
|
---|
35 | </property>
|
---|
36 | <vbox>
|
---|
37 | <property name="name">
|
---|
38 | <cstring>unnamed</cstring>
|
---|
39 | </property>
|
---|
40 | <property name="margin">
|
---|
41 | <number>0</number>
|
---|
42 | </property>
|
---|
43 | <property name="spacing">
|
---|
44 | <number>10</number>
|
---|
45 | </property>
|
---|
46 | <widget class="QWidgetStack">
|
---|
47 | <property name="name">
|
---|
48 | <cstring>widgetStack</cstring>
|
---|
49 | </property>
|
---|
50 | <widget class="QWidget">
|
---|
51 | <property name="name">
|
---|
52 | <cstring>pageListView</cstring>
|
---|
53 | </property>
|
---|
54 | <attribute name="id">
|
---|
55 | <number>0</number>
|
---|
56 | </attribute>
|
---|
57 | <vbox>
|
---|
58 | <property name="name">
|
---|
59 | <cstring>unnamed</cstring>
|
---|
60 | </property>
|
---|
61 | <property name="margin">
|
---|
62 | <number>0</number>
|
---|
63 | </property>
|
---|
64 | <property name="spacing">
|
---|
65 | <number>0</number>
|
---|
66 | </property>
|
---|
67 | <widget class="QListView">
|
---|
68 | <column>
|
---|
69 | <property name="text">
|
---|
70 | <string>[snapshot]</string>
|
---|
71 | </property>
|
---|
72 | <property name="clickable">
|
---|
73 | <bool>false</bool>
|
---|
74 | </property>
|
---|
75 | <property name="resizable">
|
---|
76 | <bool>true</bool>
|
---|
77 | </property>
|
---|
78 | </column>
|
---|
79 | <property name="name">
|
---|
80 | <cstring>listView</cstring>
|
---|
81 | </property>
|
---|
82 | </widget>
|
---|
83 | </vbox>
|
---|
84 | </widget>
|
---|
85 | </widget>
|
---|
86 | </vbox>
|
---|
87 | </widget>
|
---|
88 | <toolbars>
|
---|
89 | </toolbars>
|
---|
90 | <actions>
|
---|
91 | <actiongroup>
|
---|
92 | <property name="name">
|
---|
93 | <cstring>snapshotActionGroup</cstring>
|
---|
94 | </property>
|
---|
95 | <property name="text">
|
---|
96 | <string>snapshotActionGroup</string>
|
---|
97 | </property>
|
---|
98 | <property name="usesDropDown">
|
---|
99 | <bool>false</bool>
|
---|
100 | </property>
|
---|
101 | <action>
|
---|
102 | <property name="name">
|
---|
103 | <cstring>discardSnapshotAction</cstring>
|
---|
104 | </property>
|
---|
105 | <property name="text">
|
---|
106 | <string>Discard Snapshot</string>
|
---|
107 | </property>
|
---|
108 | <property name="menuText">
|
---|
109 | <string>&Discard Snapshot</string>
|
---|
110 | </property>
|
---|
111 | <property name="accel">
|
---|
112 | <string>Ctrl+Shift+D</string>
|
---|
113 | </property>
|
---|
114 | <property name="statusTip">
|
---|
115 | <string>Discard the selected snapshot of the virtual machine</string>
|
---|
116 | </property>
|
---|
117 | </action>
|
---|
118 | </actiongroup>
|
---|
119 | <actiongroup>
|
---|
120 | <property name="name">
|
---|
121 | <cstring>curStateActionGroup</cstring>
|
---|
122 | </property>
|
---|
123 | <property name="text">
|
---|
124 | <string>curStateActionGroup</string>
|
---|
125 | </property>
|
---|
126 | <property name="usesDropDown">
|
---|
127 | <bool>false</bool>
|
---|
128 | </property>
|
---|
129 | <action>
|
---|
130 | <property name="name">
|
---|
131 | <cstring>takeSnapshotAction</cstring>
|
---|
132 | </property>
|
---|
133 | <property name="text">
|
---|
134 | <string>Take Snapshot</string>
|
---|
135 | </property>
|
---|
136 | <property name="menuText">
|
---|
137 | <string>Take &Snapshot</string>
|
---|
138 | </property>
|
---|
139 | <property name="accel">
|
---|
140 | <string>Ctrl+Shift+S</string>
|
---|
141 | </property>
|
---|
142 | <property name="statusTip">
|
---|
143 | <string>Take a snapshot of the current virtual machine state</string>
|
---|
144 | </property>
|
---|
145 | </action>
|
---|
146 | <action>
|
---|
147 | <property name="name">
|
---|
148 | <cstring>revertToCurSnapAction</cstring>
|
---|
149 | </property>
|
---|
150 | <property name="text">
|
---|
151 | <string>Revert to Current Snapshot</string>
|
---|
152 | </property>
|
---|
153 | <property name="menuText">
|
---|
154 | <string>&Revert to Current Snapshot</string>
|
---|
155 | </property>
|
---|
156 | <property name="accel">
|
---|
157 | <string>Ctrl+Shift+R</string>
|
---|
158 | </property>
|
---|
159 | <property name="statusTip">
|
---|
160 | <string>Restore the virtual machine state from the state stored in the current snapshot</string>
|
---|
161 | </property>
|
---|
162 | </action>
|
---|
163 | <action>
|
---|
164 | <property name="name">
|
---|
165 | <cstring>discardCurSnapAndStateAction</cstring>
|
---|
166 | </property>
|
---|
167 | <property name="text">
|
---|
168 | <string>Discard Current Snapshot and State</string>
|
---|
169 | </property>
|
---|
170 | <property name="menuText">
|
---|
171 | <string>D&iscard Current Snapshot and State</string>
|
---|
172 | </property>
|
---|
173 | <property name="accel">
|
---|
174 | <string>Ctrl+Shift+B</string>
|
---|
175 | </property>
|
---|
176 | <property name="statusTip">
|
---|
177 | <string>Discard the current snapshot and revert the machine to the state it had before the snapshot was taken</string>
|
---|
178 | </property>
|
---|
179 | </action>
|
---|
180 | </actiongroup>
|
---|
181 | <action>
|
---|
182 | <property name="name">
|
---|
183 | <cstring>showSnapshotDetailsAction</cstring>
|
---|
184 | </property>
|
---|
185 | <property name="text">
|
---|
186 | <string>Show Details</string>
|
---|
187 | </property>
|
---|
188 | <property name="menuText">
|
---|
189 | <string>S&how Details</string>
|
---|
190 | </property>
|
---|
191 | <property name="accel">
|
---|
192 | <string>Ctrl+Space</string>
|
---|
193 | </property>
|
---|
194 | <property name="statusTip">
|
---|
195 | <string>Show details of the selected snapshot</string>
|
---|
196 | </property>
|
---|
197 | </action>
|
---|
198 | </actions>
|
---|
199 | <connections>
|
---|
200 | <connection>
|
---|
201 | <sender>listView</sender>
|
---|
202 | <signal>currentChanged(QListViewItem*)</signal>
|
---|
203 | <receiver>VBoxSnapshotsWgt</receiver>
|
---|
204 | <slot>listView_currentChanged(QListViewItem*)</slot>
|
---|
205 | </connection>
|
---|
206 | <connection>
|
---|
207 | <sender>listView</sender>
|
---|
208 | <signal>contextMenuRequested(QListViewItem*,const QPoint&,int)</signal>
|
---|
209 | <receiver>VBoxSnapshotsWgt</receiver>
|
---|
210 | <slot>listView_contextMenuRequested(QListViewItem*,const QPoint&,int)</slot>
|
---|
211 | </connection>
|
---|
212 | <connection>
|
---|
213 | <sender>discardSnapshotAction</sender>
|
---|
214 | <signal>activated()</signal>
|
---|
215 | <receiver>VBoxSnapshotsWgt</receiver>
|
---|
216 | <slot>discardSnapshot()</slot>
|
---|
217 | </connection>
|
---|
218 | <connection>
|
---|
219 | <sender>takeSnapshotAction</sender>
|
---|
220 | <signal>activated()</signal>
|
---|
221 | <receiver>VBoxSnapshotsWgt</receiver>
|
---|
222 | <slot>takeSnapshot()</slot>
|
---|
223 | </connection>
|
---|
224 | <connection>
|
---|
225 | <sender>revertToCurSnapAction</sender>
|
---|
226 | <signal>activated()</signal>
|
---|
227 | <receiver>VBoxSnapshotsWgt</receiver>
|
---|
228 | <slot>discardCurState()</slot>
|
---|
229 | </connection>
|
---|
230 | <connection>
|
---|
231 | <sender>discardCurSnapAndStateAction</sender>
|
---|
232 | <signal>activated()</signal>
|
---|
233 | <receiver>VBoxSnapshotsWgt</receiver>
|
---|
234 | <slot>discardCurSnapAndState()</slot>
|
---|
235 | </connection>
|
---|
236 | <connection>
|
---|
237 | <sender>showSnapshotDetailsAction</sender>
|
---|
238 | <signal>activated()</signal>
|
---|
239 | <receiver>VBoxSnapshotsWgt</receiver>
|
---|
240 | <slot>showSnapshotDetails()</slot>
|
---|
241 | </connection>
|
---|
242 | <connection>
|
---|
243 | <sender>&vboxGlobal()</sender>
|
---|
244 | <signal>machineDataChanged (const VBoxMachineDataChangeEvent &)</signal>
|
---|
245 | <receiver>VBoxSnapshotsWgt</receiver>
|
---|
246 | <slot>machineDataChanged (const VBoxMachineDataChangeEvent &)</slot>
|
---|
247 | </connection>
|
---|
248 | <connection>
|
---|
249 | <sender>&vboxGlobal()</sender>
|
---|
250 | <signal>machineStateChanged (const VBoxMachineStateChangeEvent &)</signal>
|
---|
251 | <receiver>VBoxSnapshotsWgt</receiver>
|
---|
252 | <slot>machineStateChanged (const VBoxMachineStateChangeEvent &)</slot>
|
---|
253 | </connection>
|
---|
254 | <connection>
|
---|
255 | <sender>&vboxGlobal()</sender>
|
---|
256 | <signal>sessionStateChanged (const VBoxSessionStateChangeEvent &)</signal>
|
---|
257 | <receiver>VBoxSnapshotsWgt</receiver>
|
---|
258 | <slot>sessionStateChanged (const VBoxSessionStateChangeEvent &)</slot>
|
---|
259 | </connection>
|
---|
260 | <connection>
|
---|
261 | <sender>&vboxGlobal()</sender>
|
---|
262 | <signal>snapshotChanged (const VBoxSnapshotEvent &)</signal>
|
---|
263 | <receiver>VBoxSnapshotsWgt</receiver>
|
---|
264 | <slot>snapshotChanged (const VBoxSnapshotEvent &)</slot>
|
---|
265 | </connection>
|
---|
266 | </connections>
|
---|
267 | <includes>
|
---|
268 | <include location="global" impldecl="in declaration">qaction.h</include>
|
---|
269 | <include location="global" impldecl="in declaration">qpopupmenu.h</include>
|
---|
270 | <include location="global" impldecl="in implementation">qpainter.h</include>
|
---|
271 | <include location="global" impldecl="in implementation">qdatetime.h</include>
|
---|
272 | <include location="global" impldecl="in implementation">qtooltip.h</include>
|
---|
273 | <include location="global" impldecl="in implementation">qmetaobject.h</include>
|
---|
274 | <include location="global" impldecl="in implementation">qregexp.h</include>
|
---|
275 | <include location="local" impldecl="in declaration">COMDefs.h</include>
|
---|
276 | <include location="local" impldecl="in implementation">VBoxUtils.h</include>
|
---|
277 | <include location="local" impldecl="in declaration">VBoxGlobal.h</include>
|
---|
278 | <include location="local" impldecl="in implementation">VBoxToolBar.h</include>
|
---|
279 | <include location="local" impldecl="in implementation">VBoxSelectorWnd.h</include>
|
---|
280 | <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include>
|
---|
281 | <include location="local" impldecl="in implementation">VBoxSnapshotDetailsDlg.h</include>
|
---|
282 | <include location="local" impldecl="in implementation">VBoxTakeSnapshotDlg.h</include>
|
---|
283 | <include location="local" impldecl="in implementation">VBoxSnapshotsWgt.ui.h</include>
|
---|
284 | </includes>
|
---|
285 | <variables>
|
---|
286 | <variable access="private">CMachine mMachine;</variable>
|
---|
287 | <variable access="private">QUuid mMachineId;</variable>
|
---|
288 | <variable access="private">KSessionState mSessionState;</variable>
|
---|
289 | <variable access="private">class ListViewItem; ListViewItem *mCurSnapshotItem;</variable>
|
---|
290 | <variable access="private">class ToolTip; ToolTip *mToolTip;</variable>
|
---|
291 | <variable access="private">QPopupMenu *mContextMenu;</variable>
|
---|
292 | <variable access="private">bool mContextMenuDirty;</variable>
|
---|
293 | </variables>
|
---|
294 | <slots>
|
---|
295 | <slot>listView_currentChanged( QListViewItem * )</slot>
|
---|
296 | <slot>listView_contextMenuRequested( QListViewItem *, const QPoint &, int )</slot>
|
---|
297 | <slot>discardSnapshot()</slot>
|
---|
298 | <slot>takeSnapshot()</slot>
|
---|
299 | <slot>discardCurState()</slot>
|
---|
300 | <slot>discardCurSnapAndState()</slot>
|
---|
301 | <slot>showSnapshotDetails()</slot>
|
---|
302 | <slot>machineDataChanged (const VBoxMachineDataChangeEvent & aE)</slot>
|
---|
303 | <slot>machineStateChanged (const VBoxMachineStateChangeEvent & aE)</slot>
|
---|
304 | <slot>sessionStateChanged (const VBoxSessionStateChangeEvent & aE)</slot>
|
---|
305 | <slot>snapshotChanged (const VBoxSnapshotEvent & aE)</slot>
|
---|
306 | </slots>
|
---|
307 | <functions>
|
---|
308 | <function access="private">init()</function>
|
---|
309 | <function access="private">destroy()</function>
|
---|
310 | <function>setMachine( const CMachine & aMachine )</function>
|
---|
311 | <function>refreshAll (bool aKeepSelected = false)</function>
|
---|
312 | <function access="private" returnType="ListViewItem *">findItem (const QUuid & aSnapshotId)</function>
|
---|
313 | <function access="private" returnType="ListViewItem *">curStateItem()</function>
|
---|
314 | <function access="private">populateSnapshots( const CSnapshot & snapshot, QListViewItem * item )</function>
|
---|
315 | </functions>
|
---|
316 | <pixmapinproject/>
|
---|
317 | <layoutdefaults spacing="6" margin="11"/>
|
---|
318 | </UI>
|
---|
319 |
|
---|