VBoxSnapshotsWgt.cpp revision f82b88f35de0ce58eb104bf3f8af5e295cd16528
0N/A * available from http://www.virtualbox.org. This file is free software;
1472N/A * Clara, CA 95054 USA or visit http://www.sun.com if you need
0N/A#include <QHeaderView>
0N/A#include <QScrollBar>
0N/A#include <VBoxSnapshotsWgt.h>
#include <VBoxProblemReporter.h>
#include <VBoxSnapshotDetailsDlg.h>
#include <VBoxTakeSnapshotDlg.h>
#include <VBoxToolBar.h>
recache();
recache();
recache();
recache();
bool isCurrentStateItem() const
int level()
int result = 0;
++ result;
return result;
adjustText();
adjustText();
void recache()
mCurStateModified = false;
parent() != 0 ?
VBoxSnapshotsWgt::tr ("The current state is identical to the state stored in the current snapshot") :
adjustText();
void adjustText()
void recacheToolTip()
if (bold())
if (dateTimeToday)
bool mOnline;
bool mCurStateModified;
class SnapshotEditBlocker
mProtector = true;
mProtector = false;
bool &mProtector;
, mCurSnapshotItem (0)
, mEditProtector (false)
refreshAll();
if (item)
mSnapshotActionGroup->setEnabled (!busy && mCurSnapshotItem && item && !item->isCurrentStateItem());
mCurStateActionGroup->setEnabled (!busy && mCurSnapshotItem && item && item->isCurrentStateItem() ||
if (!snapshotItem)
if (mEditProtector)
if (item)
int maxSnapShotIndex = 0;
while (*iterator)
++ iterator;
mShowSnapshotDetailsAction->setToolTip (mShowSnapshotDetailsAction->text().remove ('&').remove ('.') +
if (cur)
if (cur == 0)
if (cur == 0)
mCurSnapshotItem = 0;
while (*it)
return lvi;
++ it;