~ubuntu-branches/ubuntu/gutsy/virtualbox-ose/gutsy

« back to all changes in this revision

Viewing changes to src/VBox/Frontends/VirtualBox/ui/VBoxSnapshotsWgt.ui

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-09-08 16:44:58 UTC
  • Revision ID: james.westby@ubuntu.com-20070908164458-wao29470vqtr8ksy
Tags: upstream-1.5.0-dfsg2
ImportĀ upstreamĀ versionĀ 1.5.0-dfsg2

Show diffs side-by-side

added added

removed removed

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