3
* VBox frontends: Qt4 GUI ("VirtualBox"):
4
* VBoxVMSettingsSystem class declaration
8
* Copyright (C) 2008-2009 Oracle Corporation
10
* This file is part of VirtualBox Open Source Edition (OSE), as
11
* available from http://www.virtualbox.org. This file is free software;
12
* you can redistribute it and/or modify it under the terms of the GNU
13
* General Public License (GPL) as published by the Free Software
14
* Foundation, in version 2 as it comes in the "COPYING" file of the
15
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
19
#ifndef __VBoxVMSettingsSystem_h__
20
#define __VBoxVMSettingsSystem_h__
23
#include "VBoxSettingsPage.h"
24
#include "VBoxVMSettingsSystem.gen.h"
26
class VBoxVMSettingsSystem : public VBoxSettingsPage,
27
public Ui::VBoxVMSettingsSystem
33
VBoxVMSettingsSystem();
35
bool isHWVirtExEnabled() const;
37
bool isHIDEnabled() const;
45
void getFrom (const CMachine &aMachine);
48
void setValidator (QIWidgetValidator *aVal);
49
bool revalidate (QString &aWarning, QString &aTitle);
51
void setOrderAfter (QWidget *aWidget);
57
void valueChangedRAM (int aVal);
58
void textChangedRAM (const QString &aText);
60
void moveBootItemUp();
61
void moveBootItemDown();
62
void onCurrentBootItemChanged (QTreeWidgetItem *aItem,
63
QTreeWidgetItem *aPrev = 0);
65
void valueChangedCPU (int aVal);
66
void textChangedCPU (const QString &aText);
70
bool eventFilter (QObject *aObject, QEvent *aEvent);
72
void adjustBootOrderTWSize();
75
QIWidgetValidator *mValidator;
81
#endif // __VBoxVMSettingsSystem_h__