Rename control to match current behavior
This commit is contained in:
parent
0e641e98b9
commit
11a889dbf9
3 changed files with 7 additions and 15 deletions
|
|
@ -291,7 +291,7 @@
|
|||
<Compile Include="SlicerConfiguration\Settings\ProfileManager.cs" />
|
||||
<Compile Include="SlicerConfiguration\Settings\PrinterSettingsLayer.cs" />
|
||||
<Compile Include="SlicerConfiguration\Settings\SettingsHelpers.cs" />
|
||||
<Compile Include="SlicerConfiguration\SliceSettingsDetailControl.cs" />
|
||||
<Compile Include="SlicerConfiguration\SliceSettingsOverflowDropdown.cs" />
|
||||
<Compile Include="SlicerConfiguration\Settings\ActiveSliceSettings.cs" />
|
||||
<Compile Include="SlicerConfiguration\Settings\PrinterSettings.cs" />
|
||||
<Compile Include="DataStorage\Classic\ClassicSqlitePrinterProfiles.cs" />
|
||||
|
|
|
|||
|
|
@ -35,30 +35,24 @@ using MatterHackers.MatterControl.SetupWizard;
|
|||
|
||||
namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||
{
|
||||
public class SliceSettingsDetailControl : FlowLayoutWidget
|
||||
public class SliceSettingsOverflowDropdown : FlowLayoutWidget
|
||||
{
|
||||
private CheckBox showHelpBox;
|
||||
|
||||
string resetToDefaultsMessage = "Resetting to default values will remove your current overrides and restore your original printer settings.\nAre you sure you want to continue?".Localize();
|
||||
string resetToDefaultsWindowTitle = "Revert Settings".Localize();
|
||||
|
||||
private SliceSettingsWidget sliceSettingsWidget;
|
||||
|
||||
public SliceSettingsDetailControl(SliceSettingsWidget sliceSettingsWidget)
|
||||
public SliceSettingsOverflowDropdown(SliceSettingsWidget sliceSettingsWidget)
|
||||
{
|
||||
this.sliceSettingsWidget = sliceSettingsWidget;
|
||||
this.VAnchor = VAnchor.FitToChildren | VAnchor.ParentCenter;
|
||||
|
||||
this.AddChild(CreateOverflowMenu());
|
||||
}
|
||||
|
||||
private GuiWidget CreateOverflowMenu()
|
||||
{
|
||||
|
||||
var overflowDropdown = new OverflowDropdown(true)
|
||||
{
|
||||
AlignToRightEdge = true,
|
||||
Name = "Slice Settings Overflow Menu"
|
||||
};
|
||||
this.AddChild(overflowDropdown);
|
||||
|
||||
|
||||
showHelpBox = new CheckBox("Show Help".Localize());
|
||||
showHelpBox.Checked = sliceSettingsWidget.ShowHelpControls;
|
||||
|
|
@ -155,8 +149,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
popupContainer.AddChild(modeSelector);
|
||||
|
||||
overflowDropdown.PopupContent = popupContainer;
|
||||
|
||||
return overflowDropdown;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
if (isPrimarySettingsView)
|
||||
{
|
||||
var sliceSettingsDetailControl = new SliceSettingsDetailControl(this);
|
||||
var sliceSettingsDetailControl = new SliceSettingsOverflowDropdown(this);
|
||||
topCategoryTabs.TabBar.AddChild(sliceSettingsDetailControl);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue