ui: Added single file mode to code view

* Added navigation to top of code view for iterating references and switching between list and single file mode
* current file name and reference count is shown on top in single file mode
* refactored scrolling to location or line via request system
* added parameters animated and toTop to scrolling system
* refactored class hierarchy and removed unused stuff in list mode
This commit is contained in:
Eberhard Graether
2017-01-09 00:48:20 +01:00
parent 79937b21f0
commit 2bdc9b19a2
34 changed files with 1472 additions and 530 deletions
@@ -7,7 +7,8 @@ class MessageCodeViewExpandedInitialFiles
: public Message<MessageCodeViewExpandedInitialFiles>
{
public:
MessageCodeViewExpandedInitialFiles()
MessageCodeViewExpandedInitialFiles(bool scrollToDefinition)
: scrollToDefinition(scrollToDefinition)
{
}
@@ -15,6 +16,8 @@ public:
{
return "MessageCodeViewExpandedInitialFiles";
}
bool scrollToDefinition;
};
#endif // MESSAGE_CODE_VIEW_EXPANDED_INITIAL_FILES_H
@@ -7,8 +7,9 @@ class MessageScrollCode
: public Message<MessageScrollCode>
{
public:
MessageScrollCode(int value)
MessageScrollCode(int value, bool inListMode)
: value(value)
, inListMode(inListMode)
{
setIsLogged(false);
}
@@ -19,6 +20,7 @@ public:
}
int value;
bool inListMode;
};
#endif // MESSAGE_SCROLL_CODE_H