2015-04-08 15:20:10 -07:00
|
|
|
|
using MatterHackers.Agg;
|
2014-09-19 19:17:12 -07:00
|
|
|
|
using MatterHackers.Agg.UI;
|
|
|
|
|
|
|
|
|
|
|
|
namespace MatterHackers.MatterControl.ConfigurationPage
|
|
|
|
|
|
{
|
2015-04-08 15:20:10 -07:00
|
|
|
|
public class SettingsViewBase : AltGroupBox
|
|
|
|
|
|
{
|
|
|
|
|
|
protected FlowLayoutWidget mainContainer;
|
2014-09-19 19:17:12 -07:00
|
|
|
|
|
2017-06-15 22:45:02 -07:00
|
|
|
|
protected TextImageButtonFactory buttonFactory;
|
2014-09-19 19:17:12 -07:00
|
|
|
|
|
2017-06-15 22:45:02 -07:00
|
|
|
|
public SettingsViewBase(string title, TextImageButtonFactory buttonFactory)
|
|
|
|
|
|
: base(new TextWidget(title, pointSize: 18, textColor: ActiveTheme.Instance.SecondaryAccentColor))
|
2015-04-08 15:20:10 -07:00
|
|
|
|
{
|
2017-06-15 22:45:02 -07:00
|
|
|
|
this.buttonFactory = buttonFactory;
|
2015-04-08 15:20:10 -07:00
|
|
|
|
this.Margin = new BorderDouble(2, 4, 2, 0);
|
2016-07-29 09:44:16 -07:00
|
|
|
|
|
2017-06-15 22:45:02 -07:00
|
|
|
|
mainContainer = new FlowLayoutWidget(Agg.UI.FlowDirection.TopToBottom)
|
|
|
|
|
|
{
|
|
|
|
|
|
HAnchor = HAnchor.ParentLeftRight,
|
|
|
|
|
|
Margin = new BorderDouble(left: 6)
|
|
|
|
|
|
};
|
2015-04-08 15:20:10 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2014-09-19 19:17:12 -07:00
|
|
|
|
}
|