- Timestamp:
- 2013-10-27T04:23:57+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticPropertiesPanel.java
r6267 r6335 9 9 10 10 import javax.swing.BorderFactory; 11 import javax.swing.JCheckBox;12 11 import javax.swing.JLabel; 13 12 import javax.swing.JPanel; … … 23 22 private JosmTextField tfUserName; 24 23 private JosmPasswordField tfPassword; 25 26 private JCheckBox cbWriteMapData;27 private JCheckBox cbWriteGpsTraces;28 private JCheckBox cbReadGpsTraces;29 30 24 31 25 protected JPanel buildUserNamePasswordPanel() { -
trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
r6317 r6335 1500 1500 abstract public static class SourcePrefHelper { 1501 1501 1502 private final String prefOld;1503 1502 private final String pref; 1504 1503 1505 1504 public SourcePrefHelper(String pref, String prefOld) { 1506 1505 this.pref = pref; 1507 this.prefOld = prefOld;1508 1506 } 1509 1507 -
trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java
r6316 r6335 57 57 // table of shortcuts 58 58 private AbstractTableModel model; 59 // comboboxes of modifier groups, mapping selectedIndex to real data60 private static int[] modifInts = new int[]{61 -1,62 0,63 KeyEvent.SHIFT_DOWN_MASK,64 KeyEvent.CTRL_DOWN_MASK,65 KeyEvent.ALT_DOWN_MASK,66 KeyEvent.META_DOWN_MASK,67 KeyEvent.CTRL_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK,68 KeyEvent.ALT_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK,69 KeyEvent.META_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK,70 KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK,71 KeyEvent.CTRL_DOWN_MASK | KeyEvent.META_DOWN_MASK,72 KeyEvent.ALT_DOWN_MASK | KeyEvent.META_DOWN_MASK,73 KeyEvent.CTRL_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK | KeyEvent.ALT_DOWN_MASK,74 KeyEvent.META_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK | KeyEvent.ALT_DOWN_MASK75 };76 // and here are the texts fro the comboboxes77 private static String[] modifList = new String[] {78 tr("disabled"),79 tr("no modifier"),80 KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[2]).getModifiers()),81 KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[3]).getModifiers()),82 KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[4]).getModifiers()),83 KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[5]).getModifiers()),84 KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[6]).getModifiers()),85 KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[7]).getModifiers()),86 KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[8]).getModifiers()),87 KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[9]).getModifiers()),88 KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[10]).getModifiers()),89 KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[11]).getModifiers()),90 KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[12]).getModifiers()),91 KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[13]).getModifiers())92 };93 59 // this are the display(!) texts for the checkboxes. Let the JVM do the i18n for us <g>. 94 60 // Ok, there's a real reason for this: The JVM should know best how the keys are labelled … … 140 106 141 107 /** Creates new form prefJPanel */ 142 // Ain't those auto-generated comments helpful or what? <g>143 108 public PrefJPanel(AbstractTableModel model) { 144 109 this.model = model;
Note:
See TracChangeset
for help on using the changeset viewer.