VBoxVMNetworkSettings.ui.h revision b9042bb7a5efd07d617a8a7d812b669d75682779
/**
*
* VBox frontends: Qt GUI ("VirtualBox"):
* "VM network settings" dialog UI include (Qt Designer)
*/
/*
* Copyright (C) 2006 InnoTek Systemberatung GmbH
*
* 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 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.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
** If you wish to add, delete or rename functions or slots use
** Qt Designer which will update this file, preserving your code. Create an
** init() function in place of a constructor, and a destroy() function in
** place of a destructor.
*****************************************************************************/
void VBoxVMNetworkSettings::init()
{
// setup validation
// ----------------------------------------------------------------------
#if defined Q_WS_X11
#endif
// set initial values
// ----------------------------------------------------------------------
#if defined Q_WS_WIN
#endif
#if defined Q_WS_WIN
// disable unused interface name UI
frmHostInterface_X11->setHidden (true);
// setup iconsets -- qdesigner is not capable...
"nw_disabled_16px.png"));
"delete_dis_16px.png"));
#else
// disable unused interface name UI
frmHostInterface_WIN->setHidden (true);
// setup iconsets -- qdesigner is not capable...
"select_file_dis_16px.png"));
"select_file_dis_16px.png"));
#endif
#if !defined Q_WS_X11
// hide unavailable settings (TAP setup and terminate apps)
frmTAPSetupTerminate->setHidden (true);
#endif
// the TAP file descriptor setting is always invisible -- currently not used
// (remove the relative code at all? -- just leave for some time...)
frmTAPDescriptor->setHidden (true);
}
{
#if defined Q_WS_WIN
/* clear lists */
lbHostInterface->clear();
/* read a QStringList of interface names */
/* setup a list of interface names */
if (networkInterfaceList.count())
else
/* disable interface delete button */
#endif
}
{
for (int i = 0; i < cbNetworkAttachment->count(); i ++)
{
break;
}
#if defined Q_WS_WIN
else
{
if (adapterNode)
}
#else
#endif
#if defined Q_WS_X11
#endif
}
{
switch (type)
{
case CEnums::NoNetworkAttachment:
break;
case CEnums::NATNetworkAttachment:
break;
break;
default:
break;
}
{
#if defined Q_WS_WIN
#else
#endif
#if defined Q_WS_X11
#endif
}
}
{
}
{
}
{
#if defined Q_WS_WIN
#else
return true;
#endif
}
{
}
{
// QFileDialog dlg ("/", QString::null, this);
// dlg.setMode (QFileDialog::ExistingFile);
// dlg.setViewMode (QFileDialog::List);
// dlg.setCaption (tr ("Select TAP setup application"));
// if (dlg.exec() == QDialog::Accepted)
// leTAPSetup->setText (dlg.selectedFile());
"/",
this,
NULL,
tr ("Select TAP setup application"));
if (selected)
}
{
// QFileDialog dlg ("/", QString::null, this);
// dlg.setMode (QFileDialog::ExistingFile);
// dlg.setViewMode (QFileDialog::List);
// dlg.setCaption (tr ("Select TAP terminate application"));
// if (dlg.exec() == QDialog::Accepted)
// leTAPTerminate->setText (dlg.selectedFile());
"/",
this,
NULL,
tr ("Select TAP terminate application"));
if (selected)
}
{
#if defined Q_WS_WIN
/* allow the started helper process to make itself the foreground window */
/* check interface name */
{
tr ("Host network interface name cannot be empty"));
return;
}
/* create interface */
{
if (progress.GetResultCode() == 0)
{
/* move the selection to the new created item */
if (createdNode)
else
}
else
}
else
/* allow the started helper process to make itself the foreground window */
#endif
}
{
#if defined Q_WS_WIN
/* allow the started helper process to make itself the foreground window */
/* check interface name */
return;
{
/* delete interface */
{
if (progress.GetResultCode() == 0)
{
/* move the selection to the start of the list */
lbHostInterface->setSelected(0, true);
}
else
}
}
#endif
}