Changeset 102152 in vbox
- Timestamp:
- Nov 20, 2023 2:58:48 PM (17 months ago)
- svn:sync-xref-src-repo-rev:
- 160277
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.cpp
r102102 r102152 68 68 } 69 69 70 const UIGuestOSTypeManager::UIGuestOS TypeFamilyInfo &UIGuestOSTypeManager::getFamilies() const70 const UIGuestOSTypeManager::UIGuestOSFamilyInfo &UIGuestOSTypeManager::getFamilies() const 71 71 { 72 72 return m_guestOSFamilies; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.h
r102102 r102152 103 103 UIGuestOSTypeManager(const UIGuestOSTypeManager &other) = delete; 104 104 105 /** A list of all OS families. 'first' of each pair is family Id and 'second' is family description. */ 106 typedef QVector<QPair<QString, QString> > UIGuestOSTypeFamilyInfo; 107 /** Guest OS type info list for all type. 'first' is typeId and 'second' is description. */ 108 typedef QVector<QPair<QString, QString> > UIGuestOSTypeInfo; 105 /** OS info pair. 'first' is id and 'second' is description. */ 106 typedef QPair<QString, QString> UIGuestInfoPair; 107 /** A list of all OS family pairs. */ 108 typedef QVector<UIGuestInfoPair> UIGuestOSFamilyInfo; 109 /** A list of all OS type pairs. */ 110 typedef QVector<UIGuestInfoPair> UIGuestOSTypeInfo; 109 111 110 112 /** Re-create the guest OS type database. */ … … 112 114 113 115 /** Returns a list of all families (id and description). */ 114 const UIGuestOS TypeFamilyInfo &getFamilies() const;116 const UIGuestOSFamilyInfo &getFamilies() const; 115 117 /** Returns the list of subtypes for @p strFamilyId. This may be an empty list. */ 116 QStringList 118 QStringList getSubtypeListForFamilyId(const QString &strFamilyId) const; 117 119 /** Returns a list of OS types for the @p strFamilyId. */ 118 UIGuestOSTypeInfo 120 UIGuestOSTypeInfo getTypeListForFamilyId(const QString &strFamilyId) const; 119 121 /** Returns a list of OS types for the @p strSubtype. */ 120 UIGuestOSTypeInfo 122 UIGuestOSTypeInfo getTypeListForSubtype(const QString &strSubtype) const; 121 123 122 124 static bool isDOSType(const QString &strOSTypeId); … … 152 154 QMap<QString, int> m_typeIdIndexMap; 153 155 /** First item of the pair is family id and the 2nd is family description. */ 154 UIGuestOS TypeInfo m_guestOSFamilies;156 UIGuestOSFamilyInfo m_guestOSFamilies; 155 157 }; 156 158 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp
r101713 r102152 601 601 602 602 /* Acquire family IDs: */ 603 const UIGuestOSTypeManager::UIGuestOS TypeFamilyInfo &families = uiCommon().guestOSTypeManager().getFamilies();603 const UIGuestOSTypeManager::UIGuestOSFamilyInfo &families = uiCommon().guestOSTypeManager().getFamilies(); 604 604 605 605 /* Block signals initially and clear the combo: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIGuestOSTypeSelectionButton.cpp
r101563 r102152 108 108 m_pMainMenu->clear(); 109 109 110 UIGuestOSTypeManager::UIGuestOS TypeFamilyInfo familyList = uiCommon().guestOSTypeManager().getFamilies();110 UIGuestOSTypeManager::UIGuestOSFamilyInfo familyList = uiCommon().guestOSTypeManager().getFamilies(); 111 111 112 112 for (int i = 0; i < familyList.size(); ++i)
Note:
See TracChangeset
for help on using the changeset viewer.