ui: scroll to code snippet containing clicked edge

This change scrolls animated to the snippet representing the clicked edge instead of showing only this code snippet.
This commit is contained in:
Eberhard Graether
2015-05-31 22:52:16 +02:00
parent 3e419bb41f
commit 20ce168712
12 changed files with 187 additions and 16 deletions
+5
View File
@@ -32,6 +32,8 @@ public:
virtual void showCodeSnippets(const std::vector<CodeSnippetParams>& snippets);
virtual void showCodeFile(const CodeSnippetParams& params);
virtual void scrollToFirstActiveSnippet();
virtual void focusToken(const Id tokenId);
virtual void defocusToken();
@@ -41,6 +43,8 @@ private:
void doShowCodeSnippets(const std::vector<CodeSnippetParams>& snippets);
void doShowCodeFile(const CodeSnippetParams& params);
void doScrollToFirstActiveSnippet();
void doFocusToken(const Id tokenId);
void doDefocusToken();
@@ -49,6 +53,7 @@ private:
QtThreadedFunctor<> m_refreshViewFunctor;
QtThreadedFunctor<const std::vector<CodeSnippetParams>&> m_showCodeSnippetsFunctor;
QtThreadedFunctor<const CodeSnippetParams&> m_showCodeFileFunctor;
QtThreadedFunctor<> m_doScrollToFirstActiveSnippetFunctor;
QtThreadedFunctor<const Id&> m_focusTokenFunctor;
QtThreadedFunctor<> m_defocusTokenFunctor;