Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_sequencer.c
| Show First 20 Lines • Show All 1,960 Lines • ▼ Show 20 Lines | static void rna_def_editor(BlenderRNA *brna) | ||||
| srna = RNA_def_struct(brna, "SequenceEditor", NULL); | srna = RNA_def_struct(brna, "SequenceEditor", NULL); | ||||
| RNA_def_struct_ui_text(srna, "Sequence Editor", "Sequence editing data for a Scene data-block"); | RNA_def_struct_ui_text(srna, "Sequence Editor", "Sequence editing data for a Scene data-block"); | ||||
| RNA_def_struct_ui_icon(srna, ICON_SEQUENCE); | RNA_def_struct_ui_icon(srna, ICON_SEQUENCE); | ||||
| RNA_def_struct_sdna(srna, "Editing"); | RNA_def_struct_sdna(srna, "Editing"); | ||||
| prop = RNA_def_property(srna, "sequences", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "sequences", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_collection_sdna(prop, NULL, "seqbase", NULL); | RNA_def_property_collection_sdna(prop, NULL, "seqbase", NULL); | ||||
| RNA_def_property_struct_type(prop, "Sequence"); | RNA_def_property_struct_type(prop, "Sequence"); | ||||
| RNA_def_property_ui_text(prop, "Sequences", "Top-level strips only"); | RNA_def_property_ui_text(prop, "SequencesEditing", "Top-level strips only"); | ||||
mont29: No PascalCase in UI labels, if you really need to update those use spaces. | |||||
| RNA_api_sequences(brna, prop); | RNA_api_sequences(brna, prop, false); | ||||
| prop = RNA_def_property(srna, "sequences_all", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "sequences_all", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_collection_sdna(prop, NULL, "seqbase", NULL); | RNA_def_property_collection_sdna(prop, NULL, "seqbase", NULL); | ||||
| RNA_def_property_struct_type(prop, "Sequence"); | RNA_def_property_struct_type(prop, "Sequence"); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "All Sequences", "All strips, recursively including those inside metastrips"); | prop, "All Sequences", "All strips, recursively including those inside metastrips"); | ||||
| RNA_def_property_collection_funcs(prop, | RNA_def_property_collection_funcs(prop, | ||||
| "rna_SequenceEditor_sequences_all_begin", | "rna_SequenceEditor_sequences_all_begin", | ||||
| ▲ Show 20 Lines • Show All 355 Lines • ▼ Show 20 Lines | static void rna_def_meta(BlenderRNA *brna) | ||||
| srna = RNA_def_struct(brna, "MetaSequence", "Sequence"); | srna = RNA_def_struct(brna, "MetaSequence", "Sequence"); | ||||
| RNA_def_struct_ui_text( | RNA_def_struct_ui_text( | ||||
| srna, "Meta Sequence", "Sequence strip to group other strips as a single sequence strip"); | srna, "Meta Sequence", "Sequence strip to group other strips as a single sequence strip"); | ||||
| RNA_def_struct_sdna(srna, "Sequence"); | RNA_def_struct_sdna(srna, "Sequence"); | ||||
| prop = RNA_def_property(srna, "sequences", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "sequences", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_collection_sdna(prop, NULL, "seqbase", NULL); | RNA_def_property_collection_sdna(prop, NULL, "seqbase", NULL); | ||||
| RNA_def_property_struct_type(prop, "Sequence"); | RNA_def_property_struct_type(prop, "Sequence"); | ||||
| RNA_def_property_ui_text(prop, "Sequences", ""); | RNA_def_property_ui_text(prop, "SequencesMeta", ""); | ||||
mont29Unsubmitted Done Inline ActionsNo PascalCase in UI labels, if you really need to update those use spaces. And probably add a short tooltip too, for sake of clarity? mont29: No PascalCase in UI labels, if you really need to update those use spaces.
And probably add a… | |||||
| RNA_api_sequences(brna, prop, true); | |||||
| rna_def_filter_video(srna); | rna_def_filter_video(srna); | ||||
| rna_def_proxy(srna); | rna_def_proxy(srna); | ||||
| rna_def_input(srna); | rna_def_input(srna); | ||||
| } | } | ||||
| static void rna_def_scene(BlenderRNA *brna) | static void rna_def_scene(BlenderRNA *brna) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 971 Lines • Show Last 20 Lines | |||||
No PascalCase in UI labels, if you really need to update those use spaces.