1 | /** @file
|
---|
2 | *
|
---|
3 | * VBox frontends: Qt4 GUI ("VirtualBox"):
|
---|
4 | * VBoxSettingsDialogSpecific class declaration
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2006-2008 Sun Microsystems, Inc.
|
---|
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 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
19 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
20 | * additional information or have any questions.
|
---|
21 | */
|
---|
22 |
|
---|
23 | #ifndef __VBoxSettingsDialogSpecific_h__
|
---|
24 | #define __VBoxSettingsDialogSpecific_h__
|
---|
25 |
|
---|
26 | #include "VBoxSettingsDialog.h"
|
---|
27 | #include "COMDefs.h"
|
---|
28 |
|
---|
29 | class VBoxGlobalSettings;
|
---|
30 | class VBoxSettingsPage;
|
---|
31 |
|
---|
32 | /*
|
---|
33 | * Dialog which encapsulate all the specific funtionalities of the
|
---|
34 | * Global Settings.
|
---|
35 | */
|
---|
36 | class VBoxGLSettingsDlg : public VBoxSettingsDialog
|
---|
37 | {
|
---|
38 | Q_OBJECT;
|
---|
39 |
|
---|
40 | public:
|
---|
41 |
|
---|
42 | enum GLSettingsPageIds
|
---|
43 | {
|
---|
44 | GeneralId = 0,
|
---|
45 | InputId,
|
---|
46 | UpdateId,
|
---|
47 | LanguageId,
|
---|
48 | USBId
|
---|
49 | };
|
---|
50 |
|
---|
51 | VBoxGLSettingsDlg (QWidget *aParent);
|
---|
52 |
|
---|
53 | protected:
|
---|
54 |
|
---|
55 | void getFrom();
|
---|
56 | void putBackTo();
|
---|
57 |
|
---|
58 | void retranslateUi();
|
---|
59 |
|
---|
60 | QString dialogTitle() const;
|
---|
61 |
|
---|
62 | private:
|
---|
63 |
|
---|
64 | void updateAvailability();
|
---|
65 | };
|
---|
66 |
|
---|
67 | /*
|
---|
68 | * Dialog which encapsulate all the specific funtionalities of the
|
---|
69 | * Virtual Machine Settings.
|
---|
70 | */
|
---|
71 | class VBoxVMSettingsDlg : public VBoxSettingsDialog
|
---|
72 | {
|
---|
73 | Q_OBJECT;
|
---|
74 |
|
---|
75 | public:
|
---|
76 |
|
---|
77 | enum VMSettingsPageIds
|
---|
78 | {
|
---|
79 | GeneralId = 0,
|
---|
80 | StorageId,
|
---|
81 | HDId,
|
---|
82 | CDId,
|
---|
83 | FDId,
|
---|
84 | AudioId,
|
---|
85 | NetworkId,
|
---|
86 | PortsId,
|
---|
87 | SerialId,
|
---|
88 | ParallelId,
|
---|
89 | USBId,
|
---|
90 | SFId,
|
---|
91 | VRDPId
|
---|
92 | };
|
---|
93 |
|
---|
94 | VBoxVMSettingsDlg (QWidget *aParent, const CMachine &aMachine,
|
---|
95 | const QString &aCategory, const QString &aControl);
|
---|
96 |
|
---|
97 | protected slots:
|
---|
98 |
|
---|
99 | void revalidate (QIWidgetValidator *aWval);
|
---|
100 |
|
---|
101 | protected:
|
---|
102 |
|
---|
103 | void getFrom();
|
---|
104 | void putBackTo();
|
---|
105 |
|
---|
106 | void retranslateUi();
|
---|
107 |
|
---|
108 | QString dialogTitle() const;
|
---|
109 |
|
---|
110 | private slots:
|
---|
111 |
|
---|
112 | void onMediaEnumerationDone();
|
---|
113 | void resetFirstRunFlag();
|
---|
114 |
|
---|
115 | private:
|
---|
116 |
|
---|
117 | void addItem (const QString &aBigIcon, const QString &aBigIconDisabled, const QString &aSmallIcon, const QString &aSmallIconDisabled, int aId, const QString &aLink, VBoxSettingsPage* aPrefPage = NULL, int aParentId = -1);
|
---|
118 | void updateAvailability();
|
---|
119 | VBoxSettingsPage* attachValidator (VBoxSettingsPage *aPage);
|
---|
120 |
|
---|
121 | CMachine mMachine;
|
---|
122 | bool mAllowResetFirstRunFlag;
|
---|
123 | bool mResetFirstRunFlag;
|
---|
124 | };
|
---|
125 |
|
---|
126 | #endif // __VBoxSettingsDialogSpecific_h__
|
---|
127 |
|
---|