Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | |||||
| srna = RNA_def_struct(brna, "SpaceSequenceEditor", "Space"); | srna = RNA_def_struct(brna, "SpaceSequenceEditor", "Space"); | ||||
| RNA_def_struct_sdna(srna, "SpaceSeq"); | RNA_def_struct_sdna(srna, "SpaceSeq"); | ||||
| RNA_def_struct_ui_text(srna, "Space Sequence Editor", "Sequence editor space data"); | RNA_def_struct_ui_text(srna, "Space Sequence Editor", "Sequence editor space data"); | ||||
| rna_def_space_generic_show_region_toggles(srna, | rna_def_space_generic_show_region_toggles(srna, | ||||
| (1 << RGN_TYPE_TOOL_HEADER) | (1 << RGN_TYPE_UI) | | (1 << RGN_TYPE_TOOL_HEADER) | (1 << RGN_TYPE_UI) | | ||||
| (1 << RGN_TYPE_TOOLS) | (1 << RGN_TYPE_HUD) | | (1 << RGN_TYPE_TOOLS) | (1 << RGN_TYPE_HUD) | | ||||
| (1 << RGN_TYPE_CHANNELS)); | (1 << RGN_TYPE_CHANNELS) | (1 << RGN_TYPE_FOOTER)); | ||||
| /* view type, fairly important */ | /* view type, fairly important */ | ||||
| prop = RNA_def_property(srna, "view_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "view_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "view"); | RNA_def_property_enum_sdna(prop, NULL, "view"); | ||||
| RNA_def_property_enum_items(prop, rna_enum_space_sequencer_view_type_items); | RNA_def_property_enum_items(prop, rna_enum_space_sequencer_view_type_items); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "View Type", "Type of the Sequencer view (sequencer, preview or both)"); | prop, "View Type", "Type of the Sequencer view (sequencer, preview or both)"); | ||||
| RNA_def_property_update(prop, 0, "rna_Sequencer_view_type_update"); | RNA_def_property_update(prop, 0, "rna_Sequencer_view_type_update"); | ||||
| ▲ Show 20 Lines • Show All 300 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| srna = RNA_def_struct(brna, "SpaceDopeSheetEditor", "Space"); | srna = RNA_def_struct(brna, "SpaceDopeSheetEditor", "Space"); | ||||
| RNA_def_struct_sdna(srna, "SpaceAction"); | RNA_def_struct_sdna(srna, "SpaceAction"); | ||||
| RNA_def_struct_ui_text(srna, "Space Dope Sheet Editor", "Dope Sheet space data"); | RNA_def_struct_ui_text(srna, "Space Dope Sheet Editor", "Dope Sheet space data"); | ||||
| rna_def_space_generic_show_region_toggles(srna, (1 << RGN_TYPE_UI)); | rna_def_space_generic_show_region_toggles(srna, (1 << RGN_TYPE_UI) | (1 << RGN_TYPE_FOOTER)); | ||||
| /* data */ | /* data */ | ||||
| prop = RNA_def_property(srna, "action", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "action", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_pointer_funcs( | RNA_def_property_pointer_funcs( | ||||
| prop, NULL, "rna_SpaceDopeSheetEditor_action_set", NULL, "rna_Action_actedit_assign_poll"); | prop, NULL, "rna_SpaceDopeSheetEditor_action_set", NULL, "rna_Action_actedit_assign_poll"); | ||||
| RNA_def_property_ui_text(prop, "Action", "Action displayed and edited in this space"); | RNA_def_property_ui_text(prop, "Action", "Action displayed and edited in this space"); | ||||
| RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE); | RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE); | ||||
| ▲ Show 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | |||||
| /*{V3D_AROUND_ACTIVE, "ACTIVE_ELEMENT", 0, "Active Element", ""}, */ | /*{V3D_AROUND_ACTIVE, "ACTIVE_ELEMENT", 0, "Active Element", ""}, */ | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| srna = RNA_def_struct(brna, "SpaceGraphEditor", "Space"); | srna = RNA_def_struct(brna, "SpaceGraphEditor", "Space"); | ||||
| RNA_def_struct_sdna(srna, "SpaceGraph"); | RNA_def_struct_sdna(srna, "SpaceGraph"); | ||||
| RNA_def_struct_ui_text(srna, "Space Graph Editor", "Graph Editor space data"); | RNA_def_struct_ui_text(srna, "Space Graph Editor", "Graph Editor space data"); | ||||
| rna_def_space_generic_show_region_toggles(srna, (1 << RGN_TYPE_UI) | (1 << RGN_TYPE_HUD)); | rna_def_space_generic_show_region_toggles(srna, (1 << RGN_TYPE_UI) | (1 << RGN_TYPE_HUD) | (1 << RGN_TYPE_FOOTER)); | ||||
| /* mode */ | /* mode */ | ||||
| prop = RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "mode"); | RNA_def_property_enum_sdna(prop, NULL, "mode"); | ||||
| RNA_def_property_enum_items(prop, rna_enum_space_graph_mode_items); | RNA_def_property_enum_items(prop, rna_enum_space_graph_mode_items); | ||||
| RNA_def_property_ui_text(prop, "Mode", "Editing context being displayed"); | RNA_def_property_ui_text(prop, "Mode", "Editing context being displayed"); | ||||
| RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE); | RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| ▲ Show 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| srna = RNA_def_struct(brna, "SpaceNLA", "Space"); | srna = RNA_def_struct(brna, "SpaceNLA", "Space"); | ||||
| RNA_def_struct_sdna(srna, "SpaceNla"); | RNA_def_struct_sdna(srna, "SpaceNla"); | ||||
| RNA_def_struct_ui_text(srna, "Space Nla Editor", "NLA editor space data"); | RNA_def_struct_ui_text(srna, "Space Nla Editor", "NLA editor space data"); | ||||
| rna_def_space_generic_show_region_toggles(srna, (1 << RGN_TYPE_UI)); | rna_def_space_generic_show_region_toggles(srna, (1 << RGN_TYPE_UI) | (1 << RGN_TYPE_FOOTER)); | ||||
| /* display */ | /* display */ | ||||
| prop = RNA_def_property(srna, "show_seconds", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_seconds", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", SNLA_DRAWTIME); | RNA_def_property_boolean_sdna(prop, NULL, "flag", SNLA_DRAWTIME); | ||||
| RNA_def_property_ui_text(prop, "Show Seconds", "Show timing in seconds not frames"); | RNA_def_property_ui_text(prop, "Show Seconds", "Show timing in seconds not frames"); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NLA, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NLA, NULL); | ||||
| prop = RNA_def_property(srna, "show_strip_curves", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_strip_curves", PROP_BOOLEAN, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 992 Lines • Show Last 20 Lines | |||||