Changeset 16971 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 20, 2009 12:26:19 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 43138
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r16966 r16971 6 6 7 7 /* 8 * Copyright (C) 2008 Sun Microsystems, Inc.8 * Copyright (C) 2008-2009 Sun Microsystems, Inc. 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 5536 5536 #endif 5537 5537 5538 /* Initialize guest OS Type list */5539 CGuestOSType Collectioncoll = mVBox.GetGuestOSTypes();5540 int osTypeCount = coll. GetCount();5538 /* Initialize guest OS Type list. */ 5539 CGuestOSTypeVector coll = mVBox.GetGuestOSTypes(); 5540 int osTypeCount = coll.size(); 5541 5541 AssertMsg (osTypeCount > 0, ("Number of OS types must not be zero")); 5542 5542 if (osTypeCount > 0) 5543 5543 { 5544 CGuestOSTypeEnumerator en = coll.Enumerate(); 5545 5546 /* Here we assume 'Other' type is always the first, so we 5547 * remember it and will append it to the list when finish */ 5548 CGuestOSType otherType (en.GetNext()); 5544 /* Here we assume the 'Other' type is always the first, so we 5545 * remember it and will append it to the list when finished. */ 5546 CGuestOSType otherType = coll[0]; 5549 5547 QString otherFamilyId (otherType.GetFamilyId()); 5550 5548 5551 5549 /* Fill the lists with all the available OS Types except 5552 * the 'Other' one type, itwill be appended. */5553 while (en.HasMore())5554 { 5555 CGuestOSType os (en.GetNext());5550 * the 'Other' type, which will be appended. */ 5551 for (int i = 1; i < coll.size(); ++i) 5552 { 5553 CGuestOSType os = coll[i]; 5556 5554 QString familyId (os.GetFamilyId()); 5557 5555 if (!mFamilyIDs.contains (familyId)) … … 5563 5561 } 5564 5562 5565 /* Append the 'Other' OS Type to the end of list */5563 /* Append the 'Other' OS Type to the end of list. */ 5566 5564 if (!mFamilyIDs.contains (otherFamilyId)) 5567 5565 { … … 5572 5570 } 5573 5571 5574 /* Fill in OS type icon dictionary */5572 /* Fill in OS type icon dictionary. */ 5575 5573 static const char *kOSTypeIcons [][2] = 5576 5574 {
Note:
See TracChangeset
for help on using the changeset viewer.