~francesco-hermanitosverdes/openshot/hv_francesco

« back to all changes in this revision

Viewing changes to openshot/classes/track.py

  • Committer: Jonathan Thomas
  • Date: 2009-10-15 05:48:15 UTC
  • Revision ID: jonathan@jonathan64-20091015054815-he5csytxmcs8v03j
Bumped to version 0.9.52

Merged Andy's new "set_project_modified" code, which 
improves OpenShot's ability to prompt users to save projects
when exiting, and disables the save button when there are
no changes to save.

I had to extend this method to incorporate the "refresh xml"
flag which I had used previously to determine when the XML
needed to be re-generated.

The final method signature now looks like:
set_project_modified(is_modified=False, refresh_xml=False)

Removed right click menu for our transitions tree... which 
was left over code from the file tree.

New Project screen now defaults to the "Desktop" correctly
when creating a new project.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
                self.clips.append(NewClip)
67
67
                
68
68
                # mark project as modified
69
 
                self.parent.project.is_modified = True
 
69
                self.parent.project.set_project_modified(is_modified=True, refresh_xml=True)
70
70
                
71
71
                # return the new clip
72
72
                return NewClip
75
75
        def AddTransition(self, transition_name, position_on_track, length, resource):
76
76
                
77
77
                # mark project as modified
78
 
                self.parent.project.is_modified = True
 
78
                self.parent.project.set_project_modified(is_modified=True, refresh_xml=True)
79
79
                
80
80
                # create a new transition object
81
81
                new_transition = transition.transition(transition_name, position_on_track, length, resource, self)
249
249
                parent_group = item.get_parent()
250
250
                
251
251
                # mark project as modified
252
 
                self.parent.project.is_modified = True
 
252
                self.parent.project.set_project_modified(is_modified=True, refresh_xml=True)
253
253
 
254
254
                if self.play_video == True:
255
255
                        # Load Hover Over
276
276
                parent_group = item.get_parent()
277
277
                
278
278
                # mark project as modified
279
 
                self.parent.project.is_modified = True
 
279
                self.parent.project.set_project_modified(is_modified=True, refresh_xml=True)
280
280
 
281
281
                if self.play_audio == True:
282
282
                        # Load Hover Over