| 183 | } |
| 184 | |
| 185 | void 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 |
| 209 | void ComponentsDialog::populateEditPanel(int index) |
nothing calls this directly
no test coverage detected