logic: Fixed deselection of edge didn't restore active locations in code view

This commit is contained in:
Eberhard Graether
2016-01-15 16:21:50 +01:00
parent ca4fb79af7
commit 3884db21d7
6 changed files with 24 additions and 0 deletions
+12
View File
@@ -15,6 +15,7 @@ QtCodeView::QtCodeView(ViewLayout* viewLayout)
, m_addCodeSnippetsFunctor(std::bind(&QtCodeView::doAddCodeSnippets, this, std::placeholders::_1, std::placeholders::_2))
, m_showCodeFileFunctor(std::bind(&QtCodeView::doShowCodeFile, this, std::placeholders::_1))
, m_doShowFirstActiveSnippetFunctor(std::bind(&QtCodeView::doShowFirstActiveSnippet, this))
, m_doShowActiveTokenIdsFunctor(std::bind(&QtCodeView::doShowActiveTokenIds, this))
, m_focusTokenIdsFunctor(std::bind(&QtCodeView::doFocusTokenIds, this, std::placeholders::_1))
, m_defocusTokenIdsFunctor(std::bind(&QtCodeView::doDefocusTokenIds, this))
, m_isExpanding(false)
@@ -71,6 +72,11 @@ void QtCodeView::showFirstActiveSnippet()
m_doShowFirstActiveSnippetFunctor();
}
void QtCodeView::showActiveTokenIds()
{
m_doShowActiveTokenIdsFunctor();
}
void QtCodeView::focusTokenIds(const std::vector<Id>& focusedTokenIds)
{
m_focusTokenIdsFunctor(focusedTokenIds);
@@ -159,6 +165,12 @@ void QtCodeView::doShowFirstActiveSnippet()
}
}
void QtCodeView::doShowActiveTokenIds()
{
m_widget->setActiveTokenIds(m_activeTokenIds);
m_widget->showActiveTokenIds();
}
void QtCodeView::doFocusTokenIds(const std::vector<Id>& focusedTokenIds)
{
m_widget->focusTokenIds(focusedTokenIds);