mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 23:04:09 +02:00
Fixed some tooltips, added Link Dependencies, more int-ness
This commit is contained in:
parent
939c818581
commit
d0e8332150
30 changed files with 180 additions and 432 deletions
|
@ -585,6 +585,7 @@ namespace IDE.ui
|
|||
case 'H':
|
||||
{
|
||||
mSourceHash = SourceHash.Create(.(line, 2));
|
||||
addLineData = false;
|
||||
}
|
||||
case 'T':
|
||||
{
|
||||
|
|
|
@ -680,6 +680,7 @@ namespace IDE.ui
|
|||
(listViewItem, propEntry) = AddPropertiesItem(root, "C Library", "mBuildOptions.mCLibType");
|
||||
(listViewItem, propEntry) = AddPropertiesItem(root, "Beef Library", "mBuildOptions.mBeefLibType");
|
||||
(listViewItem, propEntry) = AddPropertiesItem(root, "Stack Size", "mBuildOptions.mStackSize");
|
||||
(listViewItem, propEntry) = AddPropertiesItem(root, "Link Dependencies", "mBuildOptions.mLinkDependencies");
|
||||
(listViewItem, propEntry) = AddPropertiesItem(root, "Prebuild Commands", "mBuildOptions.mPreBuildCmds");
|
||||
(listViewItem, propEntry) = AddPropertiesItem(root, "Postbuild Commands", "mBuildOptions.mPostBuildCmds");
|
||||
(listViewItem, propEntry) = AddPropertiesItem(root, "Build Commands on Compile", "mBuildOptions.mBuildCommandsOnCompile");
|
||||
|
@ -752,7 +753,7 @@ namespace IDE.ui
|
|||
}
|
||||
else
|
||||
{
|
||||
int32 idx = mProject.mDependencies.FindIndex(scope (dep) => dep.mProjectName == listViewItem.mLabel);
|
||||
int idx = mProject.mDependencies.FindIndex(scope (dep) => dep.mProjectName == listViewItem.mLabel);
|
||||
if (idx != -1)
|
||||
{
|
||||
delete mProject.mDependencies[idx];
|
||||
|
|
|
@ -133,6 +133,13 @@ namespace IDE.ui
|
|||
PopupCallStackPanel();
|
||||
}
|
||||
}
|
||||
|
||||
public override bool WantsTooltip(float mouseX, float mouseY)
|
||||
{
|
||||
if ((mColumnIdx == 2) && (mouseX >= mListView.mParent.mWidth - LabelX - GS!(34)))
|
||||
return false;
|
||||
return base.WantsTooltip(mouseX, mouseY);
|
||||
}
|
||||
}
|
||||
|
||||
public class ThreadListView : DarkListView
|
||||
|
@ -357,7 +364,7 @@ namespace IDE.ui
|
|||
}
|
||||
|
||||
#unwarn
|
||||
int32 selectedIdx = mListView.GetRoot().GetIndexOfChild(item);
|
||||
int selectedIdx = mListView.GetRoot().GetIndexOfChild(item);
|
||||
|
||||
int32 threadId = int32.Parse(item.mLabel);
|
||||
gApp.mDebugger.SetActiveThread(threadId);
|
||||
|
|
|
@ -1718,7 +1718,7 @@ namespace IDE.ui
|
|||
CompactChildExpression(source, compactEvalStr);
|
||||
|
||||
var rootItem = mListView.GetRoot();
|
||||
int32 idx = rootItem.mChildItems.IndexOf(target);
|
||||
int idx = rootItem.mChildItems.IndexOf(target);
|
||||
if (theEvent.mDragTargetDir > 0)
|
||||
idx += theEvent.mDragTargetDir;
|
||||
var listViewItem = (WatchListViewItem)rootItem.CreateChildItemAtIndex(idx);
|
||||
|
@ -2864,7 +2864,7 @@ namespace IDE.ui
|
|||
var selectedItem = selectedItems[itemIdx];
|
||||
if ((selectedItem != null) && (selectedItem.mLabel.Length > 0) && (selectedItem.mParentItem == root))
|
||||
{
|
||||
int32 idx = root.mChildItems.IndexOf(selectedItem);
|
||||
int idx = root.mChildItems.IndexOf(selectedItem);
|
||||
root.RemoveChildItem(selectedItem);
|
||||
if (idx < root.mChildItems.Count)
|
||||
root.SelectItemExclusively(root.mChildItems[idx]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue