VBoxTakeSnapshotDlg.cpp revision e64031e20c39650a7bc902a3e1aba613b9415dee
/* $Id$ */
/** @file
*
* VBox frontends: Qt4 GUI ("VirtualBox"):
* VBoxTakeSnapshotDlg class implementation
*/
/*
* Copyright (C) 2006-2009 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 */
/* Global includes */
#include <QPushButton>
/* Local includes */
#include "VBoxTakeSnapshotDlg.h"
#include "VBoxProblemReporter.h"
#include "VBoxUtils.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
{
}
}
void VBoxTakeSnapshotDlg::retranslateUi()
{
/* Translate uic generated strings */
}
{
}