VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSettingsDialogSpecific.h@ 10475

Last change on this file since 10475 was 10474, checked in by vboxsync, 17 years ago

FE/Qt4: Implemented the Toolbar settings selector. Currently turned on, on the mac only.

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

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