Changeset 29377 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetDialog.java
- Timestamp:
- 2013-03-20T08:05:48+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetDialog.java
r29376 r29377 22 22 protected static final String PREF_CALIBRATION = "iodb.show.calibration"; 23 23 protected static final String PREF_DEPRECATED = "iodb.show.deprecated"; 24 private static final int MAX_OFFSETS = Main.main.pref.getInteger("iodb.max.offsets", 5); 24 25 25 26 private List<ImageryOffsetBase> offsets; … … 42 43 Box dialog = new Box(BoxLayout.Y_AXIS); 43 44 updateButtonPanel(); 44 // todo: calibration objects and deprecated offsets button 45 final JCheckBox calibrationBox = new JCheckBox(tr("Hide calibration geometries")); 45 final JCheckBox calibrationBox = new JCheckBox(tr("Calibration geometries")); 46 46 calibrationBox.setSelected(Main.pref.getBoolean(PREF_CALIBRATION, true)); 47 47 calibrationBox.addActionListener(new ActionListener() { … … 51 51 } 52 52 }); 53 final JCheckBox deprecatedBox = new JCheckBox(tr(" Show deprecated offsets"));53 final JCheckBox deprecatedBox = new JCheckBox(tr("Deprecated offsets")); 54 54 deprecatedBox.setSelected(Main.pref.getBoolean(PREF_DEPRECATED, false)); 55 55 deprecatedBox.addActionListener(new ActionListener() { … … 92 92 buttonPanel.add(button); 93 93 } 94 // buttonPanel.setMinimumSize(buttonPanel.getPreferredSize()); 94 95 pack(); 95 96 } … … 105 106 continue; 106 107 filteredOffsets.add(offset); 108 if( filteredOffsets.size() >= MAX_OFFSETS ) 109 break; 107 110 } 108 111 return filteredOffsets;
Note:
See TracChangeset
for help on using the changeset viewer.