ui: precollapse files in code view
This change shows the files in the code view minimized, if more than 5. This greatly improves performance, because code and annotations won't get loaded until needed. Files including declarations or definitions of the active symbol are still expanded. The number of references in each file is now shown in it's title bar. Clicking the title bar allows for expanding and collapsing as well now.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#ifndef MESSAGE_SHOW_SNIPPETS_H
|
||||
#define MESSAGE_SHOW_SNIPPETS_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
#include "utility/types.h"
|
||||
|
||||
class TokenLocationFile;
|
||||
|
||||
class MessageShowSnippets
|
||||
: public Message<MessageShowSnippets>
|
||||
{
|
||||
public:
|
||||
MessageShowSnippets(std::shared_ptr<TokenLocationFile> locationFile)
|
||||
: locationFile(locationFile)
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageShowSnippets";
|
||||
}
|
||||
|
||||
std::shared_ptr<TokenLocationFile> locationFile;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_SHOW_SNIPPETS_H
|
||||
Reference in New Issue
Block a user