Changeset 65
- Timestamp:
- 05/16/08 14:36:59 (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 1 expeditee 2 2 bin 3 Test.txt
-
- Property svn:ignore
-
trunk/src/org/expeditee/actions/NavigationActions.java
r13 r65 113 113 */ 114 114 public static void NextFrame() { 115 NextFrame(true); 116 } 117 118 public static void NextFrame(boolean addToBack) { 115 119 Frame next = FrameIO.LoadNext(); 116 120 FrameUtils.DisplayFrame(next, true); … … 140 144 } 141 145 146 public static void PreviousFrame(boolean addToBack) { 147 Frame prev = FrameIO.LoadPrevious(); 148 FrameUtils.DisplayFrame(prev, addToBack); 149 } 150 142 151 public static void PreviousFrame() { 143 Frame prev = FrameIO.LoadPrevious(); 144 FrameUtils.DisplayFrame(prev, true); 152 PreviousFrame(true); 145 153 } 146 154 -
trunk/src/org/expeditee/gui/FrameKeyboardActions.java
r50 r65 14 14 15 15 import org.expeditee.actions.Actions; 16 import org.expeditee.actions.NavigationActions; 16 17 import org.expeditee.actions.Simple; 17 18 import org.expeditee.io.Logger; … … 278 279 279 280 private void navigateFrame(int direction) { 280 Frame next = null;281 281 switch (direction) { 282 282 case Text.RIGHT: 283 283 case Text.PAGE_UP: 284 next = FrameIO.LoadNext();284 NavigationActions.NextFrame(false); 285 285 break; 286 286 case Text.LEFT: 287 287 case Text.PAGE_DOWN: 288 next = FrameIO.LoadPrevious();288 NavigationActions.PreviousFrame(false); 289 289 break; 290 290 case Text.HOME: 291 next = FrameIO.LoadZero();291 NavigationActions.ZeroFrame(); 292 292 break; 293 293 case Text.END: 294 next = FrameIO.LoadLast(); 295 break; 296 } 297 FrameUtils.DisplayFrame(next, true); 294 NavigationActions.LastFrame(); 295 break; 296 } 298 297 } 299 298
Note:
See TracChangeset
for help on using the changeset viewer.