logic: Codeview Snippet order
Sorting the Snippets in. the Codeview. Active Token first then declaration, filename and extension
This commit is contained in:
@@ -33,7 +33,7 @@ public:
|
||||
CodeController(GraphAccess* graphAccess, LocationAccess* locationAccess);
|
||||
~CodeController();
|
||||
|
||||
void setActiveTokenIds(const std::vector<Id>& ids);
|
||||
void setActiveTokenIds(const std::vector<Id>& ids, Id activeId, Id declarationId);
|
||||
|
||||
private:
|
||||
virtual void handleMessage(MessageActivateToken* message);
|
||||
@@ -43,6 +43,8 @@ private:
|
||||
|
||||
CodeView* getView();
|
||||
|
||||
static const uint s_lineRadius;
|
||||
|
||||
std::vector<std::pair<uint, uint>> getSnippetRangesForFile(TokenLocationFile* file, const uint lineRadius) const;
|
||||
|
||||
GraphAccess* m_graphAccess;
|
||||
|
||||
Reference in New Issue
Block a user