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

Method onTreeViewSelectionChanged

libs/wxutil/decl/DeclarationSelector.cpp:173–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void 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
198void DeclarationSelector::onTreeViewItemActivated(wxDataViewEvent& ev)
199{

Callers

nothing calls this directly

Calls 5

SetDeclarationNameMethod · 0.80
GetSelectedDeclNameMethod · 0.45
SetPreviewDeclNameMethod · 0.45
emptyMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected