UIMachineSettingsGeneral.h revision 8bf8c6b1914c9e7e60b1547888400668f1774497
/** @file
*
* VBox frontends: Qt4 GUI ("VirtualBox"):
* UIMachineSettingsGeneral class declaration
*/
/*
* Copyright (C) 2006-2011 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.
*/
#ifndef __UIMachineSettingsGeneral_h__
#define __UIMachineSettingsGeneral_h__
/* Local includes: */
#include "UISettingsPage.h"
#include "UIMachineSettingsGeneral.gen.h"
/* Machine settings / General page / Data: */
struct UIDataSettingsMachineGeneral
{
/* Default constructor: */
, m_fSaveMountedAtRuntime(false)
, m_fShowMiniToolBar(false)
, m_fMiniToolBarAtTop(false)
, m_strDescription(QString()) {}
/* Functions: */
{
}
/* Operators: */
/* Variables: */
bool m_fSaveMountedAtRuntime;
bool m_fShowMiniToolBar;
bool m_fMiniToolBarAtTop;
};
/* Machine settings / General page: */
{
CGuestOSType guestOSType() const;
void setHWVirtExEnabled(bool fEnabled);
bool is64BitOSTypeSelected() const;
#ifdef VBOX_WITH_VIDEOHWACCEL
bool isWindowsOSTypeSelected() const;
#endif /* VBOX_WITH_VIDEOHWACCEL */
/* Load data to cashe from corresponding external object(s),
* this task COULD be performed in other than GUI thread: */
/* Load data to corresponding widgets from cache,
* this task SHOULD be performed in GUI thread only: */
void getFromCache();
/* Page changed: */
/* Save data from corresponding widgets to cache,
* this task SHOULD be performed in GUI thread only: */
void putToCache();
/* Save data from cache to corresponding external object(s),
* this task COULD be performed in other than GUI thread: */
void retranslateUi();
void polishPage();
bool m_fHWVirtExEnabled;
/* Cache: */
};
#endif // __UIMachineSettingsGeneral_h__