ide: Redesigning Navigator

git-svn-id: svn://ultimatepp.org/upp/trunk@7595 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-08-23 17:04:54 +00:00
parent efdd51b714
commit 625243c57a
10 changed files with 373 additions and 150 deletions

View file

@ -1328,7 +1328,7 @@ void ArrayCtrl::SetCursorEditFocus()
}
bool ArrayCtrl::SetCursor0(int i, bool dosel) {
if(nocursor || GetCount() == 0 || i >= 0 && i < array.GetCount() && !array[i].enabled)
if(nocursor || GetCount() == 0 || !IsLineEnabled(i))
return false;
i = minmax(i, 0, GetCount() - 1);
bool sel = false;
@ -1436,7 +1436,9 @@ void ArrayCtrl::EnableLine(int i, bool en)
bool ArrayCtrl::IsLineEnabled(int i) const
{
return i < 0 ? false : i < array.GetCount() ? array[i].enabled : true;
bool b = i < 0 ? false : i < array.GetCount() ? array[i].enabled : true;
WhenLineEnabled(i, b);
return b;
}
void ArrayCtrl::Select(int i, int count, bool sel)