/// <summary> /// Fills in or modifies the given display info for the item</summary> /// <param name="item">Item</param> /// <param name="info">Display info to update</param> public void GetInfo(object item, ItemInfo info) { info.Label = Language == null ? @"?" : Language.LanguageName; info.Properties = new[] { File == null ? @"?" : File.Path, Line.ToString(), Error }; info.IsLeaf = true; info.ImageIndex = info.GetImageIndex(Atf.Resources.DataImage); }
/// <summary> /// Fills in or modifies the given display info for the item</summary> /// <param name="item">Item</param> /// <param name="info">Display info to update</param> public void GetInfo(object item, ItemInfo info) { var file = s_bShowFileNamesOnly ? Name : File; info.Label = file; info.Properties = new[] { Line.ToString(), LineText }; info.IsLeaf = true; info.ImageIndex = info.GetImageIndex(Atf.Resources.DocumentImage); }
/// <summary> /// Fill in contents for displaying on a GUI /// </summary> /// <param name="item">Item</param> /// <param name="info">Display info to update</param> public virtual void GetInfo(object item, ItemInfo info) { info.Label = Name; info.IsLeaf = true; info.AllowLabelEdit = false; info.Description = "Name: " + Name; info.ImageIndex = info.GetImageIndex(Atf.Resources.DataImage); }
/// <summary> /// Fill in contents for displaying on a GUI /// </summary> /// <param name="item"></param> /// <param name="info">structure to hold display information</param> public void GetInfo(object item, ItemInfo info) { info.Label = Address; info.Checked = Checked; info.Properties = new[] { Name }; info.IsLeaf = false; info.Description = SledUtil.TransSub(Localization.SledLuaLuaState, Address); info.ImageIndex = info.GetImageIndex(Atf.Resources.DataImage); }
/// <summary> /// For IItemView /// </summary> /// <param name="item">Item</param> /// <param name="info">Display info to update</param> public void GetInfo(object item, ItemInfo info) { if (item.Is<SledCallStackListType>()) { info.Label = Name; info.ImageIndex = info.GetImageIndex(Atf.Resources.FolderImage); return; } var itemView = item.As<IItemView>(); if ((itemView == null) || ReferenceEquals(itemView, this)) return; itemView.GetInfo(item, info); }
/// <summary> /// Fills in or modifies the given display info for the item /// </summary> /// <param name="item">Item</param> /// <param name="info">Display info to update</param> public void GetInfo(object item, ItemInfo info) { // Cache value if (s_iBpCsiImgIndex == -1) s_iBpCsiImgIndex = info.GetImageIndex(SledIcon.BreakpointCsi); info.Label = string.Empty; info.Properties = new[] { Function, File, CurrentLine.ToString() }; info.Description = Function; if (IsCursorInFunction) info.ImageIndex = s_iBpCsiImgIndex; info.IsLeaf = true; }
/// <summary> /// Fills in or modifies the given display info for the item</summary> /// <param name="item">Item</param> /// <param name="info">Display info to update</param> public void GetInfo(object item, ItemInfo info) { info.Label = Name; info.IsLeaf = Empty; info.AllowLabelEdit = true; info.Description = Name; info.ImageIndex = info.GetImageIndex(Atf.Resources.FolderImage); }
public override void GetInfo(object item, ItemInfo info) { info.Label = DisplayName; info.Properties = new[] { What, Value, SledLuaVarScopeTypeString.ToString(Scope) }; info.IsLeaf = (LuaType != LuaType.LUA_TTABLE) && (LuaType != LuaType.LUA_TUSERDATA); info.ImageIndex = info.GetImageIndex(Atf.Resources.DataImage); info.Description = Name + Resource.Space + Resource.Colon + Resource.Space + What + Resource.Space + Resource.Colon + Resource.Space + Value; info.IsExpandedInView = Expanded; }
/// <summary> /// Fill in contents for displaying on a GUI /// </summary> /// <param name="item">Item</param> /// <param name="info">Display info to update</param> public void GetInfo(object item, ItemInfo info) { info.Label = Name; info.IsLeaf = true; info.AllowLabelEdit = false; info.Description = "Function: " + Name + ", line: " + LineDefined; info.ImageIndex = info.GetImageIndex(Atf.Resources.DataImage); }
/// <summary> /// Fills in or modifies the given display info for the item</summary> /// <param name="item">Item</param> /// <param name="info">Display info to update</param> public void GetInfo(object item, ItemInfo info) { info.Label = Function; info.Properties = new[] { NumCalls.ToString(), TimeTotal.ToString(), TimeAverage.ToString(), TimeMin.ToString(), TimeMax.ToString(), TimeTotalInner.ToString(), TimeAverageInner.ToString(), TimeMinInner.ToString(), TimeMaxInner.ToString() }; info.IsLeaf = !CanBeLookedUp; info.ImageIndex = info.GetImageIndex(Atf.Resources.DataImage); }
/// <summary> /// Fills in or modifies the given display info for the item</summary> /// <param name="item">Item</param> /// <param name="info">Display info to update</param> public void GetInfo(object item, ItemInfo info) { info.Label = Order.ToString(); info.Properties = new[] { What, OldAddress, NewAddress, OldSize.ToString(), NewSize.ToString() }; info.ImageIndex = info.GetImageIndex(Atf.Resources.DataImage); info.IsLeaf = true; }
/// <summary> /// Fills in or modifies the given display info for the item</summary> /// <param name="item">Item</param> /// <param name="info">Display info to update</param> public void GetInfo(object item, ItemInfo info) { info.Label = Enabled.ToString(); info.Properties = new[] { File.Name, Line.ToString(), Condition, ConditionEnabled.ToString(), ConditionResult.ToString(), (UseFunctionEnvironment ? "Environment" : "Global") }; info.ImageIndex = info.GetImageIndex(Atf.Resources.DataImage); info.IsLeaf = true; }