VBoxGlobalSettingsDlg.ui.h revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
/**
*
* VBox frontends: Qt GUI ("VirtualBox"):
* "Global 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.
*****************************************************************************/
/**
* Returns the path to the item in the form of 'grandparent > parent > item'
* using the text of the first column of every item.
*/
{
QString p;
while (cur)
{
if (!p.isNull())
p = sep + p;
}
return p;
}
enum
{
// listView column numbers
listView_Category = 0,
listView_Id = 1,
listView_Link = 2,
};
void VBoxGlobalSettingsDlg::init()
{
/* all pages are initially valid */
valid = true;
buttonOk->setEnabled( true );
warningLabel->setHidden( true );
warningPixmap->setHidden( true );
/* disable unselecting items by clicking in the unused area of the list */
/* hide the header and internal columns */
/* sort by the id column (to have pages in the desired order) */
/* disable further sorting (important for network adapters) */
/* set the first item selected */
/* page title font is derived from the system font */
f.setBold( true );
titleLabel->setFont( f );
/* setup the what's this label */
QApplication::setGlobalMouseTracking (true);
4 /* seems that RichText adds some margin */ +
/*
* create and layout non-standard widgets
* ----------------------------------------------------------------------
*/
tr ("Displays the key used as a Host Key in the VM window. Activate the "
"entry field and press a new Host Key. Note that alphanumeric, "
"cursor movement and editing keys cannot be used as a Host Key."));
/*
* setup connections and set validation for pages
* ----------------------------------------------------------------------
*/
/* General page */
/// @todo (dmik) remove
// leVDIFolder->setValidator (new QRegExpValidator (QRegExp (".+"), this));
// leMachineFolder->setValidator (new QRegExpValidator (QRegExp (".+"), this));
/* Keyboard page */
/*
* set initial values
* ----------------------------------------------------------------------
*/
/* General page */
/* keyboard page */
/*
* update the Ok button state for pages with validation
* (validityChanged() connected to enableNext() will do the job)
*/
}
{
if (!object->isWidgetType())
{
{
else
break;
}
{
updateWhatsThis (true /* gotFocus */);
break;
}
default:
break;
}
}
{
}
{
/* detect the overall validity */
bool newValid = true;
{
QObjectListIt it (*l);
{
++it;
}
delete l;
}
{
if (valid)
else
warningSpacer->changeSize (0, 0);
}
}
{
/* do individual validations for pages */
/* currently nothing */
}
/**
* Reads global settings from the given VMGlobalSettings instance
* and from the given CSystemProperties object.
*/
const VMGlobalSettings &gs)
{
/* default folders */
/* proprietary GUI settings */
// wvalXXXX->revalidate();
}
/**
* Writes global settings to the given VMGlobalSettings instance
* and to the given CSystemProperties object.
*/
{
/* default folders */
if (leVDIFolder->isModified())
return;
/* proprietary GUI settings */
}
{
if (!gotFocus)
{
}
else
{
}
/* if the given widget lacks the whats'this text, look at its parent */
{
break;
}
}
{
if (!warningString.isEmpty())
else
updateWhatsThis (true);
}
{
/*
* do this instead of le->setText (QString::null) to cause
* isModified() return true
*/
}
{
{
/* set the first parent directory that exists as the current */
#if 0 /** @todo fix this linux bustage properly */
#else
#endif
do
{
}
}
{
/* remove trailing slash */
/*
* do this instead of le->setText (folder) to cause
* isModified() return true
*/
}
}