VirtualBox

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

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

FE/Qt4: Use QIMainDialog instead of QDialog as base class for the VMSettings.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 2.3 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 "COMDefs.h"
29
30class QIWidgetValidator;
31class VBoxMediaComboBox;
32class VBoxWarnIconLabel;
33
34class QTimer;
35class QWidgetStack;
36
37class VBoxVMSettingsDlg : public 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
50private slots:
51
52 void enableOk (const QIWidgetValidator*);
53 void revalidate (QIWidgetValidator *aWval);
54 void onMediaEnumerationDone();
55 void settingsGroupChanged (QTreeWidgetItem *aItem, QTreeWidgetItem *aPrev);
56 void updateWhatsThis (bool gotFocus = false);
57 void resetFirstRunFlag();
58 void whatsThisCandidateDestroyed (QObject *aObj = NULL);
59
60private:
61
62 bool eventFilter (QObject *aObject, QEvent *aEvent);
63 void showEvent (QShowEvent *aEvent);
64
65 QString pagePath (QWidget *aPage);
66 void setWarning (const QString &aWarning);
67 void updateMediaShortcuts();
68
69 /* Common */
70 CMachine mMachine;
71 QString mWarnString;
72 VBoxWarnIconLabel *mWarnIconLabel;
73
74 /* Flags */
75 bool mPolished;
76 bool mAllowResetFirstRunFlag;
77 bool mResetFirstRunFlag;
78 bool mValid;
79
80 /* WhatsThis Stuff */
81 QTimer *mWhatsThisTimer;
82 QWidget *mWhatsThisCandidate;
83};
84
85#endif // __VBoxVMSettingsDlg_h__
86
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