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:
@@ -301,6 +301,16 @@ void ApplicationSettings::setCodeSnippetExpandRange(int range)
|
||||
setValue<int>("code/snippet/expand_range", range);
|
||||
}
|
||||
|
||||
bool ApplicationSettings::getCodeViewModeSingle() const
|
||||
{
|
||||
return getValue<bool>("code/view_mode_single", false);
|
||||
}
|
||||
|
||||
void ApplicationSettings::setCodeViewModeSingle(bool enabled)
|
||||
{
|
||||
setValue<bool>("code/view_mode_single", enabled);
|
||||
}
|
||||
|
||||
std::vector<FilePath> ApplicationSettings::getRecentProjects() const
|
||||
{
|
||||
std::vector<FilePath> recentProjects;
|
||||
|
||||
Reference in New Issue
Block a user