/* $Id$ */
/** @file
* VBox Qt GUI - VBoxTakeSnapshotDlg class implementation.
*/
/*
* Copyright (C) 2006-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
# include <precomp.h>
#else /* !VBOX_WITH_PRECOMPILED_HEADERS */
/* Qt includes: */
# include <QPushButton>
/* GUI includes: */
# include "VBoxTakeSnapshotDlg.h"
# include "UIMessageCenter.h"
# include "VBoxUtils.h"
# ifdef Q_WS_MAC
# include "UIMachineWindowNormal.h"
# include "VBoxSnapshotsWgt.h"
# endif /* Q_WS_MAC */
/* COM includes: */
# include "COMEnums.h"
# include "CMachine.h"
# include "CMedium.h"
# include "CMediumAttachment.h"
#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
{
/* Apply UI decorations */
/* Alt key filter */
/* Setup connections */
/* Check if machine have immutable attachments */
int immutableMediums = 0;
{
{
if (!medium.isNull() && !medium.GetParent().isNull() && medium.GetBase().GetType() == KMediumType_Immutable)
++ immutableMediums;
}
}
if (immutableMediums)
{
mLbInfo->setText(tr("Warning: You are taking a snapshot of a running machine which has %n immutable image(s) "
"attached to it. As long as you are working from this snapshot the immutable image(s) "
"will not be reset to avoid loss of data.", "",
}
else
{
}
}
{
/* Translate uic generated strings */
}
{
}