| 171 | } |
| 172 | |
| 173 | void DeclarationSelector::onTreeViewSelectionChanged(wxDataViewEvent& ev) |
| 174 | { |
| 175 | auto declName = _treeView->GetSelectedDeclName(); |
| 176 | |
| 177 | // Notify all previews |
| 178 | for (auto preview : _previews) |
| 179 | { |
| 180 | preview->SetPreviewDeclName(declName); |
| 181 | } |
| 182 | |
| 183 | // Update the info labels |
| 184 | if (!declName.empty()) |
| 185 | { |
| 186 | _declFileInfo->SetDeclarationName(declName); |
| 187 | } |
| 188 | else |
| 189 | { |
| 190 | _declFileInfo->Clear(); |
| 191 | } |
| 192 | |
| 193 | // Invoke the virtual method |
| 194 | onTreeViewSelectionChanged(); |
| 195 | ev.Skip(); |
| 196 | } |
| 197 | |
| 198 | void DeclarationSelector::onTreeViewItemActivated(wxDataViewEvent& ev) |
| 199 | { |
nothing calls this directly
no test coverage detected