Pre-check "Match fore diameter" and "Match aft diameter" in preset chooser
This commit is contained in:
		
							parent
							
								
									b9b94f52e7
								
							
						
					
					
						commit
						1c9838b94a
					
				@ -222,6 +222,7 @@ public class ComponentPresetChooserDialog extends JDialog {
 | 
				
			|||||||
			foreDiameterFilterCheckBox = new JCheckBox(trans.get("ComponentPresetChooserDialog.checkbox.filterForeDiameter"));
 | 
								foreDiameterFilterCheckBox = new JCheckBox(trans.get("ComponentPresetChooserDialog.checkbox.filterForeDiameter"));
 | 
				
			||||||
			final SymmetricComponent prevSym = curSym.getPreviousSymmetricComponent();
 | 
								final SymmetricComponent prevSym = curSym.getPreviousSymmetricComponent();
 | 
				
			||||||
			if (prevSym != null && foreDiameterColumnIndex >= 0) {
 | 
								if (prevSym != null && foreDiameterColumnIndex >= 0) {
 | 
				
			||||||
 | 
									foreDiameterFilterCheckBox.setSelected(true);
 | 
				
			||||||
				foreDiameterFilter = new ComponentPresetRowFilter(prevSym.getAftRadius() * 2.0, foreDiameterColumnIndex);
 | 
									foreDiameterFilter = new ComponentPresetRowFilter(prevSym.getAftRadius() * 2.0, foreDiameterColumnIndex);
 | 
				
			||||||
				panel.add(foreDiameterFilterCheckBox, "wrap");
 | 
									panel.add(foreDiameterFilterCheckBox, "wrap");
 | 
				
			||||||
				foreDiameterFilterCheckBox.addItemListener(new ItemListener() {
 | 
									foreDiameterFilterCheckBox.addItemListener(new ItemListener() {
 | 
				
			||||||
@ -238,6 +239,7 @@ public class ComponentPresetChooserDialog extends JDialog {
 | 
				
			|||||||
			aftDiameterFilterCheckBox = new JCheckBox(trans.get("ComponentPresetChooserDialog.checkbox.filterAftDiameter"));
 | 
								aftDiameterFilterCheckBox = new JCheckBox(trans.get("ComponentPresetChooserDialog.checkbox.filterAftDiameter"));
 | 
				
			||||||
			final SymmetricComponent nextSym = curSym.getNextSymmetricComponent();
 | 
								final SymmetricComponent nextSym = curSym.getNextSymmetricComponent();
 | 
				
			||||||
			if (nextSym != null && aftDiameterColumnIndex >= 0) {
 | 
								if (nextSym != null && aftDiameterColumnIndex >= 0) {
 | 
				
			||||||
 | 
									aftDiameterFilterCheckBox.setSelected(true);
 | 
				
			||||||
				aftDiameterFilter = new ComponentPresetRowFilter(nextSym.getForeRadius() * 2.0, aftDiameterColumnIndex);
 | 
									aftDiameterFilter = new ComponentPresetRowFilter(nextSym.getForeRadius() * 2.0, aftDiameterColumnIndex);
 | 
				
			||||||
				panel.add(aftDiameterFilterCheckBox, "wrap");
 | 
									panel.add(aftDiameterFilterCheckBox, "wrap");
 | 
				
			||||||
				aftDiameterFilterCheckBox.addItemListener(new ItemListener() {
 | 
									aftDiameterFilterCheckBox.addItemListener(new ItemListener() {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user