From 8b4c1c386b05ebbb9cc81628329d384798103744 Mon Sep 17 00:00:00 2001 From: Daniel_M_Williams Date: Sat, 27 Jun 2015 16:57:49 -0400 Subject: [PATCH] removed gui code for stage instance rotation. Meaning is ambiguous. --- .../gui/configdialog/StageConfig.java | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/swing/src/net/sf/openrocket/gui/configdialog/StageConfig.java b/swing/src/net/sf/openrocket/gui/configdialog/StageConfig.java index feb57a534..53b39c921 100644 --- a/swing/src/net/sf/openrocket/gui/configdialog/StageConfig.java +++ b/swing/src/net/sf/openrocket/gui/configdialog/StageConfig.java @@ -95,19 +95,20 @@ public class StageConfig extends RocketComponentConfig { motherPanel.add( angleUnitSelector, "growx 1, wrap"); parallelEnabledModel.addEnableComponent( angleUnitSelector , true); - // set rotation angle of the stage. Does not affect the location - JLabel rotationLabel = new JLabel(trans.get("RocketCompCfg.outside.rotation")); - motherPanel.add( rotationLabel, "align left"); - parallelEnabledModel.addEnableComponent( rotationLabel, true); - DoubleModel rotationModel = new DoubleModel( stage, "Rotation", 1.0, UnitGroup.UNITS_ANGLE, 0.0, Math.PI*2); - rotationModel.setCurrentUnit( UnitGroup.UNITS_ANGLE.getUnit("rad") ); - JSpinner rotationSpinner = new JSpinner(rotationModel.getSpinnerModel()); - rotationSpinner.setEditor(new SpinnerEditor(rotationSpinner)); - motherPanel.add(rotationSpinner, "growx 1"); - parallelEnabledModel.addEnableComponent( rotationSpinner, true); - UnitSelector rotationUnitSelector = new UnitSelector( rotationModel); - motherPanel.add( rotationUnitSelector, "growx 1, wrap"); - parallelEnabledModel.addEnableComponent( rotationUnitSelector , true); + // Not convinced this is a useful option, or that the user will need to modify this. +// // set rotation angle of the stage. Does not affect the location +// JLabel rotationLabel = new JLabel(trans.get("RocketCompCfg.outside.rotation")); +// motherPanel.add( rotationLabel, "align left"); +// parallelEnabledModel.addEnableComponent( rotationLabel, true); +// DoubleModel rotationModel = new DoubleModel( stage, "Rotation", 1.0, UnitGroup.UNITS_ANGLE, 0.0, Math.PI*2); +// rotationModel.setCurrentUnit( UnitGroup.UNITS_ANGLE.getUnit("rad") ); +// JSpinner rotationSpinner = new JSpinner(rotationModel.getSpinnerModel()); +// rotationSpinner.setEditor(new SpinnerEditor(rotationSpinner)); +// motherPanel.add(rotationSpinner, "growx 1"); +// parallelEnabledModel.addEnableComponent( rotationSpinner, true); +// UnitSelector rotationUnitSelector = new UnitSelector( rotationModel); +// motherPanel.add( rotationUnitSelector, "growx 1, wrap"); +// parallelEnabledModel.addEnableComponent( rotationUnitSelector , true); // set multiplicity JLabel countLabel = new JLabel(trans.get("RocketCompCfg.outside.count"));