| 266 | } |
| 267 | |
| 268 | bool PluginDataModel::SetValue(const wxVariant& variant, const wxDataViewItem& item, unsigned col) |
| 269 | { |
| 270 | if(col == ColumnState) |
| 271 | { |
| 272 | const auto index = GetRowIndex(item); |
| 273 | if(index < mPluginStateModel.size()) |
| 274 | { |
| 275 | mPluginStateModel[index].second = variant.GetBool(); |
| 276 | return true; |
| 277 | } |
| 278 | } |
| 279 | return false; |
| 280 | } |
| 281 | |
| 282 | wxDataViewItem PluginDataModel::GetParent(const wxDataViewItem& item) const |
| 283 | { |