Move View Options to parent container

This commit is contained in:
John Lewin 2018-04-05 15:40:38 -07:00
parent 64a96dd7ff
commit 746f4e1d2e
2 changed files with 15 additions and 15 deletions

View file

@ -33,7 +33,6 @@ using System.Linq;
using MatterHackers.Agg;
using MatterHackers.Agg.Platform;
using MatterHackers.Agg.UI;
using MatterHackers.Agg.VertexSource;
using MatterHackers.DataConverters3D;
using MatterHackers.Localizations;
using MatterHackers.MatterControl.CustomWidgets;
@ -80,20 +79,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
this.scene = scene;
this.printer = printer;
this.AddChild(
new SectionWidget(
"Options".Localize(),
new ModelOptionsPanel(printer.Bed, view3DWidget.meshViewerWidget, theme)
{
Padding = new BorderDouble(10, 10, 10, 0)
},
theme,
ApplicationController.Instance.GetViewOptionButtons(printer, theme))
{
HAnchor = HAnchor.Stretch,
VAnchor = VAnchor.Fit,
});
this.AddChild(inlineTitleEdit = new InlineTitleEdit("", theme, "Object Name"));
inlineTitleEdit.TitleChanged += (s, e) =>
{

View file

@ -158,6 +158,21 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
SpliterBarColor = theme.SplitterBackground,
SplitterWidth = theme.SplitterWidth,
};
selectedObjectContainer.AddChild(
new SectionWidget(
"Options".Localize(),
new ModelOptionsPanel(printer.Bed, meshViewerWidget, theme)
{
Padding = new BorderDouble(10, 10, 10, 0)
},
theme,
ApplicationController.Instance.GetViewOptionButtons(printer, theme))
{
HAnchor = HAnchor.Stretch,
VAnchor = VAnchor.Fit,
});
selectedObjectContainer.AddChild(selectedObjectPanel);
splitContainer.AddChild(selectedObjectContainer);