Reduced import export text.

This commit is contained in:
Lars Brubaker 2016-06-16 17:56:12 -07:00
parent 6c1ef4716d
commit 6f39a7b1d9
2 changed files with 111 additions and 64 deletions

View file

@ -76,38 +76,72 @@ namespace MatterHackers.MatterControl
};
contentRow.AddChild(container);
// add new profile
newPrinterButton = new RadioButton("Import as new printer profile".Localize(), textColor: ActiveTheme.Instance.PrimaryTextColor);
newPrinterButton.Checked = true;
container.AddChild(newPrinterButton);
if (true)
{
container.AddChild(new TextWidget("Merge Into:")
{
TextColor = ActiveTheme.Instance.PrimaryTextColor,
Margin = new BorderDouble(0, 0, 0, 5),
});
container.AddChild(
CreateDetailInfo("Add a new printer profile to your list of available printers.\nThis will not change your current settings.")
);
// merge into current settings
mergeButton = new RadioButton("Current".Localize(), textColor: ActiveTheme.Instance.PrimaryTextColor);
mergeButton.Checked = true;
container.AddChild(mergeButton);
// merge into current settings
mergeButton = new RadioButton("Merge into current printer profile".Localize(), textColor: ActiveTheme.Instance.PrimaryTextColor);
container.AddChild(mergeButton);
container.AddChild(new TextWidget("Create New:")
{
TextColor = ActiveTheme.Instance.PrimaryTextColor,
Margin = new BorderDouble(0, 0, 0, 15),
});
container.AddChild(
CreateDetailInfo("Merge settings and presets (if any) into your current profile. \nYou will still be able to revert to the factory settings at any time.")
);
// add new profile
newPrinterButton = new RadioButton("Printer".Localize(), textColor: ActiveTheme.Instance.PrimaryTextColor);
container.AddChild(newPrinterButton);
// add as quality preset
newQualityPresetButton = new RadioButton("Import settings as new QUALITY preset".Localize(), textColor: ActiveTheme.Instance.PrimaryTextColor);
container.AddChild(newQualityPresetButton);
// add as quality preset
newQualityPresetButton = new RadioButton("Quality preset".Localize(), textColor: ActiveTheme.Instance.PrimaryTextColor);
container.AddChild(newQualityPresetButton);
container.AddChild(
CreateDetailInfo("Add new quality preset with the settings from this import.")
);
// add as material preset
newMaterialPresetButton = new RadioButton("Material preset".Localize(), textColor: ActiveTheme.Instance.PrimaryTextColor);
container.AddChild(newMaterialPresetButton);
}
else
{
// add new profile
newPrinterButton = new RadioButton("Import as new printer profile".Localize(), textColor: ActiveTheme.Instance.PrimaryTextColor);
newPrinterButton.Checked = true;
container.AddChild(newPrinterButton);
// add as material preset
newMaterialPresetButton = new RadioButton("Import settings as new MATERIAL preset".Localize(), textColor: ActiveTheme.Instance.PrimaryTextColor);
container.AddChild(newMaterialPresetButton);
container.AddChild(
CreateDetailInfo("Add a new printer profile to your list of available printers.\nThis will not change your current settings.")
);
container.AddChild(
CreateDetailInfo("Add new material preset with the settings from this import.")
);
// merge into current settings
mergeButton = new RadioButton("Merge into current printer profile".Localize(), textColor: ActiveTheme.Instance.PrimaryTextColor);
container.AddChild(mergeButton);
container.AddChild(
CreateDetailInfo("Merge settings and presets (if any) into your current profile. \nYou will still be able to revert to the factory settings at any time.")
);
// add as quality preset
newQualityPresetButton = new RadioButton("Import settings as new QUALITY preset".Localize(), textColor: ActiveTheme.Instance.PrimaryTextColor);
container.AddChild(newQualityPresetButton);
container.AddChild(
CreateDetailInfo("Add new quality preset with the settings from this import.")
);
// add as material preset
newMaterialPresetButton = new RadioButton("Import settings as new MATERIAL preset".Localize(), textColor: ActiveTheme.Instance.PrimaryTextColor);
container.AddChild(newMaterialPresetButton);
container.AddChild(
CreateDetailInfo("Add new material preset with the settings from this import.")
);
}
var importButton = textImageButtonFactory.Generate("Choose File".Localize());