VBoxVMNetworkSettings.ui.h revision 115aa2f5ce3a84a83610f1b65bbd04340700643d
/**
*
* 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.
*****************************************************************************/
/**
* VBoxVMNetworkSettings class to use as network interface setup page.
*/
void VBoxVMNetworkSettings::init()
{
#ifndef Q_WS_MAC /* not yet on the Mac */
#endif
#if defined Q_WS_X11
#else
/* hide unavailable settings (TAP setup and terminate apps) */
frmTAPSetupTerminate->setHidden (true);
/* disable unused interface name UI */
frmHostInterface_X11->setHidden (true);
#endif
#if defined Q_WS_WIN
/* disable unused interface name UI */
#else
/* disable unused interface name UI */
txHostInterface_WIN->setHidden (true);
cbHostInterfaceName->setHidden (true);
/* setup iconsets */
"select_file_dis_16px.png"));
"select_file_dis_16px.png"));
#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_MAC
/* no Host Interface Networking on the Mac yet */
#endif
}
{
#if defined Q_WS_WIN
#else
return true;
#endif
}
{
#if defined Q_WS_WIN
/* save current list item name */
/* clear current list */
/* load current list items */
{
if (index != -1)
}
else
{
}
#else
#endif
}
{
for (int i = 0; i < cbNetworkAttachment->count(); i ++)
{
break;
}
#if defined Q_WS_WIN
{
break;
}
#else
#endif
#if defined Q_WS_X11
#endif
}
{
switch (type)
{
case CEnums::NoNetworkAttachment:
break;
case CEnums::NATNetworkAttachment:
break;
break;
case CEnums::InternalNetworkAttachment:
break;
default:
break;
}
{
#if defined Q_WS_WIN
#else
#endif
#if defined Q_WS_X11
#endif
}
}
{
}
void VBoxVMNetworkSettings::revalidate()
{
mWalidator->revalidate();
}
{
#if defined Q_WS_WIN
if (!aOn)
{
}
#else
#endif
}
{
#if defined Q_WS_WIN
#else
#endif
}
{
#if defined Q_WS_WIN
#else
return false;
#endif
}
{
}
{
"/",
this,
NULL,
tr ("Select TAP setup application"));
if (selected)
}
{
"/",
this,
NULL,
tr ("Select TAP terminate application"));
if (selected)
}