Changes to add child
This commit is contained in:
parent
c31b6e0114
commit
f2e2d54628
9 changed files with 21 additions and 21 deletions
|
|
@ -198,15 +198,15 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
}
|
||||
}
|
||||
|
||||
public override void AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
public override GuiWidget AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
{
|
||||
if (this.TabContainer == this)
|
||||
{
|
||||
base.AddChild(childToAdd, indexInChildrenList);
|
||||
return base.AddChild(childToAdd, indexInChildrenList);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.TabContainer.AddChild(childToAdd, indexInChildrenList);
|
||||
return this.TabContainer.AddChild(childToAdd, indexInChildrenList);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -66,9 +66,9 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
this.RightAnchorItem = rightAnchorItem;
|
||||
}
|
||||
|
||||
public override void AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
public override GuiWidget AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
{
|
||||
ActionArea.AddChild(childToAdd, indexInChildrenList);
|
||||
return ActionArea.AddChild(childToAdd, indexInChildrenList);
|
||||
}
|
||||
|
||||
public void AddChildDirect(GuiWidget guiWidget)
|
||||
|
|
|
|||
|
|
@ -265,10 +265,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
buttonIsBeingClicked = false;
|
||||
}
|
||||
|
||||
public override void AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
public override GuiWidget AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
{
|
||||
childToAdd.VAnchor = VAnchor.Center;
|
||||
base.AddChild(childToAdd, indexInChildrenList);
|
||||
return base.AddChild(childToAdd, indexInChildrenList);
|
||||
}
|
||||
|
||||
public override void OnClosed(EventArgs e)
|
||||
|
|
|
|||
|
|
@ -153,11 +153,11 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
|
||||
public ArrowDirection ArrowDirection { get; set; } = ArrowDirection.Right;
|
||||
|
||||
public override void AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
public override GuiWidget AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
{
|
||||
childToAdd.Selectable = this.FullRowSelect == false;
|
||||
|
||||
base.AddChild(childToAdd, indexInChildrenList);
|
||||
return base.AddChild(childToAdd, indexInChildrenList);
|
||||
}
|
||||
|
||||
protected override void OnClick(MouseEventArgs mouseEvent)
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace Markdig.Renderers.Agg
|
|||
this.HAnchor = HAnchor.Stretch;
|
||||
}
|
||||
|
||||
public override void AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
public override GuiWidget AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
{
|
||||
if (childToAdd is TextWidget textWidget)
|
||||
{
|
||||
|
|
@ -27,7 +27,7 @@ namespace Markdig.Renderers.Agg
|
|||
textWidget.PointSize = 11;
|
||||
}
|
||||
|
||||
base.AddChild(childToAdd, indexInChildrenList);
|
||||
return base.AddChild(childToAdd, indexInChildrenList);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +51,10 @@ namespace Markdig.Renderers.Agg
|
|||
});
|
||||
}
|
||||
|
||||
public override void AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
public override GuiWidget AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
{
|
||||
// TODOD: Anything else required for list children?
|
||||
content.AddChild(childToAdd, indexInChildrenList);
|
||||
return content.AddChild(childToAdd, indexInChildrenList);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace Markdig.Renderers.Agg
|
|||
this.RowPadding = new BorderDouble(0, 3);
|
||||
}
|
||||
|
||||
public override void AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
public override GuiWidget AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
{
|
||||
if (childToAdd is TextWidget textWidget)
|
||||
{
|
||||
|
|
@ -37,7 +37,7 @@ namespace Markdig.Renderers.Agg
|
|||
}
|
||||
}
|
||||
|
||||
base.AddChild(childToAdd, indexInChildrenList);
|
||||
return base.AddChild(childToAdd, indexInChildrenList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@ namespace Markdig.Renderers.Agg.Inlines
|
|||
this.BackgroundColor = theme.MinimalShade;
|
||||
}
|
||||
|
||||
public override void AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
public override GuiWidget AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
{
|
||||
base.AddChild(childToAdd, indexInChildrenList);
|
||||
return base.AddChild(childToAdd, indexInChildrenList);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace Markdig.Renderers.Agg.Inlines
|
|||
this.delimiter = delimiter;
|
||||
}
|
||||
|
||||
public override void AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
public override GuiWidget AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
{
|
||||
if (childToAdd is TextWidget textWidget)
|
||||
{
|
||||
|
|
@ -42,7 +42,7 @@ namespace Markdig.Renderers.Agg.Inlines
|
|||
}
|
||||
}
|
||||
|
||||
base.AddChild(childToAdd, indexInChildrenList);
|
||||
return base.AddChild(childToAdd, indexInChildrenList);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ namespace Markdig.Renderers.Agg.Inlines
|
|||
base.OnClick(mouseEvent);
|
||||
}
|
||||
|
||||
public override void AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
public override GuiWidget AddChild(GuiWidget childToAdd, int indexInChildrenList = -1)
|
||||
{
|
||||
if (childToAdd is TextWidget textWidget)
|
||||
{
|
||||
|
|
@ -63,7 +63,7 @@ namespace Markdig.Renderers.Agg.Inlines
|
|||
// Allow link parent to own mouse events
|
||||
childToAdd.Selectable = false;
|
||||
|
||||
base.AddChild(childToAdd, indexInChildrenList);
|
||||
return base.AddChild(childToAdd, indexInChildrenList);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue