Convert RenamePage into reusable InputBoxPage, use for Create Folder

- Allow WizardPage objects to control window Width & MinimumSize
- Issue MatterHackers/MCCentral#2086
Invalid button styling - custom window type rather than WizardPage
This commit is contained in:
John Lewin 2017-10-17 12:35:24 -07:00
parent ce32ef42b7
commit d277290497
10 changed files with 131 additions and 267 deletions

View file

@ -32,6 +32,7 @@ using MatterHackers.Agg;
using MatterHackers.Agg.UI;
using MatterHackers.Localizations;
using MatterHackers.MatterControl.CustomWidgets;
using MatterHackers.VectorMath;
namespace MatterHackers.MatterControl
{
@ -44,6 +45,8 @@ namespace MatterHackers.MatterControl
private WrappedTextWidget headerLabel;
protected Button cancelButton { get; }
public Vector2 WindowSize { get; set; }
protected TextImageButtonFactory textImageButtonFactory { get; } = ApplicationController.Instance.Theme.WizardButtons;
protected TextImageButtonFactory whiteImageButtonFactory { get; } = ApplicationController.Instance.Theme.WhiteButtonFactory;
protected LinkButtonFactory linkButtonFactory = ApplicationController.Instance.Theme.LinkButtonFactory;