VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsDlg.h@ 9782

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

Fe/Qt4: Some code-spelling for VMSettings to make it similar to Global Settings, VBoxWarnIconLabel moved to VBoxVMSettingUtils (will be used in global settings too).

  • 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 * VBoxVMSettingsDlg 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 __VBoxVMSettingsDlg_h__
24#define __VBoxVMSettingsDlg_h__
25
26#include "VBoxVMSettingsDlg.gen.h"
27#include "QIMainDialog.h"
28#include "QIWithRetranslateUI.h"
29#include "COMDefs.h"
30
31class QIWidgetValidator;
32class VBoxMediaComboBox;
33class VBoxWarnIconLabel;
34
35class QTimer;
36
37class VBoxVMSettingsDlg : public QIWithRetranslateUI<QIMainDialog>,
38 public Ui::VBoxVMSettingsDlg
39{
40 Q_OBJECT;
41
42public:
43
44 VBoxVMSettingsDlg (QWidget *aParent, const QString &aCategory,
45 const QString &aControl);
46
47 void getFromMachine (const CMachine &aMachine);
48 COMResult putBackToMachine();
49
50protected:
51
52 void retranslateUi();
53
54private slots:
55
56 void enableOk (const QIWidgetValidator*);
57 void revalidate (QIWidgetValidator *aWval);
58 void onMediaEnumerationDone();
59 void settingsGroupChanged (QTreeWidgetItem *aItem, QTreeWidgetItem *aPrev);
60 void updateWhatsThis (bool gotFocus = false);
61 void resetFirstRunFlag();
62 void whatsThisCandidateDestroyed (QObject *aObj = NULL);
63
64private:
65
66 bool eventFilter (QObject *aObject, QEvent *aEvent);
67 void showEvent (QShowEvent *aEvent);
68
69 QString pagePath (QWidget *aPage);
70 void setWarning (const QString &aWarning);
71
72 QString dialogTitle() const;
73
74 /* Common */
75 CMachine mMachine;
76 QString mWarnString;
77 VBoxWarnIconLabel *mWarnIconLabel;
78
79 /* Flags */
80 bool mPolished;
81 bool mAllowResetFirstRunFlag;
82 bool mResetFirstRunFlag;
83 bool mValid;
84
85 /* WhatsThis Stuff */
86 QTimer *mWhatsThisTimer;
87 QWidget *mWhatsThisCandidate;
88};
89
90#endif // __VBoxVMSettingsDlg_h__
91
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