VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/include/VBoxMediaComboBox.h@ 2889

Last change on this file since 2889 was 2864, checked in by vboxsync, 18 years ago

1750: Add CDROM configuration to "Create VM" wizard:

First Run Wizard implemented.
This dialog allows user to select and temporarily mount the booting source for the VM to be started for the first time. The booting source could be:

  1. CD/DVD-ROM host drive.
  2. CD/DVD-ROM image file.
  3. Floppy host drive.
  4. Floppy image file.

It also allows user to invoke Virtual Disk Manager Dialog to add additional CD/FD images as booting sources.

The dialog will only be executed for the VM which has a GUI/FirstRun=”yes” extra data flag in it's configuration file. This flag currently will be auto-added only for the new VM created by the “New VM Wizard”. After the “First Run Wizard” will be proposed for the first time, the flag will be erased from the VM configuration file. This flag will also be erased from the configuration file in case of there is any other value rather than “yes” for it.

TODO: The flag should also be erased from the configuration file in case of user manually changes the boot sequence or the CD/FD/HD configuration through the VM Settings Dialog.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 2.5 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt GUI ("VirtualBox"):
4 * VBoxMediaComboBox class declaration
5 */
6
7/*
8 * Copyright (C) 2006 InnoTek Systemberatung GmbH
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 as published by the Free Software Foundation,
14 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
15 * distribution. VirtualBox OSE is distributed in the hope that it will
16 * be useful, but WITHOUT ANY WARRANTY of any kind.
17 *
18 * If you received this file as part of a commercial VirtualBox
19 * distribution, then only the terms of your commercial VirtualBox
20 * license agreement apply instead of the previous paragraph.
21 */
22
23#ifndef __VBoxMediaComboBox_h__
24#define __VBoxMediaComboBox_h__
25
26#include "VBoxGlobal.h"
27
28#include <qcombobox.h>
29
30class QListBoxItem;
31
32class VBoxMediaComboBox : public QComboBox
33{
34 Q_OBJECT
35
36public:
37
38 VBoxMediaComboBox (QWidget *aParent = 0, const char *aName = 0,
39 int aType = 0, bool aUseEmptyItem = false);
40 ~VBoxMediaComboBox() {}
41
42 void refresh();
43 void setUseEmptyItem (bool);
44 void setBelongsTo (const QUuid &);
45 QUuid getId();
46 QUuid getBelongsTo();
47 void setCurrentItem (const QUuid &);
48 void setType (int);
49
50protected slots:
51
52 void mediaEnumStarted();
53 void mediaEnumerated (const VBoxMedia &, int);
54 void mediaAdded (const VBoxMedia &);
55 void mediaUpdated (const VBoxMedia &);
56 void mediaRemoved (VBoxDefs::DiskType, const QUuid &);
57 void processOnItem (QListBoxItem *);
58 void processActivated (int);
59
60protected:
61
62 void updateToolTip (int);
63 void processMedia (const VBoxMedia &);
64 void processHdMedia (const VBoxMedia &);
65 void processCdMedia (const VBoxMedia &);
66 void processFdMedia (const VBoxMedia &);
67 void appendItem (const QString &, const QUuid &,
68 const QString &, QPixmap *);
69 void replaceItem (int, const QString &,
70 const QString &, QPixmap *);
71 void updateShortcut (const QString &, const QUuid &, const QString &,
72 VBoxMedia::Status);
73
74 int mType;
75 QStringList mUuidList;
76 QStringList mTipList;
77 QUuid mMachineId;
78 QUuid mRequiredId;
79 bool mUseEmptyItem;
80 QPixmap mPmInacc;
81 QPixmap mPmError;
82};
83
84#endif /* __VBoxMediaComboBox_h__ */
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