~ubuntu-branches/ubuntu/raring/virtualbox-ose/raring

« back to all changes in this revision

Viewing changes to src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsSystem.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/** @file
2
 
 *
3
 
 * VBox frontends: Qt4 GUI ("VirtualBox"):
4
 
 * VBoxVMSettingsSystem class declaration
5
 
 */
6
 
 
7
 
/*
8
 
 * Copyright (C) 2008-2009 Oracle Corporation
9
 
 *
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.
17
 
 */
18
 
 
19
 
#ifndef __VBoxVMSettingsSystem_h__
20
 
#define __VBoxVMSettingsSystem_h__
21
 
 
22
 
#include "COMDefs.h"
23
 
#include "VBoxSettingsPage.h"
24
 
#include "VBoxVMSettingsSystem.gen.h"
25
 
 
26
 
class VBoxVMSettingsSystem : public VBoxSettingsPage,
27
 
                             public Ui::VBoxVMSettingsSystem
28
 
{
29
 
    Q_OBJECT;
30
 
 
31
 
public:
32
 
 
33
 
    VBoxVMSettingsSystem();
34
 
 
35
 
    bool isHWVirtExEnabled() const;
36
 
    int cpuCount() const;
37
 
    bool isHIDEnabled() const;
38
 
 
39
 
signals:
40
 
 
41
 
    void tableChanged();
42
 
 
43
 
protected:
44
 
 
45
 
    void getFrom (const CMachine &aMachine);
46
 
    void putBackTo();
47
 
 
48
 
    void setValidator (QIWidgetValidator *aVal);
49
 
    bool revalidate (QString &aWarning, QString &aTitle);
50
 
 
51
 
    void setOrderAfter (QWidget *aWidget);
52
 
 
53
 
    void retranslateUi();
54
 
 
55
 
private slots:
56
 
 
57
 
    void valueChangedRAM (int aVal);
58
 
    void textChangedRAM (const QString &aText);
59
 
 
60
 
    void moveBootItemUp();
61
 
    void moveBootItemDown();
62
 
    void onCurrentBootItemChanged (QTreeWidgetItem *aItem,
63
 
                                   QTreeWidgetItem *aPrev = 0);
64
 
 
65
 
    void valueChangedCPU (int aVal);
66
 
    void textChangedCPU (const QString &aText);
67
 
 
68
 
private:
69
 
 
70
 
    bool eventFilter (QObject *aObject, QEvent *aEvent);
71
 
 
72
 
    void adjustBootOrderTWSize();
73
 
 
74
 
    CMachine mMachine;
75
 
    QIWidgetValidator *mValidator;
76
 
 
77
 
    uint mMinGuestCPU;
78
 
    uint mMaxGuestCPU;
79
 
};
80
 
 
81
 
#endif // __VBoxVMSettingsSystem_h__
82