VBoxVMSettingsParallel.cpp revision ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeef
/** @file
*
* VBox frontends: Qt4 GUI ("VirtualBox"):
* VBoxVMSettingsParallel class implementation
*/
/*
* Copyright (C) 2006-2008 Sun Microsystems, Inc.
*
* 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.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#include "VBoxVMSettingsParallel.h"
#include "QIWidgetValidator.h"
#include "VBoxGlobal.h"
#include <QDir>
/* VBoxVMSettingsParallel stuff */
: QIWithRetranslateUI<QWidget> (0)
, mValidator (0)
{
/* Apply UI decorations */
/* Setup validation */
/* Setup constraints */
/* Set initial values */
/* Note: If you change one of the following don't forget retranslateUi. */
/* Setup connections */
this, SLOT (mGbParallelToggled (bool)));
/* Applying language settings */
}
{
/* Ensure everything is up-to-date */
}
void VBoxVMSettingsParallel::putBackToPort()
{
}
{
mValidator = aVal;
mValidator->revalidate();
}
{
return mLePath;
}
{
return pageTitle;
}
bool VBoxVMSettingsParallel::isUserDefined()
{
ulong a, b;
}
void VBoxVMSettingsParallel::retranslateUi()
{
/* Translate uic generated strings */
}
{
if (aOn)
if (mValidator)
mValidator->revalidate();
}
{
if (std)
{
}
}
/* VBoxVMSettingsParallelPage stuff */
: mValidator (0)
{
/* TabWidget creation */
mTabWidget = new QTabWidget (this);
}
{
/* Tab pages loading */
{
Assert (mValidator);
}
}
void VBoxVMSettingsParallelPage::putBackTo()
{
{
page->putBackToPort();
}
}
{
mValidator = aVal;
}
{
bool valid = true;
int index = 0;
{
static_cast<VBoxVMSettingsParallel*> (tab);
/* Check the predefined port number unicity */
{
if (!valid)
{
aTitle += ": " +
break;
}
}
/* Check the port path emptiness & unicity */
{
if (!valid)
{
tr ("Port path not specified ") :
tr ("Duplicate port path entered ");
aTitle += ": " +
break;
}
}
}
return valid;
}
{
for (int i = 0; i < mTabWidget->count(); ++ i)
{
}
}