OpenShot Video Editor
2.0.0
|
This class allows advanced searching of data structure, implements changes interface. More...
Public Member Functions | |
def | __init__ |
def | add_to_recent_files |
Add this project to the recent files list. More... | |
def | changed |
This method is invoked by the UpdateManager each time a change happens (i.e UpdateInterface) More... | |
def | check_if_paths_are_valid |
Check if all paths are valid, and prompt to update them if needed. More... | |
def | generate_id |
Generate random alphanumeric ids. More... | |
def | get |
Get copied value of a given key in data store. More... | |
def | is_image |
def | load |
Load project from file. More... | |
def | move_temp_paths_to_project_folder |
Move all temp files (such as Thumbnails, Titles, and Blender animations) to the project folder. More... | |
def | needs_save |
Returns if project data Has unsaved changes. More... | |
def | new |
Try to load default project settings file, will raise error on failure. More... | |
def | read_legacy_project_file |
Attempt to read a legacy version 1.x openshot project file. More... | |
def | rescale_keyframes |
Adjust all keyframe coordinates from previous FPS to new FPS (using a scale factor) More... | |
def | save |
Save project file to disk. More... | |
def | scale_keyframe_value |
Scale keyframe X coordinate by some factor, except for 1 (leave that alone) More... | |
def | set |
Prevent calling JsonDataStore set() method. More... | |
def | upgrade_project_data_structures |
Fix any issues with old project files (if any) More... | |
Public Attributes | |
current_filepath | |
data_type | |
default_project_filepath | |
has_unsaved_changes | |
This class allows advanced searching of data structure, implements changes interface.
Definition at line 45 of file project_data.py.
def project_data.ProjectDataStore.__init__ | ( | self | ) |
Definition at line 47 of file project_data.py.
def project_data.ProjectDataStore.add_to_recent_files | ( | self, | |
file_path | |||
) |
Add this project to the recent files list.
Definition at line 868 of file project_data.py.
def project_data.ProjectDataStore.changed | ( | self, | |
action | |||
) |
This method is invoked by the UpdateManager each time a change happens (i.e UpdateInterface)
Definition at line 970 of file project_data.py.
def project_data.ProjectDataStore.check_if_paths_are_valid | ( | self | ) |
Check if all paths are valid, and prompt to update them if needed.
Definition at line 893 of file project_data.py.
def project_data.ProjectDataStore.generate_id | ( | self, | |
digits = 10 |
|||
) |
Generate random alphanumeric ids.
Definition at line 992 of file project_data.py.
def project_data.ProjectDataStore.get | ( | self, | |
key | |||
) |
Get copied value of a given key in data store.
Definition at line 68 of file project_data.py.
def project_data.ProjectDataStore.is_image | ( | self, | |
file | |||
) |
Definition at line 688 of file project_data.py.
def project_data.ProjectDataStore.load | ( | self, | |
file_path | |||
) |
Load project from file.
Definition at line 314 of file project_data.py.
def project_data.ProjectDataStore.move_temp_paths_to_project_folder | ( | self, | |
file_path | |||
) |
Move all temp files (such as Thumbnails, Titles, and Blender animations) to the project folder.
Definition at line 782 of file project_data.py.
def project_data.ProjectDataStore.needs_save | ( | self | ) |
Returns if project data Has unsaved changes.
Definition at line 63 of file project_data.py.
def project_data.ProjectDataStore.new | ( | self | ) |
Try to load default project settings file, will raise error on failure.
Definition at line 258 of file project_data.py.
def project_data.ProjectDataStore.read_legacy_project_file | ( | self, | |
file_path | |||
) |
Attempt to read a legacy version 1.x openshot project file.
Definition at line 429 of file project_data.py.
def project_data.ProjectDataStore.rescale_keyframes | ( | self, | |
scale_factor | |||
) |
Adjust all keyframe coordinates from previous FPS to new FPS (using a scale factor)
Definition at line 381 of file project_data.py.
def project_data.ProjectDataStore.save | ( | self, | |
file_path, | |||
move_temp_files = True , |
|||
make_paths_relative = True |
|||
) |
Save project file to disk.
Definition at line 754 of file project_data.py.
def project_data.ProjectDataStore.scale_keyframe_value | ( | self, | |
original_value, | |||
scale_factor | |||
) |
Scale keyframe X coordinate by some factor, except for 1 (leave that alone)
Definition at line 371 of file project_data.py.
def project_data.ProjectDataStore.set | ( | self, | |
key, | |||
value | |||
) |
Prevent calling JsonDataStore set() method.
It is not allowed in ProjectDataStore, as changes come from UpdateManager.
Definition at line 143 of file project_data.py.
def project_data.ProjectDataStore.upgrade_project_data_structures | ( | self | ) |
Fix any issues with old project files (if any)
Definition at line 698 of file project_data.py.
project_data.ProjectDataStore.current_filepath |
Definition at line 53 of file project_data.py.
project_data.ProjectDataStore.data_type |
Definition at line 49 of file project_data.py.
project_data.ProjectDataStore.default_project_filepath |
Definition at line 50 of file project_data.py.
project_data.ProjectDataStore.has_unsaved_changes |
Definition at line 56 of file project_data.py.