TheIDE got new code-browser

git-svn-id: svn://ultimatepp.org/upp/trunk@511 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2008-10-06 20:41:14 +00:00
commit 85b68a9f13
33 changed files with 700 additions and 462 deletions

View file

@ -352,6 +352,7 @@ int LineEdit::PlaceCaretNoG(int newcursor, bool sel) {
ScrollIntoCursor();
PlaceCaret0(p);
SelectionChanged();
WhenSel();
if(IsSelection())
SetSelectionSource(ClipFmtsText());
return p.x;
@ -361,8 +362,9 @@ void LineEdit::PlaceCaret(int newcursor, bool sel) {
gcolumn = PlaceCaretNoG(newcursor, sel);
}
void LineEdit::TopCursor() {
sb.SetY(GetLine(cursor));
void LineEdit::TopCursor(int lines)
{
sb.SetY(max(0, GetLine(cursor) - lines));
}
void LineEdit::CenterCursor() {