trackeditor: fix segment side information not being saved

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8298 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 2498e0d314e38203f458ec327a5cb1a7954d2b3e
Former-commit-id: 29bd8e7481ac9e4eafdaef18e02b8771ccdee024
This commit is contained in:
iobyte 2022-07-05 18:11:16 +00:00
parent 54e9b93731
commit 8dcbab5ca4
3 changed files with 14 additions and 2 deletions

View file

@ -58,7 +58,6 @@ import bsh.Interpreter;
*/ */
public class SegmentEditorDlg extends JDialog implements SliderListener public class SegmentEditorDlg extends JDialog implements SliderListener
{ {
//private Properties properties = Properties.getInstance();
private Segment shape; private Segment shape;
CircuitView view; CircuitView view;
EditorFrame editorFrame; EditorFrame editorFrame;
@ -817,6 +816,7 @@ public class SegmentEditorDlg extends JDialog implements SliderListener
if (rightPanel == null) if (rightPanel == null)
{ {
rightPanel = new SegmentSideProperties(this, shape.getRight()); rightPanel = new SegmentSideProperties(this, shape.getRight());
rightPanel.setTitle("Right");
} }
return rightPanel; return rightPanel;
} }

View file

@ -156,6 +156,7 @@ public class SegmentSide implements Cloneable
{ {
this.barrierHeight = barrierHeight; this.barrierHeight = barrierHeight;
barrierHeightChanged(); barrierHeightChanged();
hasBarrier = true;
} }
} }
/** /**
@ -189,6 +190,7 @@ public class SegmentSide implements Cloneable
{ {
this.barrierStyle = barrierStyle; this.barrierStyle = barrierStyle;
barrierStyleChanged(); barrierStyleChanged();
hasBarrier = true;
} }
/** /**
* *
@ -221,6 +223,7 @@ public class SegmentSide implements Cloneable
{ {
this.barrierSurface = barrierSurface; this.barrierSurface = barrierSurface;
barrierSurfaceChanged(); barrierSurfaceChanged();
hasBarrier = true;
} }
/** /**
* *
@ -255,6 +258,7 @@ public class SegmentSide implements Cloneable
{ {
this.barrierWidth = barrierWidth; this.barrierWidth = barrierWidth;
barrierWidthChanged(); barrierWidthChanged();
hasBarrier = true;
} }
} }
/** /**
@ -306,6 +310,7 @@ public class SegmentSide implements Cloneable
{ {
this.borderHeight = borderHeight; this.borderHeight = borderHeight;
borderHeightChanged(); borderHeightChanged();
hasBorder = true;
} }
} }
/** /**
@ -339,6 +344,7 @@ public class SegmentSide implements Cloneable
{ {
this.borderStyle = borderStyle; this.borderStyle = borderStyle;
borderStyleChanged(); borderStyleChanged();
hasBorder = true;
} }
/** /**
* *
@ -371,6 +377,7 @@ public class SegmentSide implements Cloneable
{ {
this.borderSurface = borderSurface; this.borderSurface = borderSurface;
borderSurfaceChanged(); borderSurfaceChanged();
hasBorder = true;
} }
/** /**
* *
@ -405,6 +412,7 @@ public class SegmentSide implements Cloneable
{ {
this.borderWidth = borderWidth; this.borderWidth = borderWidth;
borderWidthChanged(); borderWidthChanged();
hasBorder = true;
} }
} }
/** /**
@ -455,6 +463,7 @@ public class SegmentSide implements Cloneable
{ {
this.sideEndWidth = sideEndWidth; this.sideEndWidth = sideEndWidth;
sideEndWidthChanged(); sideEndWidthChanged();
hasSide = true;
} }
} }
/** /**
@ -490,6 +499,7 @@ public class SegmentSide implements Cloneable
{ {
this.sideStartWidth = sideStartWidth; this.sideStartWidth = sideStartWidth;
sideStartWidthChanged(); sideStartWidthChanged();
hasSide = true;
} }
} }
/** /**
@ -523,6 +533,7 @@ public class SegmentSide implements Cloneable
{ {
this.sideSurface = sideSurface; this.sideSurface = sideSurface;
sideSurfaceChanged(); sideSurfaceChanged();
hasSide = true;
} }
/** /**
@ -556,6 +567,7 @@ public class SegmentSide implements Cloneable
{ {
this.sideBankingType = sideBankingType; this.sideBankingType = sideBankingType;
sideBankingTypeChanged(); sideBankingTypeChanged();
hasSide = true;
} }
/** /**