Changeset 65


Ignore:
Timestamp:
05/16/08 14:36:59 (16 years ago)
Author:
ra33
Message:

Navigation shortcuts dont add frames to the back up stack

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        11expeditee
        22bin
         3Test.txt
  • trunk/src/org/expeditee/actions/NavigationActions.java

    r13 r65  
    113113         */
    114114        public static void NextFrame() {
     115                NextFrame(true);
     116        }
     117       
     118        public static void NextFrame(boolean addToBack) {
    115119                Frame next = FrameIO.LoadNext();
    116120                FrameUtils.DisplayFrame(next, true);
     
    140144        }
    141145       
     146        public static void PreviousFrame(boolean addToBack) {
     147                Frame prev = FrameIO.LoadPrevious();
     148                FrameUtils.DisplayFrame(prev, addToBack);
     149        }
     150       
    142151        public static void PreviousFrame() {
    143                 Frame prev = FrameIO.LoadPrevious();
    144                 FrameUtils.DisplayFrame(prev, true);
     152                PreviousFrame(true);
    145153        }
    146154
  • trunk/src/org/expeditee/gui/FrameKeyboardActions.java

    r50 r65  
    1414
    1515import org.expeditee.actions.Actions;
     16import org.expeditee.actions.NavigationActions;
    1617import org.expeditee.actions.Simple;
    1718import org.expeditee.io.Logger;
     
    278279
    279280        private void navigateFrame(int direction) {
    280                 Frame next = null;
    281281                switch (direction) {
    282282                case Text.RIGHT:
    283283                case Text.PAGE_UP:
    284                         next = FrameIO.LoadNext();
     284                        NavigationActions.NextFrame(false);
    285285                        break;
    286286                case Text.LEFT:
    287287                case Text.PAGE_DOWN:
    288                         next = FrameIO.LoadPrevious();
     288                        NavigationActions.PreviousFrame(false);
    289289                        break;
    290290                case Text.HOME:
    291                         next = FrameIO.LoadZero();
     291                        NavigationActions.ZeroFrame();
    292292                        break;
    293293                case Text.END:
    294                         next = FrameIO.LoadLast();
    295                         break;
    296                 }
    297                 FrameUtils.DisplayFrame(next, true);
     294                        NavigationActions.LastFrame();
     295                        break;
     296                }
    298297        }
    299298
Note: See TracChangeset for help on using the changeset viewer.