Logo Search packages:      
Sourcecode: jokosher version File versions  Download package

def TimeLine::TimeLine::OnStateChanged (   self,
  obj,
  change = None 
)

Called when there is a change fo state in transport
manager.Could be one of
 *  Mode changed from bars/beats to minutes or vice versa
    (requires a complete redraw of timeline - flag set)
 *  Change in playing position -only needs partial redraw
 *  Project change e.g. acroll or zoom change
    (requires a complete redraw of timeline - flag set)

Definition at line 175 of file TimeLine.py.

00175                                                 :
            """ 
            Called when there is a change fo state in transport
            manager.Could be one of
             *  Mode changed from bars/beats to minutes or vice versa
                (requires a complete redraw of timeline - flag set)
             *  Change in playing position -only needs partial redraw
             *  Project change e.g. acroll or zoom change
                (requires a complete redraw of timeline - flag set)
            """
            if self.project.transport.RedrawTimeLine or self.project.RedrawTimeLine:
                  self.queue_draw()
                  return
            x1 = round((self.project.transport.PrevPosition - self.project.viewStart) * self.project.viewScale)
            x2 = round((self.project.transport.position - self.project.viewStart) * self.project.viewScale)
            
            self.queue_draw_area(int(x1)-1, 0, 3, self.get_allocation().height)
            self.queue_draw_area(int(x2)-1, 0, 3, self.get_allocation().height)
            
      #_____________________________________________________________________
            
      def onMouseDown(self, widget, event):


Generated by  Doxygen 1.6.0   Back to index