VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSnapshotsWgt.ui@ 2981

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

FE/Qt: Details/Snapshots tabs are not disabled as a whole any more; inappropriate actions are disabled instead.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 11.8 KB
Line 
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 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="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>&amp;Discard Snapshot</string>
110 </property>
111 <property name="accel">
112 <string>Ctrl+Shift+D</string>
113 </property>
114 </action>
115 </actiongroup>
116 <actiongroup>
117 <property name="name">
118 <cstring>curStateActionGroup</cstring>
119 </property>
120 <property name="text">
121 <string>curStateActionGroup</string>
122 </property>
123 <property name="usesDropDown">
124 <bool>false</bool>
125 </property>
126 <action>
127 <property name="name">
128 <cstring>takeSnapshotAction</cstring>
129 </property>
130 <property name="text">
131 <string>Take Snapshot</string>
132 </property>
133 <property name="menuText">
134 <string>Take &amp;Snapshot</string>
135 </property>
136 <property name="accel">
137 <string>Ctrl+Alt+S</string>
138 </property>
139 </action>
140 <action>
141 <property name="name">
142 <cstring>discardCurStateAction</cstring>
143 </property>
144 <property name="text">
145 <string>Discard Current State</string>
146 </property>
147 <property name="menuText">
148 <string>D&amp;iscard Current State</string>
149 </property>
150 <property name="accel">
151 <string>Ctrl+Alt+D</string>
152 </property>
153 </action>
154 <action>
155 <property name="name">
156 <cstring>discardCurSnapAndStateAction</cstring>
157 </property>
158 <property name="text">
159 <string>Discard Current Snapshot and State</string>
160 </property>
161 <property name="menuText">
162 <string>D&amp;iscard Current Snapshot and State</string>
163 </property>
164 <property name="accel">
165 <string>Ctrl+Alt+Shift+D</string>
166 </property>
167 </action>
168 </actiongroup>
169 <action>
170 <property name="name">
171 <cstring>showSnapshotDetailsAction</cstring>
172 </property>
173 <property name="text">
174 <string>Show Details</string>
175 </property>
176 <property name="menuText">
177 <string>S&amp;how Details</string>
178 </property>
179 <property name="accel">
180 <string>Space</string>
181 </property>
182 </action>
183</actions>
184<connections>
185 <connection>
186 <sender>listView</sender>
187 <signal>currentChanged(QListViewItem*)</signal>
188 <receiver>VBoxSnapshotsWgt</receiver>
189 <slot>listView_currentChanged(QListViewItem*)</slot>
190 </connection>
191 <connection>
192 <sender>listView</sender>
193 <signal>contextMenuRequested(QListViewItem*,const QPoint&amp;,int)</signal>
194 <receiver>VBoxSnapshotsWgt</receiver>
195 <slot>listView_contextMenuRequested(QListViewItem*,const QPoint&amp;,int)</slot>
196 </connection>
197 <connection>
198 <sender>discardSnapshotAction</sender>
199 <signal>activated()</signal>
200 <receiver>VBoxSnapshotsWgt</receiver>
201 <slot>discardSnapshot()</slot>
202 </connection>
203 <connection>
204 <sender>takeSnapshotAction</sender>
205 <signal>activated()</signal>
206 <receiver>VBoxSnapshotsWgt</receiver>
207 <slot>takeSnapshot()</slot>
208 </connection>
209 <connection>
210 <sender>discardCurStateAction</sender>
211 <signal>activated()</signal>
212 <receiver>VBoxSnapshotsWgt</receiver>
213 <slot>discardCurState()</slot>
214 </connection>
215 <connection>
216 <sender>discardCurSnapAndStateAction</sender>
217 <signal>activated()</signal>
218 <receiver>VBoxSnapshotsWgt</receiver>
219 <slot>discardCurSnapAndState()</slot>
220 </connection>
221 <connection>
222 <sender>showSnapshotDetailsAction</sender>
223 <signal>activated()</signal>
224 <receiver>VBoxSnapshotsWgt</receiver>
225 <slot>showSnapshotDetails()</slot>
226 </connection>
227 <connection>
228 <sender>&amp;vboxGlobal()</sender>
229 <signal>machineDataChanged (const VBoxMachineDataChangeEvent &amp;)</signal>
230 <receiver>VBoxSnapshotsWgt</receiver>
231 <slot>machineDataChanged (const VBoxMachineDataChangeEvent &amp;)</slot>
232 </connection>
233 <connection>
234 <sender>&amp;vboxGlobal()</sender>
235 <signal>machineStateChanged (const VBoxMachineStateChangeEvent &amp;)</signal>
236 <receiver>VBoxSnapshotsWgt</receiver>
237 <slot>machineStateChanged (const VBoxMachineStateChangeEvent &amp;)</slot>
238 </connection>
239 <connection>
240 <sender>&amp;vboxGlobal()</sender>
241 <signal>sessionStateChanged (const VBoxSessionStateChangeEvent &amp;)</signal>
242 <receiver>VBoxSnapshotsWgt</receiver>
243 <slot>sessionStateChanged (const VBoxSessionStateChangeEvent &amp;)</slot>
244 </connection>
245 <connection>
246 <sender>&amp;vboxGlobal()</sender>
247 <signal>snapshotChanged (const VBoxSnapshotEvent &amp;)</signal>
248 <receiver>VBoxSnapshotsWgt</receiver>
249 <slot>snapshotChanged (const VBoxSnapshotEvent &amp;)</slot>
250 </connection>
251</connections>
252<includes>
253 <include location="global" impldecl="in declaration">qaction.h</include>
254 <include location="global" impldecl="in declaration">qpopupmenu.h</include>
255 <include location="global" impldecl="in implementation">qpainter.h</include>
256 <include location="global" impldecl="in implementation">qdatetime.h</include>
257 <include location="global" impldecl="in implementation">qtooltip.h</include>
258 <include location="global" impldecl="in implementation">qmetaobject.h</include>
259 <include location="local" impldecl="in declaration">COMDefs.h</include>
260 <include location="local" impldecl="in implementation">VBoxUtils.h</include>
261 <include location="local" impldecl="in declaration">VBoxGlobal.h</include>
262 <include location="local" impldecl="in implementation">VBoxToolBar.h</include>
263 <include location="local" impldecl="in implementation">VBoxSelectorWnd.h</include>
264 <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include>
265 <include location="local" impldecl="in implementation">VBoxSnapshotDetailsDlg.h</include>
266 <include location="local" impldecl="in implementation">VBoxTakeSnapshotDlg.h</include>
267 <include location="local" impldecl="in implementation">VBoxSnapshotsWgt.ui.h</include>
268</includes>
269<variables>
270 <variable access="private">CMachine mMachine;</variable>
271 <variable access="private">QUuid mMachineId;</variable>
272 <variable access="private">CEnums::SessionState mSessionState;</variable>
273 <variable access="private">class ListViewItem; ListViewItem *mCurSnapshotItem;</variable>
274 <variable access="private">class ToolTip; ToolTip *mToolTip;</variable>
275 <variable access="private">QPopupMenu *mContextMenu;</variable>
276 <variable access="private">bool mContextMenuDirty;</variable>
277</variables>
278<slots>
279 <slot>listView_currentChanged( QListViewItem * )</slot>
280 <slot>listView_contextMenuRequested( QListViewItem *, const QPoint &amp;, int )</slot>
281 <slot>discardSnapshot()</slot>
282 <slot>takeSnapshot()</slot>
283 <slot>discardCurState()</slot>
284 <slot>discardCurSnapAndState()</slot>
285 <slot>showSnapshotDetails()</slot>
286 <slot>machineDataChanged (const VBoxMachineDataChangeEvent &amp; aE)</slot>
287 <slot>machineStateChanged (const VBoxMachineStateChangeEvent &amp; aE)</slot>
288 <slot>sessionStateChanged (const VBoxSessionStateChangeEvent &amp; aE)</slot>
289 <slot>snapshotChanged (const VBoxSnapshotEvent &amp; aE)</slot>
290</slots>
291<functions>
292 <function access="private">init()</function>
293 <function access="private">destroy()</function>
294 <function>setMachine( const CMachine &amp; aMachine )</function>
295 <function>refreshAll (bool aKeepSelected = false)</function>
296 <function access="private" returnType="ListViewItem *">findItem (const QUuid &amp; aSnapshotId)</function>
297 <function access="private" returnType="ListViewItem *">curStateItem()</function>
298 <function access="private">populateSnapshots( const CSnapshot &amp; snapshot, QListViewItem * item )</function>
299</functions>
300<pixmapinproject/>
301<layoutdefaults spacing="6" margin="11"/>
302</UI>
303
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