MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / populateComponents

Method populateComponents

plugins/dm.objectives/ComponentsDialog.cpp:164–183  ·  view source on GitHub ↗

Populate the component list

Source from the content-addressed store, hash-verified

162
163// Populate the component list
164void ComponentsDialog::populateComponents()
165{
166 // Clear the list store
167 _componentList->Clear();
168
169 // Add components from the Objective to the list store
170 for (Objective::ComponentMap::iterator i = _components.begin();
171 i != _components.end();
172 ++i)
173 {
174 wxutil::TreeModel::Row row = _componentList->AddItem();
175
176 row[_columns.index] = i->first;
177 row[_columns.description] = i->second.getString();
178
179 row.SendItemAdded();
180 }
181
182 _updateNeeded = true;
183}
184
185void ComponentsDialog::updateComponents()
186{

Callers

nothing calls this directly

Calls 6

AddItemMethod · 0.80
SendItemAddedMethod · 0.80
ClearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
getStringMethod · 0.45

Tested by

no test coverage detected