~nagos/openshot/nagos

« back to all changes in this revision

Viewing changes to openshot/classes/track.py

  • Committer: Jonathan Thomas
  • Date: 2010-01-31 22:50:27 UTC
  • Revision ID: jonathan@jonathan64-20100131225027-czx1bt422ps6lp5k
Fixed the history tree to not be sortable, and added
a new column to show which item in the history stack
is the current one.

Added a new double click signal to the History tree,
to handle switching to any item in the history stack.

Fixed many calls to set_project_modified() which were
not in the correct place.

Added Redo functionality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
                        NewClip.end_time = NewClip.start_time + float(preferences.Settings.general["imported_image_length"])#7.0
64
64
                
65
65
                # Add clip to track's clip list
66
 
                self.clips.append(NewClip)
67
 
                
68
 
                # mark project as modified
69
 
                self.parent.project.set_project_modified(is_modified=True, refresh_xml=True)                    
 
66
                self.clips.append(NewClip)              
70
67
                
71
68
                # return the new clip
72
69
                return NewClip
74
71
                        
75
72
        def AddTransition(self, transition_name, position_on_track, length, resource):
76
73
                
77
 
 
78
 
                
79
74
                # create a new transition object
80
75
                new_transition = transition.transition(transition_name, position_on_track, length, resource, self)
81
76
                
82
77
                # insert new transition
83
 
                self.transitions.append(new_transition)
84
 
                
85
 
                # mark project as modified
86
 
                self.parent.project.set_project_modified(is_modified=True, refresh_xml=True, type=_("Added transition"))                
 
78
                self.transitions.append(new_transition) 
87
79
                
88
80
                return new_transition
89
81