2015-05-19 14:43:24 -07:00
|
|
|
|
using MatterHackers.Agg;
|
|
|
|
|
|
using MatterHackers.Agg.UI;
|
|
|
|
|
|
using MatterHackers.Localizations;
|
|
|
|
|
|
using MatterHackers.MatterControl.DataStorage;
|
|
|
|
|
|
using MatterHackers.MatterControl.PrinterCommunication;
|
|
|
|
|
|
using MatterHackers.MatterControl.PrinterControls.PrinterConnections;
|
|
|
|
|
|
using MatterHackers.MatterControl.PrintQueue;
|
|
|
|
|
|
using MatterHackers.VectorMath;
|
|
|
|
|
|
using System;
|
2016-02-13 11:49:09 -08:00
|
|
|
|
using System.Collections.Generic;
|
2015-05-19 14:43:24 -07:00
|
|
|
|
using System.IO;
|
2017-06-15 12:39:59 -07:00
|
|
|
|
using MatterHackers.MatterControl.PartPreviewWindow;
|
2017-06-15 23:55:01 -07:00
|
|
|
|
using MatterHackers.MatterControl.ConfigurationPage;
|
2015-05-19 14:43:24 -07:00
|
|
|
|
|
|
|
|
|
|
namespace MatterHackers.MatterControl
|
|
|
|
|
|
{
|
|
|
|
|
|
|
2017-06-15 12:39:59 -07:00
|
|
|
|
public class MenuOptionSettings : PopupButton
|
|
|
|
|
|
{
|
|
|
|
|
|
public MenuOptionSettings()
|
|
|
|
|
|
: base(new TextWidget("Options".Localize().ToUpper(), 0, 0, 10, textColor: ActiveTheme.Instance.PrimaryTextColor))
|
2015-05-19 14:43:24 -07:00
|
|
|
|
{
|
2017-06-15 12:39:59 -07:00
|
|
|
|
Margin = new BorderDouble(0);
|
|
|
|
|
|
Padding = new BorderDouble(4);
|
|
|
|
|
|
VAnchor = VAnchor.ParentCenter;
|
|
|
|
|
|
OpenOffset = new Vector2(-3, -5);
|
2015-05-19 14:43:24 -07:00
|
|
|
|
|
2017-06-15 23:55:01 -07:00
|
|
|
|
this.PopupContent = new ApplicationSettingsWidget(ApplicationController.Instance.Theme.MenuButtonFactory)
|
2015-05-19 14:43:24 -07:00
|
|
|
|
{
|
2017-06-15 23:55:01 -07:00
|
|
|
|
HAnchor = HAnchor.AbsolutePosition,
|
|
|
|
|
|
VAnchor = VAnchor.FitToChildren,
|
|
|
|
|
|
Width = 500,
|
|
|
|
|
|
BackgroundColor = RGBA_Bytes.White
|
2016-04-18 11:31:31 -07:00
|
|
|
|
};
|
2015-05-19 14:43:24 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|