UIWizardExportAppPageBasic4.cpp revision 8bf8c6b1914c9e7e60b1547888400668f1774497
/* $Id$ */
/** @file
*
* VBox frontends: Qt4 GUI ("VirtualBox"):
* UIWizardExportAppPageBasic4 class implementation
*/
/*
* Copyright (C) 2009-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.
*/
/* Qt includes: */
#include <QVBoxLayout>
/* GUI includes: */
#include "UIWizardExportAppPageBasic4.h"
#include "UIWizardExportApp.h"
#include "VBoxGlobal.h"
#include "UIMessageCenter.h"
#include "QILabelSeparator.h"
#include "QIRichTextLabel.h"
/* COM includes: */
#include "CAppliance.h"
{
}
{
/* Refresh settings widget: */
if (fResult)
{
/* Iterate over all the selected machine ids: */
{
/* Get the machine with the uuid: */
if (fResult)
{
/* Add the export description to our appliance object: */
CVirtualSystemDescription vsd = machine.Export(*pAppliance, qobject_cast<UIWizardExportApp*>(wizardImp())->uri());
if (!fResult)
{
return;
}
/* Now add some new fields the user may change: */
}
else
break;
}
/* Make sure the settings widget get the new descriptions: */
}
if (!fResult)
}
{
/* Create widgets: */
{
m_pLabel = new QIRichTextLabel(this);
m_pApplianceWidget = new UIApplianceExportEditorWidget(this);
{
}
}
/* Register classes: */
/* Register fields: */
}
{
/* Translate page: */
/* Translate widgets: */
"to the virtual appliance. You can change it by double "
"clicking on individual lines."));
}
{
/* Translate page: */
/* Refresh appliance settings widget: */
}
{
/* Initial result: */
bool fResult = true;
/* Lock finish button: */
/* Try to export appliance: */
if (fResult)
/* Unlock finish button: */
/* Return result: */
return fResult;
}