/* $Id$ */
/** @file
* VBox Qt GUI - UIWizardCloneVMPageBasic3 class implementation.
*/
/*
* Copyright (C) 2011-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 */
/* Global includes: */
# include <QVBoxLayout>
# include <QRadioButton>
/* Local includes: */
# include "UIWizardCloneVMPageBasic3.h"
# include "UIWizardCloneVM.h"
# include "QIRichTextLabel.h"
#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
{
}
{
if (m_pMachineAndChildsRadio->isChecked())
return KCloneMode_MachineAndChildStates;
else if (m_pAllRadio->isChecked())
return KCloneMode_AllStates;
return KCloneMode_MachineState;
}
{
switch (cloneMode)
{
}
}
{
/* Create widgets: */
{
m_pLabel = new QIRichTextLabel(this);
{
m_pMachineRadio = new QRadioButton(this);
{
m_pMachineRadio->setChecked(true);
}
m_pMachineAndChildsRadio = new QRadioButton(this);
{
if (!m_fShowChildsOption)
}
m_pAllRadio = new QRadioButton(this);
}
}
/* Register classes: */
/* Register fields: */
}
{
/* Translate page: */
/* Translate widgets: */
"should be cloned with the machine.</p>");
"the new machine will reflect the current state "
"of the original machine and will have no snapshots.</p>");
const QString strOpt2 = UIWizardCloneVM::tr("<p>If you choose <b>Current snapshot tree branch</b>, "
"the new machine will reflect the current state "
"of the original machine and will have matching snapshots "
"for all snapshots in the tree branch "
"starting at the current state in the original machine.</p>");
"the new machine will reflect the current state "
"of the original machine and will have matching snapshots "
"for all snapshots in the original machine.</p>");
if (m_fShowChildsOption)
else
}
{
/* Translate page: */
}
{
/* Initial result: */
bool fResult = true;
/* Lock finish button: */
/* Try to clone VM: */
if (fResult)
/* Unlock finish button: */
/* Return result: */
return fResult;
}