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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user