1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-06 16:25:59 +02:00

Fixed some IDE issues

Fixed some issues related to creating new projects and workspace
Added 'Refresh' option to project
Fixed auto-include refresh
Fixed folder rename
Fixed EOF issue involving DbgModule string table
This commit is contained in:
Brian Fiete 2019-09-05 08:18:24 -07:00
parent 8a02874b51
commit 0ce6e44523
14 changed files with 374 additions and 163 deletions

View file

@ -811,19 +811,29 @@ namespace Beefy.widgets
public static bool HandleTab(int dir, List<Widget> tabWidgets)
{
Widget wantFocus = null;
if (tabWidgets.IsEmpty)
return false;
for (int32 idx = 0; idx < tabWidgets.Count; idx++)
{
Widget widget = tabWidgets[idx];
if (widget.mHasFocus)
{
var nextWidget = tabWidgets[(idx + tabWidgets.Count + dir) % tabWidgets.Count];
nextWidget.SetFocus();
if (var editWidget = nextWidget as EditWidget)
editWidget.mEditWidgetContent.SelectAll();
return true;
wantFocus = nextWidget;
break;
}
}
return false;
if (wantFocus == null)
wantFocus = tabWidgets[0];
wantFocus.SetFocus();
if (var editWidget = wantFocus as EditWidget)
editWidget.mEditWidgetContent.SelectAll();
return true;
}
}
}

View file

@ -43,7 +43,6 @@ namespace System.IO
public void Reset()
{
//mRootFolder = .Default;
mSelectedPath.Clear();
mDescriptionText.Clear();
mSelectedPathNeedsCheck = false;

View file

@ -838,6 +838,7 @@ namespace System
public void Append(String str, int offset, int length)
{
Debug.Assert((uint)offset <= (uint)str.mLength);
Debug.Assert(length >= 0);
Debug.Assert((uint)offset + (uint)length <= (uint)str.mLength);
Append(str.Ptr + offset, length);
}