-
Notifications
You must be signed in to change notification settings - Fork 1
/
ToDo.txt
61 lines (50 loc) · 2.11 KB
/
ToDo.txt
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Open points:
A) Speed; in MiniStyledTextCtrl::SetMarker() this is where most of the cpu time is used.
b) Drop file into MiniDocPanel -> open the file
D) C::B
how to manage the usage of the indicators and markers? Is it needed?
MiniStyledTextCtrl has to follow changes in different plugins to "mimic" cbEditors control colors.
(incremental search and highlighter)
Changing their configuration needs a restart of MiniDoc plugin to become colored the same.
Any plugin can "use" any marker/indicator number.
Optimization)
(no measurable improvement)
if(forceUdate)
{
MarkerDeleteAll(GetOurMarkerNumber());
if (inverseMarker_)
{
for (int l = visibleFrom_; l < visibleFrom_+visibleLength_ ; ++l)
MarkerAdd(l, GetOurMarkerNumber());
}
else
{
for (int l = 0; l < visibleFrom_ ; ++l)
MarkerAdd(l, GetOurMarkerNumber());
for (int l = visibleFrom_+visibleLength_; l < GetLineCount() ; ++l)
MarkerAdd(l, GetOurMarkerNumber());
}
}
else // only change marker as needed in SetMarker()
{
if (inverseMarker_)
{
for(int l = oldvisibleFrom_ ; l < visibleFrom_ && l < oldvisibleFrom_+oldvisibleLength_ ; ++l)
MarkerDelete(l, markerNumber);
for (int l = visibleFrom_; l < visibleFrom_+visibleLength_ ; ++l)
MarkerAdd(l, markerNumber);
for(int l = visibleFrom_+visibleLength_ ; l < oldvisibleFrom_+oldvisibleLength_ ; ++l)
MarkerDelete(l, markerNumber);
}
else
{
for(int l = visibleFrom_ ; l < oldvisibleFrom_ ; ++l)
MarkerDelete(l, markerNumber);
for (int l = oldvisibleFrom_; l < visibleFrom_ ; ++l)
MarkerAdd(l, markerNumber);
for (int l = oldvisibleFrom_+oldvisibleLength_; l < visibleFrom_+visibleLength_ ; ++l)
MarkerDelete(l, markerNumber);
for (int l = visibleFrom_+visibleLength_; l < oldvisibleFrom_+oldvisibleLength_ ; ++l)
MarkerAdd(l, markerNumber);
}
}