VirtualBox

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

Last change on this file since 10590 was 10515, checked in by vboxsync, 17 years ago

Fe/Qt4: '3003: Auto-update: New-version notifier'

  1. Settings moved to Global Settings / Update page.
  2. New Version Notifier now can be run only in background mode.
  • 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.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
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 UpdateId,
47 LanguageId,
48 USBId
49 };
50
51 VBoxGLSettingsDlg (QWidget *aParent);
52
53protected:
54
55 void getFrom();
56 void putBackTo();
57
58 void retranslateUi();
59
60 QString dialogTitle() const;
61
62private:
63
64 void updateAvailability();
65 VBoxSettingsPage* attachPage (VBoxSettingsPage *aPage);
66};
67
68/*
69 * Dialog which encapsulate all the specific funtionalities of the
70 * Virtual Machine Settings.
71 */
72class VBoxVMSettingsDlg : public VBoxSettingsDialog
73{
74 Q_OBJECT;
75
76public:
77
78 enum VMSettingsPageIds
79 {
80 GeneralId = 0,
81 HDId,
82 CDId,
83 FDId,
84 AudioId,
85 NetworkId,
86 SerialId,
87 ParallelId,
88 USBId,
89 SFId,
90 VRDPId
91 };
92
93 VBoxVMSettingsDlg (QWidget *aParent, const CMachine &aMachine,
94 const QString &aCategory, const QString &aControl);
95
96protected slots:
97
98 void revalidate (QIWidgetValidator *aWval);
99
100protected:
101
102 void getFrom();
103 void putBackTo();
104
105 void retranslateUi();
106
107 QString dialogTitle() const;
108
109private slots:
110
111 void onMediaEnumerationDone();
112 void resetFirstRunFlag();
113
114private:
115
116 void updateAvailability();
117 VBoxSettingsPage* attachPage (VBoxSettingsPage *aPage);
118
119 CMachine mMachine;
120 bool mAllowResetFirstRunFlag;
121 bool mResetFirstRunFlag;
122};
123
124#endif // __VBoxSettingsDialogSpecific_h__
125
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