Changeset 9626 in vbox for trunk/src/VBox/Frontends/VirtualBox4/include/VBoxMediaComboBox.h
- Timestamp:
- Jun 11, 2008 7:45:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxMediaComboBox.h
r9600 r9626 26 26 #include "VBoxGlobal.h" 27 27 28 #include <qcombobox.h> 29 //Added by qt3to4: 28 #include <QComboBox> 30 29 #include <QPixmap> 31 32 class Q3ListBoxItem;33 30 34 31 class VBoxMediaComboBox : public QComboBox … … 38 35 public: 39 36 37 static QString fullItemName (const QString &aSrc); 38 40 39 VBoxMediaComboBox (QWidget *aParent, int aType = -1, 41 40 bool aUseEmptyItem = false); 42 ~VBoxMediaComboBox() {}43 44 static QString fullItemName (const QString &aSrc);45 41 46 42 void refresh(); 47 void setUseEmptyItem (bool); 48 void setBelongsTo (const QUuid &); 43 44 void setUseEmptyItem (bool aUse); 45 void setBelongsTo (const QUuid &aMachineId); 46 void setCurrentItem (const QUuid &aId); 47 void setType (int aImageType); 48 49 49 QUuid getId (int aId = -1) const; 50 QUuid getBelongsTo();51 void setCurrentItem (const QUuid &);52 void setType (int);53 50 54 51 protected slots: … … 56 53 void mediaEnumStarted(); 57 54 void mediaEnumerated (const VBoxMedia &, int); 55 58 56 void mediaAdded (const VBoxMedia &); 59 57 void mediaUpdated (const VBoxMedia &); 60 58 void mediaRemoved (VBoxDefs::DiskType, const QUuid &); 61 void processOnItem (const QModelIndex&); 62 void processActivated (int); 59 60 void processActivated (int aIndex); 61 void processIndexChanged (int aIndex); 62 63 void processOnItem (const QModelIndex &aIndex); 63 64 64 65 protected: 65 66 66 void init();67 void updateToolTip (int);68 67 void processMedia (const VBoxMedia &); 69 68 void processHdMedia (const VBoxMedia &); 70 69 void processCdMedia (const VBoxMedia &); 71 70 void processFdMedia (const VBoxMedia &); 72 void appendItem (const QString &, const QUuid &, 73 const QString &, QPixmap *); 74 void replaceItem (int, const QString &, 75 const QString &, QPixmap *); 76 void updateShortcut (const QString &, const QUuid &, const QString &, 77 VBoxMedia::Status); 71 72 void updateShortcut (const QString &aSrc, const QUuid &aId, 73 const QString &aToolTip, VBoxMedia::Status aStatus); 74 75 void newItem (const QString &aName, const QUuid &aId, 76 const QString &aToolTip, QPixmap *aPixmap); 77 void updItem (int aIndex, const QString &aNewName, 78 const QString &aNewTip, QPixmap *aNewPix); 79 80 QList<QUuid> mUuidList; 81 QList<QString> mTipList; 78 82 79 83 int mType; 80 QStringList mUuidList;81 QStringList mTipList;82 84 QUuid mMachineId; 83 85 QUuid mRequiredId;
Note:
See TracChangeset
for help on using the changeset viewer.