VBoxVMInformationDlg.ui.h revision df30dbdfdbce7bc58d1a71d98772953017bc3269
//Added by qt3to4:
#include <QKeyEvent>
#include <Q3Frame>
#include <q3mimefactory.h>
#include <QResizeEvent>
#include <QEvent>
#include <Q3VBoxLayout>
#include <QShowEvent>
/**
*
* VBox frontends: Qt GUI ("VirtualBox"):
* "VirtualBox Information Dialog" dialog UI include (Qt Designer)
*/
/*
* Copyright (C) 2006 innotek 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.
*/
/****************************************************************************
** 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.
*****************************************************************************/
{
{
/* creating new information dialog if there is no one existing */
/* read new machine data for this information dialog */
}
info->setActiveWindow();
}
void VBoxVMInformationDlg::init()
{
/* dialog initially is not polished */
mIsPolished = false;
/* search the default button */
/* setup a dialog icon */
/* statusbar initially disabled */
/* setup size grip */
/* logs list creation */
/* details view creation */
/* statistic view creation */
/* full list of statistics counters to get total info */
// mDefStatText = new QTextBrowser();
// mDefStatText->setFrameShape (QFrame::NoFrame);
// mDefStatText->setPaper (backgroundBrush());
// mInfoStack->addTab (mDefStatText,
// VBoxGlobal::iconSet (":/show_logs_16px.png"),
// QString::null);
/* applying language settings */
/* show statistics page and make it focused */
}
void VBoxVMInformationDlg::destroy()
{
/* save dialog attributes for this vm */
}
{
/* store related machine pointers */
/* loading language constants */
/* details page update */
/* statistics page update */
/* setup handlers */
/* preload dialog attributes for this vm */
{
mWidth = 400;
mHeight = 450;
mMax = false;
}
else
{
}
}
{
/* Setup a dialog caption. */
/* Setup a tabwidget page names. */
// mInfoStack->changeTab (mDefStatText, tr ("De&fault Stat"));
/* Clear counter names initially. */
/* HD statistics: */
/* Statistics page update. */
}
{
/* this mechanism is used for searching the default dialog button
* and similar the same mechanism in Qt::QDialog inner source */
QPushButton *button = 0;
{
break;
}
return button;
}
{
{
/* auto-default button focus-in processor used to move the "default"
* button property into the currently focused button */
{
{
if (mDefaultButton)
}
break;
}
/* auto-default button focus-out processor used to remove the "default"
* button property from the previously focused button */
{
{
if (mDefaultButton)
}
break;
}
default:
break;
}
}
{
{
case QEvent::LanguageChange:
{
break;
}
case QEvent::WindowStateChange:
{
if (mIsPolished)
mMax = isMaximized();
else if (mMax == isMaximized())
mIsPolished = true;
break;
}
default:
break;
}
return result;
}
{
{
{
/* processing the return keypress for the auto-default button */
case Qt::Key_Return:
{
if (currentDefault)
break;
}
/* processing the escape keypress as the close dialog action */
case Qt::Key_Escape:
{
close();
break;
}
}
}
else
}
{
/* one may think that QWidget::polish() is the right place to do things
* below, but apparently, by the time when QWidget::polish() is called,
* the widget style & layout are not fully done, at least the minimum
* size hint is not properly calculated. Since this is sometimes necessary,
* we provide our own "polish" implementation. */
if (mIsPolished)
return;
/* load window size and state */
if (mMax)
else
mIsPolished = true;
}
{
/* adjust the size-grip location for the current resize event */
/* store dialog size for this vm */
if (mIsPolished && !isMaximized())
{
}
}
void VBoxVMInformationDlg::updateDetails()
{
/* details page update */
false /* withLinks */, false /* refresh */));
}
{
/* focusing the browser on shown page */
}
{
/* Look for all statistics for filtering purposes. */
// dbg.GetStats ("*", false, info);
// mDefStatText->setText (info);
/* Process selected statistics: */
{
}
/* Statistics page update. */
}
{
/* Filters the statistic counters body. */
{
/* Parse incoming counter and fill the counter-element values. */
{
}
/* Fill the output with the necessary counter's value.
* Currently we are using "c" field of simple counter only. */
}
}
{
return;
/* Screen & VT-X Runtime Parameters */
{
if (bpp)
}
/* Hard Disk Statistics. */
/* Network Adapters Statistics. */
/* Show full composed page. */
}
{
{
}
else
return result;
}
{
return result;
}
{
QString body = "<tr><td></td><td><nobr>%1</nobr></td><td align=right><nobr>%2%3</nobr></td><td width=100%></td></tr>";
{
{
}
}
return result;
}
/* Old code for two columns support */
#if 0
{
"<td colspan=2><nobr><u>%2</u></nobr></td></tr>";
"<td><nobr>%3</nobr></td><td width=50%><nobr>%4</nobr></td></tr>";
/* Screen & VT-X Runtime Parameters */
{
if (bpp)
}
/* Hard Disk Statistics. */
/* Network Adapters Statistics. Counters are currently missed. */
/* Show full composed page. */
}
{
"<td><nobr>%3</nobr></td><td width=50%><nobr>%4</nobr></td></tr>";
{
/* Processing first column */
{
}
{
}
/* Processing second column */
{
}
{
}
}
return result;
}
#endif