Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 4,781 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static void rna_def_space_properties(BlenderRNA *brna) | static void rna_def_space_properties(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem tab_sync_items[] = { | static const EnumPropertyItem tab_sync_items[] = { | ||||
| {PROPERTIES_SYNC_ON, "ON", 0, "On", "Always sync from outliner editors to this editor"}, | {PROPERTIES_SYNC_ALWAYS, | ||||
| {PROPERTIES_SYNC_OFF, "OFF", 0, "Off", "Never sync from outliner editors to this editor"}, | "ALWAYS", | ||||
| 0, | |||||
| "Always", | |||||
| "Always change tabs when clicking an icon in an outliner"}, | |||||
| {PROPERTIES_SYNC_NEVER, | |||||
| "NEVER", | |||||
| 0, | |||||
| "Never", | |||||
| "Never change tabs when clicking an icon in an outliner"}, | |||||
| {PROPERTIES_SYNC_AUTO, | {PROPERTIES_SYNC_AUTO, | ||||
| "AUTO", | "AUTO", | ||||
| 0, | 0, | ||||
| "Auto", | "Auto", | ||||
| "Sync when this editor shares an edge with an outliner editor"}, | "Change tabs only when this editor shares a border the outliner"}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| srna = RNA_def_struct(brna, "SpaceProperties", "Space"); | srna = RNA_def_struct(brna, "SpaceProperties", "Space"); | ||||
| RNA_def_struct_sdna(srna, "SpaceProperties"); | RNA_def_struct_sdna(srna, "SpaceProperties"); | ||||
| RNA_def_struct_ui_text(srna, "Properties Space", "Properties space data"); | RNA_def_struct_ui_text(srna, "Properties Space", "Properties space data"); | ||||
| prop = RNA_def_property(srna, "context", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "context", PROP_ENUM, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | static void rna_def_space_properties(BlenderRNA *brna) | ||||
| RNA_def_property_flag(prop, PROP_TEXTEDIT_UPDATE); | RNA_def_property_flag(prop, PROP_TEXTEDIT_UPDATE); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SPACE | ND_SPACE_PROPERTIES, "rna_SpaceProperties_search_filter_update"); | prop, NC_SPACE | ND_SPACE_PROPERTIES, "rna_SpaceProperties_search_filter_update"); | ||||
| /* Outliner sync. */ | /* Outliner sync. */ | ||||
| prop = RNA_def_property(srna, "outliner_sync", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "outliner_sync", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "outliner_sync"); | RNA_def_property_enum_sdna(prop, NULL, "outliner_sync"); | ||||
| RNA_def_property_enum_items(prop, tab_sync_items); | RNA_def_property_enum_items(prop, tab_sync_items); | ||||
| RNA_def_property_ui_text(prop, "Outliner Sync", "Sync tabs from outliner datablock selection"); | RNA_def_property_ui_text(prop, | ||||
| "Outliner Sync", | |||||
| "Change to the corresponding tab when outliner data icons are clicked"); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_PROPERTIES, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_PROPERTIES, NULL); | ||||
| } | } | ||||
| static void rna_def_space_image_overlay(BlenderRNA *brna) | static void rna_def_space_image_overlay(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| ▲ Show 20 Lines • Show All 2,306 Lines • Show Last 20 Lines | |||||