Added option to include decals when saving a file.
This commit is contained in:
parent
1490f48f29
commit
49c9329fde
@ -7,12 +7,21 @@ public class StorageOptions implements Cloneable {
|
||||
public static final double SIMULATION_DATA_NONE = Double.POSITIVE_INFINITY;
|
||||
public static final double SIMULATION_DATA_ALL = 0;
|
||||
|
||||
private boolean includeDecals = false;
|
||||
|
||||
private boolean compressionEnabled = true;
|
||||
|
||||
private double simulationTimeSkip = SIMULATION_DATA_NONE;
|
||||
|
||||
private boolean explicitlySet = false;
|
||||
|
||||
public boolean isIncludeDecals() {
|
||||
return includeDecals;
|
||||
}
|
||||
|
||||
public void setIncludeDecals(boolean includeDecals) {
|
||||
this.includeDecals = includeDecals;
|
||||
}
|
||||
|
||||
public boolean isCompressionEnabled() {
|
||||
return compressionEnabled;
|
||||
|
@ -40,6 +40,7 @@ public class StorageOptionChooser extends JPanel {
|
||||
private JSpinner timeSpinner;
|
||||
|
||||
private JCheckBox compressButton;
|
||||
private JCheckBox decalButton;
|
||||
|
||||
private JLabel estimateLabel;
|
||||
|
||||
@ -122,6 +123,11 @@ public class StorageOptionChooser extends JPanel {
|
||||
noneButton.addActionListener(actionUpdater);
|
||||
this.add(noneButton, "spanx, wrap 20lp");
|
||||
|
||||
//// Save decals
|
||||
decalButton = new JCheckBox(trans.get("StorageOptChooser.checkbox.IncludeDecals"));
|
||||
decalButton.setToolTipText(trans.get("StorageOptChooser.lbl.IncludeDecals"));
|
||||
decalButton.addActionListener(actionUpdater);
|
||||
this.add(decalButton, "spanx, wrap para");
|
||||
|
||||
//// Compress file
|
||||
compressButton = new JCheckBox(trans.get("StorageOptChooser.checkbox.Compfile"));
|
||||
@ -188,6 +194,7 @@ public class StorageOptionChooser extends JPanel {
|
||||
|
||||
opts.setSimulationTimeSkip(t);
|
||||
|
||||
opts.setIncludeDecals(decalButton.isSelected());
|
||||
opts.setCompressionEnabled(compressButton.isSelected());
|
||||
|
||||
opts.setExplicitlySet(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user