Removed next/previous commands from hooke_cli
authorW. Trevor King <wking@drexel.edu>
Wed, 12 May 2010 18:54:48 +0000 (14:54 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 12 May 2010 18:54:48 +0000 (14:54 -0400)
Superseded by hooke.plugin.playlist commands.

hooke/hooke_cli.py

index 51e56a8c9268373bb9f2d7a6ade59989febc2b98..4a5aca333f1e99dfaf5ec3864eda918b3715e301 100644 (file)
@@ -226,67 +226,3 @@ If the curve is not in the current playlist, it politely asks if we want to add
         Syntax: index
         '''
         print self.pointer+1, 'of', len(self.current_list)
-
-
-    def help_next(self):
-        print '''
-NEXT
-Go the next curve in the playlist.
-If we are at the last curve, we come back to the first.
------
-Syntax: next, n
-        '''
-    def do_next(self,args):
-        try:
-            self.current.curve.close_all()
-        except:
-            print 'No curve file loaded, currently!'
-            print 'This should not happen, report to http://code.google.com/p/hooke'
-            return
-
-        if self.pointer == (len(self.current_list)-1):
-            self.pointer=0
-            print 'Playlist finished; back to first curve.'
-        else:
-            self.pointer+=1
-
-        self.current=self.current_list[self.pointer]
-        self.do_plot(0)
-
-
-    def help_n(self):
-        self.help_next()
-    def do_n(self,args):
-        self.do_next(args)
-
-    def help_previous(self,args):
-        print '''
-PREVIOUS
-Go to the previous curve in the playlist.
-If we are at the first curve, we jump to the last.
--------
-Syntax: previous, p
-    '''
-    def do_previous(self,args):
-        try:
-            self.current.curve.close_all()
-        except:
-            print 'No curve file loaded, currently!'
-            print 'This should not happen, report to http://code.google.com/p/hooke'
-            return
-        if self.pointer == 0:
-            self.pointer=(len(self.current_list)-1)
-            print 'Start of playlist; jump to last curve.'
-        else:
-            self.pointer-=1
-
-        self.current=self.current_list[self.pointer]
-        self.do_plot(args)
-
-
-    def help_p(self):
-        self.help_previous()
-    def do_p(self,args):
-        self.do_previous(args)
-
-