VirtualBox

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

Last change on this file since 19149 was 18235, checked in by vboxsync, 16 years ago

FE/Qt4: 2869: Rework network adapter UI - Host-only Interface settings moved to Global Settings.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 2.4 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 void updateAvailability();
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 StorageId,
79 HDId,
80 CDId,
81 FDId,
82 AudioId,
83 NetworkId,
84 PortsId,
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:
96
97 void getFrom();
98 void putBackTo();
99
100 void retranslateUi();
101
102 QString dialogTitle() const;
103
104private slots:
105
106 void onMediaEnumerationDone();
107 void resetFirstRunFlag();
108
109private:
110
111 void updateAvailability();
112
113 CMachine mMachine;
114 bool mAllowResetFirstRunFlag;
115 bool mResetFirstRunFlag;
116};
117
118#endif // __VBoxSettingsDialogSpecific_h__
119
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