-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathICodeViewUserControl.cs
40 lines (29 loc) · 1.22 KB
/
ICodeViewUserControl.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#nullable enable
using CodeNav.Models;
using CodeNav.Models.ViewModels;
using Microsoft.VisualStudio.Text.Editor;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Windows.Media;
namespace CodeNav
{
public interface ICodeViewUserControl
{
CodeDocumentViewModel CodeDocumentViewModel { get; set; }
/// <summary>
/// Update the Code Document View Model
/// </summary>
/// <param name="filePath">Optional path to use as code source file</param>
/// <param name="force">Optional boolean to indicate to update documents that may contain too many lines</param>
void UpdateDocument(string filePath = "", bool force = false);
void HighlightCurrentItem(CaretPositionChangedEventArgs e, Color backgroundBrushColor);
void ToggleAll(bool isExpanded, List<CodeItem>? root = null);
void FilterBookmarks();
Task RegisterDocumentEvents();
IDisposable? CaretPositionChangedSubscription { get; set; }
IDisposable? TextContentChangedSubscription { get; set; }
IDisposable? UpdateWhileTypingSubscription { get; set; }
IDisposable? FileActionOccurredSubscription { get; set; }
}
}