VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/include/VBoxSettingsDialogSpecific.h@ 21194

Last change on this file since 21194 was 19837, checked in by vboxsync, 16 years ago

FE/Qt4: 3875: Guest SMP settings - Initial Commit.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 2.5 KB
Line 
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 "COMDefs.h"
27#include "VBoxSettingsDialog.h"
28
29/*
30 * Dialog which encapsulate all the specific funtionalities of the
31 * Global Settings.
32 */
33class VBoxGLSettingsDlg : public VBoxSettingsDialog
34{
35 Q_OBJECT;
36
37public:
38
39 enum GLSettingsPageIds
40 {
41 GeneralId = 0,
42 InputId,
43 UpdateId,
44 LanguageId,
45 USBId,
46 NetworkId
47 };
48
49 VBoxGLSettingsDlg (QWidget *aParent);
50
51protected:
52
53 void getFrom();
54 void putBackTo();
55
56 void retranslateUi();
57
58 QString dialogTitle() const;
59
60private:
61
62 bool isAvailable (GLSettingsPageIds aId);
63};
64
65/*
66 * Dialog which encapsulate all the specific funtionalities of the
67 * Virtual Machine Settings.
68 */
69class VBoxVMSettingsDlg : public VBoxSettingsDialog
70{
71 Q_OBJECT;
72
73public:
74
75 enum VMSettingsPageIds
76 {
77 GeneralId = 0,
78 SystemId,
79 DisplayId,
80 StorageId,
81 HDId,
82 CDId,
83 FDId,
84 AudioId,
85 NetworkId,
86 PortsId,
87 SerialId,
88 ParallelId,
89 USBId,
90 SFId
91 };
92
93 VBoxVMSettingsDlg (QWidget *aParent, const CMachine &aMachine,
94 const QString &aCategory, const QString &aControl);
95
96protected:
97
98 void getFrom();
99 void putBackTo();
100
101 void retranslateUi();
102
103 QString dialogTitle() const;
104
105 bool correlate (QWidget *aPage, QString &aWarning);
106
107private slots:
108
109 void onMediaEnumerationDone();
110 void resetFirstRunFlag();
111
112private:
113
114 bool isAvailable (VMSettingsPageIds aId);
115
116 CMachine mMachine;
117 bool mAllowResetFirstRunFlag;
118 bool mResetFirstRunFlag;
119};
120
121#endif // __VBoxSettingsDialogSpecific_h__
122
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette