Changeset 67 for trunk/src/org/expeditee/actions/NavigationActions.java
- Timestamp:
- 05/19/08 12:03:18 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/NavigationActions.java
r65 r67 117 117 118 118 public static void NextFrame(boolean addToBack) { 119 addToBack = adjustAddToBack(addToBack); 119 120 Frame next = FrameIO.LoadNext(); 120 FrameUtils.DisplayFrame(next, true);121 FrameUtils.DisplayFrame(next, addToBack); 121 122 } 122 123 … … 145 146 146 147 public static void PreviousFrame(boolean addToBack) { 148 addToBack = adjustAddToBack(addToBack); 147 149 Frame prev = FrameIO.LoadPrevious(); 148 150 FrameUtils.DisplayFrame(prev, addToBack); … … 213 215 // ByMike: Find the first occurence of a ParentItem linked to the source 214 216 while (parentItemLinkedToSource < items.size() 215 && (items.get(parentItemLinkedToSource).get Link() == null || !items216 .get(parentItemLinkedToSource).get Link().toLowerCase()217 && (items.get(parentItemLinkedToSource).getAbsoluteLink() == null || !items 218 .get(parentItemLinkedToSource).getAbsoluteLink().toLowerCase() 217 219 .equals(sourceName))) { 218 220 parentItemLinkedToSource++; // ByRob: this increments to the next … … 224 226 if (items.get(i).isLinkValid() 225 227 && !items.get(i).isAnnotation() 226 && !items.get(i).get Link().toLowerCase().equals(228 && !items.get(i).getAbsoluteLink().toLowerCase().equals( 227 229 source.getFrameName().toLowerCase())) { 228 230 _LastItemUsed = items.get(i); … … 250 252 DisplayIO.ToggleTwinFrames(); 251 253 } 254 255 // When display frame is called with addToBack set to false multiple 256 // times... 257 // The first time we add to back but after that we dont 258 // This flag stores the state for the addToBack parameter the last time this 259 // method was called 260 private static boolean _lastAddToBack = true; 261 262 public static void ResetLastAddToBack() { 263 _lastAddToBack = true; 264 } 265 266 private static boolean adjustAddToBack(boolean addToBack) { 267 boolean originalAddToBack = addToBack; 268 269 if (!addToBack && _lastAddToBack){ 270 //This adds the first frame to the backup stack when the user 271 //navigates through a bunch of frames with the keyboard! 272 addToBack = true; 273 } 274 275 _lastAddToBack = originalAddToBack; 276 277 return addToBack; 278 } 252 279 }
Note:
See TracChangeset
for help on using the changeset viewer.