VBoxLicenseViewer.cpp revision cb48b678483eed76053da41c3f0f2600eeeed5f4
/* $Id$ */
/** @file
*
* VBox frontends: Qt4 GUI ("VirtualBox"):
* VBoxLicenseViewer class implementation
*/
/*
* Copyright (C) 2006-2010 Oracle Corporation
*
* 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.
*/
# include "precomp.h"
#else /* !VBOX_WITH_PRECOMPILED_HEADERS */
#include "VBoxLicenseViewer.h"
#include "QIDialogButtonBox.h"
#include "VBoxGlobal.h"
#include "UIMessageCenter.h"
/* Qt includes */
#include <QTextBrowser>
#include <QPushButton>
#include <QVBoxLayout>
#include <QScrollBar>
#include <QFile>
#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
, mLicenseText (0)
, mAgreeButton (0)
, mDisagreeButton (0)
{
#ifndef Q_WS_WIN
/* Application icon. On Win32, it's built-in to the executable. */
#endif
mLicenseText = new QTextBrowser (this);
mAgreeButton = new QPushButton (this);
mDisagreeButton = new QPushButton (this);
SLOT (onScrollBarMoving (int)));
}
{
/* Read license file: */
{
}
else
{
}
}
{
/* Set license text: */
return exec();
}
void VBoxLicenseViewer::retranslateUi()
{
}
int VBoxLicenseViewer::exec()
{
}
{
}
void VBoxLicenseViewer::unlockButtons()
{
mAgreeButton->setEnabled (true);
mDisagreeButton->setEnabled (true);
}
{
}
{
{
/* Doesn't work on wm's like ion3 where the window starts
* maximized: isActiveWindow() */
default:
break;
}
}