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

View file

@ -369,7 +369,7 @@ public class SegmentSideProperties extends JPanel implements SliderListener
public void actionPerformed(ActionEvent e)
{
if (barrierStyleComboBox.getSelectedItem() != null)
side.setBarrierStyle(barrierStyleComboBox.getSelectedItem()+"");
side.setBarrierStyle(barrierStyleComboBox.getSelectedItem()+"");
}
});
}

View file

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