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

Method updateComponents

plugins/dm.objectives/ComponentsDialog.cpp:185–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void ComponentsDialog::updateComponents()
186{
187 // Traverse all components and update the items in the list
188 for (Objective::ComponentMap::iterator i = _components.begin();
189 i != _components.end();
190 ++i)
191 {
192 // Find the item in the list store (0th column carries the ID)
193 wxDataViewItem item = _componentList->FindInteger(i->first, _columns.index);
194
195 // Check if we found the item
196 if (item.IsOk())
197 {
198 wxutil::TreeModel::Row row(item, *_componentList);
199
200 row[_columns.index] = i->first;
201 row[_columns.description] = i->second.getString();
202
203 row.SendItemChanged();
204 }
205 }
206}
207
208// Populate the edit panel
209void ComponentsDialog::populateEditPanel(int index)

Callers

nothing calls this directly

Calls 5

SendItemChangedMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
FindIntegerMethod · 0.45
getStringMethod · 0.45

Tested by

no test coverage detected