Require WizardPage actions to be registered with AddPageAction
- Add HorizontalSpacer and Cancel buttons to all windows
This commit is contained in:
parent
559c300cb4
commit
65135f93a2
23 changed files with 69 additions and 132 deletions
|
|
@ -217,11 +217,8 @@ namespace MatterHackers.MatterControl
|
|||
this.Parents<SystemWindow>().FirstOrDefault()?.CloseOnIdle();
|
||||
});
|
||||
|
||||
footerRow.AddChild(mergeButton);
|
||||
|
||||
footerRow.AddChild(new HorizontalSpacer());
|
||||
footerRow.AddChild(cancelButton);
|
||||
|
||||
this.AddPageAction(mergeButton);
|
||||
|
||||
if (settingsToImport.QualityLayers.Count == 0 && settingsToImport.MaterialLayers.Count == 0)
|
||||
{
|
||||
// Only main setting so don't ask what to merge just do it.
|
||||
|
|
@ -262,17 +259,7 @@ namespace MatterHackers.MatterControl
|
|||
{
|
||||
this.headerLabel.Text = "Import Successful".Localize();
|
||||
|
||||
var container = new FlowLayoutWidget(FlowDirection.TopToBottom)
|
||||
{
|
||||
HAnchor = HAnchor.Stretch,
|
||||
};
|
||||
contentRow.AddChild(container);
|
||||
|
||||
var successMessageWidget = new WrappedTextWidget(successMessage, textColor: ActiveTheme.Instance.PrimaryTextColor);
|
||||
container.AddChild(successMessageWidget);
|
||||
|
||||
footerRow.AddChild(new HorizontalSpacer());
|
||||
footerRow.AddChild(cancelButton);
|
||||
contentRow.AddChild(new WrappedTextWidget(successMessage, textColor: ActiveTheme.Instance.PrimaryTextColor));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -378,10 +365,7 @@ namespace MatterHackers.MatterControl
|
|||
importButton.Visible = true;
|
||||
cancelButton.Visible = true;
|
||||
|
||||
//Add buttons to buttonContainer
|
||||
footerRow.AddChild(importButton);
|
||||
footerRow.AddChild(new HorizontalSpacer());
|
||||
footerRow.AddChild(cancelButton);
|
||||
this.AddPageAction(importButton);
|
||||
}
|
||||
|
||||
private GuiWidget CreateDetailInfo(string detailText)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue