Save treeview expansion state while browsing. Closes #678, Closes #1034

* This is supported currently in the API inspector, constant buffer previewer, and resource inspector.
* The saved expansions are only saved while the capture is open, and will be reset each time.
This commit is contained in:
baldurk
2018-08-06 13:48:58 +01:00
parent 74528c4d15
commit 9e3147d021
7 changed files with 51 additions and 69 deletions
+7
View File
@@ -64,13 +64,20 @@ void APIInspector::OnCaptureClosed()
{
ui->apiEvents->clear();
ui->callstack->clear();
ui->apiEvents->clearInternalExpansions();
m_EventID = 0;
}
void APIInspector::OnSelectedEventChanged(uint32_t eventId)
{
ui->apiEvents->saveInternalExpansion(m_EventID, 0);
ui->apiEvents->clearSelection();
fillAPIView();
m_EventID = eventId;
ui->apiEvents->applyInternalExpansion(m_EventID, 0);
}
void APIInspector::addCallstack(rdcarray<rdcstr> calls)