Changeset 700
- Timestamp:
- 01/16/14 10:03:31 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/Help.java
r697 r700 41 41 // separator between command and description 42 42 private static final String separatorString = ": "; 43 // flag for dragging 44 private static final String dragString = "d"; 45 46 private static final String commandPadding = " "; 43 44 private static final String commandPadding = " "; 47 45 private static final String padding = " "; 48 46 49 private static final String command(int mod, int button , boolean drag) {50 String cmd = (drag ? dragString : "") +modifiers[mod] + buttons[button] + separatorString;47 private static final String command(int mod, int button) { 48 String cmd = modifiers[mod] + buttons[button] + separatorString; 51 49 return commandPadding.substring(cmd.length()) + cmd; 52 }53 54 private static final String command(int mod, int button) {55 return command(mod, button, false);56 50 } 57 51 … … 106 100 return "Copy item"; 107 101 } 108 }109 110 private static final String left_middle(Context context, int mod, int other) {111 return null;112 102 } 113 103 … … 223 213 String r = right(context, mod, other); 224 214 String lr = left_right(context, mod, other); 225 String lm = left_middle(context, mod, other);226 215 String mr = middle_right(context, mod, other); 227 216 String dl = drag_left(context, mod, other); … … 229 218 String dr = drag_right(context, mod, other); 230 219 220 if(l != null || m != null || r != null || lr != null) status += " Click:"; 231 221 if(l != null) status += command(mod, left) + l + padding.substring(l.length()); 232 222 if(m != null) status += command(mod, middle) + m + padding.substring(m.length()); 233 223 if(r != null) status += command(mod, right) + r + padding.substring(r.length()); 234 if(lm != null) status += command(mod, left | middle) + lm + padding.substring(lm.length());235 224 if(lr != null) status += command(mod, left | right) + lr + padding.substring(lr.length()); 236 225 if(mr != null) status += command(mod, middle | right) + mr + padding.substring(mr.length()); 237 if(dl != null || dm != null || dr != null || iw != null) status += "\n ";238 if(dl != null) status += command(mod, left , true) + dl + padding.substring(dl.length());239 if(dm != null) status += command(mod, middle , true) + dm + padding.substring(dm.length());240 if(dr != null) status += command(mod, right , true) + dr + padding.substring(dr.length());226 if(dl != null || dm != null || dr != null || iw != null) status += "\n Drag: "; 227 if(dl != null) status += command(mod, left) + dl + padding.substring(dl.length()); 228 if(dm != null) status += command(mod, middle) + dm + padding.substring(dm.length()); 229 if(dr != null) status += command(mod, right) + dr + padding.substring(dr.length()); 241 230 if(iw != null) status += commandPadding + "Widget: " + iw.getClass().getSimpleName(); 242 231
Note:
See TracChangeset
for help on using the changeset viewer.