Simplify, remove unused and non-functional components
This commit is contained in:
parent
b1189160d4
commit
23c4f14b14
3 changed files with 7 additions and 26 deletions
|
|
@ -40,16 +40,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
private EventHandler unregisterEvents;
|
||||
|
||||
private BedConfig sceneContext;
|
||||
private TextWidget gcodeProcessingStateInfoText;
|
||||
private PrinterConfig printer;
|
||||
private ViewControls3D viewControls3D;
|
||||
private ThemeConfig theme;
|
||||
|
||||
public ViewGcodeBasic(PrinterConfig printer, BedConfig sceneContext, ViewControls3D viewControls3D, ThemeConfig theme)
|
||||
public ViewGcodeBasic(PrinterConfig printer, BedConfig sceneContext, ThemeConfig theme)
|
||||
{
|
||||
this.printer = printer;
|
||||
this.sceneContext = sceneContext;
|
||||
this.viewControls3D = viewControls3D;
|
||||
this.theme = theme;
|
||||
|
||||
CreateAndAddChildren(printer);
|
||||
|
|
@ -76,13 +71,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
this.CloseAllChildren();
|
||||
|
||||
this.AddChild(gcodeProcessingStateInfoText = new TextWidget("")
|
||||
{
|
||||
HAnchor = HAnchor.Center,
|
||||
VAnchor = VAnchor.Center,
|
||||
AutoExpandBoundsToText = true
|
||||
});
|
||||
|
||||
if (sceneContext.LoadedGCode?.LineCount > 0)
|
||||
{
|
||||
var gcodeResultsPanel = new FlowLayoutWidget(FlowDirection.TopToBottom)
|
||||
|
|
@ -118,17 +106,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
}
|
||||
}
|
||||
|
||||
internal void LoadProgress_Changed(double progress0To1, string processingState)
|
||||
{
|
||||
SetProcessingMessage(string.Format("{0} {1:0}%...", "Loading G-Code".Localize(), progress0To1 * 100));
|
||||
}
|
||||
|
||||
private void SetProcessingMessage(string message)
|
||||
{
|
||||
gcodeProcessingStateInfoText.BackgroundColor = (message == "") ? RGBA_Bytes.Transparent : RGBA_Bytes.White;
|
||||
gcodeProcessingStateInfoText.Text = message;
|
||||
}
|
||||
|
||||
public override void OnClosed(ClosedEventArgs e)
|
||||
{
|
||||
unregisterEvents?.Invoke(this, null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue