logic: Refactored Code View to process all contents in one update
* Use unified showCodeSnippets method for setting file information on CodeView * Made async initial file and snippet expansion synced * Add ScrollParams API to CodeView * Regard scope size when scrolling to definition * Only use QtThreadedLambdaFunctor in QtCodeView now
This commit is contained in:
@@ -85,8 +85,11 @@ public:
|
||||
void setIsActiveFile(bool isActiveFile);
|
||||
|
||||
uint getLineNumberForLocationId(Id locationId) const;
|
||||
uint getStartLineNumberOfFirstActiveLocationOfTokenId(Id tokenId) const;
|
||||
Id getLocationIdOfFirstActiveLocationOfTokenId(Id tokenId) const;
|
||||
std::pair<uint, uint> getLineNumbersForLocationId(Id locationId) const;
|
||||
|
||||
Id getLocationIdOfFirstActiveLocation(Id tokenId) const;
|
||||
Id getLocationIdOfFirstActiveScopeLocation(Id tokenId) const;
|
||||
|
||||
uint getActiveLocationCount() const;
|
||||
|
||||
QRectF getLineRectForLineNumber(uint lineNumber) const;
|
||||
|
||||
Reference in New Issue
Block a user