public SliceSettingsWidget(PrinterConfig printer, SettingsContext settingsContext, ThemeConfig theme) : base(FlowDirection.TopToBottom) { this.printer = printer; this.SettingsContext = settingsContext; settingsControlBar = new PresetsToolbar(printer, theme) { HAnchor = HAnchor.Stretch, Padding = new BorderDouble(8, 12, 8, 8) }; using (this.LayoutLock()) { this.AddChild(settingsControlBar); this.AddChild( new SliceSettingsTabView( settingsContext, "SliceSettings", printer, PrinterSettings.Layout.SliceSettings, theme, isPrimarySettingsView: true, justMySettingsTitle: "My Modified Settings".Localize(), databaseMRUKey: UserSettingsKey.SliceSettingsWidget_CurrentTab)); } this.AnchorAll(); }
public SliceSettingsWidget(PrinterConfig printer, SettingsContext settingsContext, ThemeConfig theme) : base(FlowDirection.TopToBottom) { this.printer = printer; this.BackgroundColor = theme.TabBodyBackground; this.settingsContext = settingsContext; settingsControlBar = new PresetsToolbar(printer, theme) { HAnchor = HAnchor.Stretch, Padding = new BorderDouble(8, 12, 8, 8) }; using (this.LayoutLock()) { this.AddChild(settingsControlBar); this.AddChild( new SliceSettingsTabView( settingsContext, "SliceSettings", printer, "Advanced", theme, isPrimarySettingsView: true, databaseMRUKey: UserSettingsKey.SliceSettingsWidget_CurrentTab, extendPopupMenu: this.ExtendOverflowMenu)); } this.AnchorAll(); }
public SliceSettingsWidget(PrinterConfig printer, SettingsContext settingsContext, ThemeConfig theme) : base(FlowDirection.TopToBottom) { this.printer = printer; this.SettingsContext = settingsContext; settingsControlBar = new PresetsToolbar(printer, theme) { HAnchor = HAnchor.Stretch, Padding = new BorderDouble(5) }; using (this.LayoutLock()) { this.AddChild(settingsControlBar); var settingsSection = PrinterSettings.Layout.SlicingSections[0]; switch (UserSettings.Instance.get(UserSettingsKey.SliceSettingsViewDetail)) { case "Simple": settingsSection = PrinterSettings.Layout.SlicingSections[0]; break; case "Intermediate": settingsSection = PrinterSettings.Layout.SlicingSections[1]; break; case "Advanced": settingsSection = PrinterSettings.Layout.SlicingSections[2]; break; } this.AddChild( new SliceSettingsTabView( settingsContext, "SliceSettings", printer, settingsSection, theme, isPrimarySettingsView: true, justMySettingsTitle: "My Modified Settings".Localize(), databaseMRUKey: UserSettingsKey.SliceSettingsWidget_CurrentTab)); } this.AnchorAll(); }