mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-10 03:54:54 -06:00
ide: Redesigning Navigator
git-svn-id: svn://ultimatepp.org/upp/trunk@7595 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
efdd51b714
commit
625243c57a
10 changed files with 373 additions and 150 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue