Changeset 103893 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 18, 2024 12:48:07 PM (13 months ago)
- svn:sync-xref-src-repo-rev:
- 162265
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.cpp
r103871 r103893 133 133 134 134 UIGuestOSTypeManager::UIGuestOSFamilyInfo 135 UIGuestOSTypeManager::getFamilies(bool fListAll ,135 UIGuestOSTypeManager::getFamilies(bool fListAll /* = true */, 136 136 KPlatformArchitecture enmArch /* = KPlatformArchitecture_None */) const 137 137 { … … 152 152 UIGuestOSTypeManager::UIGuestOSSubtypeInfo 153 153 UIGuestOSTypeManager::getSubtypesForFamilyId(const QString &strFamilyId, 154 bool fListAll ,154 bool fListAll /* = true */, 155 155 KPlatformArchitecture enmArch /* = KPlatformArchitecture_None */) const 156 156 { … … 171 171 UIGuestOSTypeManager::UIGuestOSTypeInfo 172 172 UIGuestOSTypeManager::getTypesForFamilyId(const QString &strFamilyId, 173 bool fListAll ,173 bool fListAll /* = true */, 174 174 KPlatformArchitecture enmArch /* = KPlatformArchitecture_None */) const 175 175 { … … 195 195 UIGuestOSTypeManager::UIGuestOSTypeInfo 196 196 UIGuestOSTypeManager::getTypesForSubtype(const QString &strSubtype, 197 bool fListAll ,197 bool fListAll /* = true */, 198 198 KPlatformArchitecture enmArch /* = KPlatformArchitecture_None */) const 199 199 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.h
r103871 r103893 192 192 /** Returns a list of all families. 193 193 * @param fListAll Brings whether a list of all families is requested, supported otherwise. */ 194 UIGuestOSFamilyInfo getFamilies(bool fListAll ,194 UIGuestOSFamilyInfo getFamilies(bool fListAll = true, 195 195 KPlatformArchitecture enmArch = KPlatformArchitecture_None) const; 196 196 /** Returns the list of subtypes for @p strFamilyId. This may be an empty list. 197 197 * @param fListAll Brings whether a list of all subtypes is requested, supported otherwise. */ 198 198 UIGuestOSSubtypeInfo getSubtypesForFamilyId(const QString &strFamilyId, 199 bool fListAll ,199 bool fListAll = true, 200 200 KPlatformArchitecture enmArch = KPlatformArchitecture_None) const; 201 201 /** Returns a list of OS types for the @p strFamilyId. */ 202 202 UIGuestOSTypeInfo getTypesForFamilyId(const QString &strFamilyId, 203 bool fListAll ,203 bool fListAll = true, 204 204 KPlatformArchitecture enmArch = KPlatformArchitecture_None) const; 205 205 /** Returns a list of OS types for the @p strSubtype. */ 206 206 UIGuestOSTypeInfo getTypesForSubtype(const QString &strSubtype, 207 bool fListAll ,207 bool fListAll = true, 208 208 KPlatformArchitecture enmArch = KPlatformArchitecture_None) const; 209 209 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp
r103871 r103893 343 343 const UIGuestOSTypeManager::UIGuestOSTypeInfo types 344 344 = m_strDistribution.isEmpty() 345 ? gpGlobalSession->guestOSTypeManager().getTypesForFamilyId(m_strFamilyId, false , enmArch)346 : gpGlobalSession->guestOSTypeManager().getTypesForSubtype(m_strDistribution, false , enmArch);345 ? gpGlobalSession->guestOSTypeManager().getTypesForFamilyId(m_strFamilyId, false /* including restricted? */, enmArch) 346 : gpGlobalSession->guestOSTypeManager().getTypesForSubtype(m_strDistribution, false /* including restricted? */, enmArch); 347 347 348 348 /* Save the most recently used item: */ … … 618 618 /* Acquire family IDs: */ 619 619 const UIGuestOSTypeManager::UIGuestOSFamilyInfo families 620 = gpGlobalSession->guestOSTypeManager().getFamilies(false , enmArch);620 = gpGlobalSession->guestOSTypeManager().getFamilies(false /* including restricted? */, enmArch); 621 621 622 622 /* Block signals initially and clear the combo: */ … … 654 654 /* Acquire a list of suitable sub-types: */ 655 655 const UIGuestOSTypeManager::UIGuestOSSubtypeInfo distributions 656 = gpGlobalSession->guestOSTypeManager().getSubtypesForFamilyId(m_strFamilyId, false , enmArch);656 = gpGlobalSession->guestOSTypeManager().getSubtypesForFamilyId(m_strFamilyId, false /* including restricted? */, enmArch); 657 657 m_pLabelDistribution->setEnabled(!distributions.isEmpty()); 658 658 m_pComboDistribution->setEnabled(!distributions.isEmpty()); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIGuestOSTypeSelectionButton.cpp
r103871 r103893 107 107 108 108 const UIGuestOSTypeManager::UIGuestOSFamilyInfo families 109 = gpGlobalSession->guestOSTypeManager().getFamilies( true);109 = gpGlobalSession->guestOSTypeManager().getFamilies(); 110 110 111 111 for (int i = 0; i < families.size(); ++i) … … 114 114 QMenu *pSubMenu = m_pMainMenu->addMenu(fi.m_strDescription); 115 115 const UIGuestOSTypeManager::UIGuestOSSubtypeInfo distributions 116 = gpGlobalSession->guestOSTypeManager().getSubtypesForFamilyId(fi.m_strId , true);116 = gpGlobalSession->guestOSTypeManager().getSubtypesForFamilyId(fi.m_strId); 117 117 118 118 if (distributions.isEmpty()) 119 createOSTypeMenu(gpGlobalSession->guestOSTypeManager().getTypesForFamilyId(fi.m_strId , true), pSubMenu);119 createOSTypeMenu(gpGlobalSession->guestOSTypeManager().getTypesForFamilyId(fi.m_strId), pSubMenu); 120 120 else 121 121 { 122 122 foreach (const UISubtypeInfo &distribution, distributions) 123 createOSTypeMenu(gpGlobalSession->guestOSTypeManager().getTypesForSubtype(distribution.m_strName , true),123 createOSTypeMenu(gpGlobalSession->guestOSTypeManager().getTypesForSubtype(distribution.m_strName), 124 124 pSubMenu->addMenu(distribution.m_strName)); 125 125 }
Note:
See TracChangeset
for help on using the changeset viewer.