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,081 Lines • ▼ Show 20 Lines | static void rna_def_space_view3d_shading(BlenderRNA *brna) | ||||
| RNA_def_property_array(prop, 3); | RNA_def_property_array(prop, 3); | ||||
| RNA_def_property_ui_text(prop, "Color", "Color for single color mode"); | RNA_def_property_ui_text(prop, "Color", "Color for single color mode"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING, NULL); | ||||
| prop = RNA_def_property(srna, "background_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "background_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, background_type_items); | RNA_def_property_enum_items(prop, background_type_items); | ||||
| RNA_def_property_ui_text(prop, "Background", "Way to display the background"); | RNA_def_property_ui_text(prop, "Background", "Way to display the background"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_EDITOR_VIEW3D); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING, NULL); | ||||
| prop = RNA_def_property(srna, "background_color", PROP_FLOAT, PROP_COLOR); | prop = RNA_def_property(srna, "background_color", PROP_FLOAT, PROP_COLOR); | ||||
| RNA_def_property_array(prop, 3); | RNA_def_property_array(prop, 3); | ||||
| RNA_def_property_ui_text(prop, "Background Color", "Color for custom background color"); | RNA_def_property_ui_text(prop, "Background Color", "Color for custom background color"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING, NULL); | ||||
| ▲ Show 20 Lines • Show All 1,162 Lines • ▼ Show 20 Lines | static void rna_def_space_properties(BlenderRNA *brna) | ||||
| 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); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "mainb"); | RNA_def_property_enum_sdna(prop, NULL, "mainb"); | ||||
| RNA_def_property_enum_items(prop, buttons_context_items); | RNA_def_property_enum_items(prop, buttons_context_items); | ||||
| RNA_def_property_enum_funcs( | RNA_def_property_enum_funcs( | ||||
| prop, NULL, "rna_SpaceProperties_context_set", "rna_SpaceProperties_context_itemf"); | prop, NULL, "rna_SpaceProperties_context_set", "rna_SpaceProperties_context_itemf"); | ||||
| RNA_def_property_ui_text(prop, "", ""); | RNA_def_property_ui_text(prop, "", ""); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ID); | |||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SPACE | ND_SPACE_PROPERTIES, "rna_SpaceProperties_context_update"); | prop, NC_SPACE | ND_SPACE_PROPERTIES, "rna_SpaceProperties_context_update"); | ||||
| /* pinned data */ | /* pinned data */ | ||||
| prop = RNA_def_property(srna, "pin_id", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "pin_id", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "pinid"); | RNA_def_property_pointer_sdna(prop, NULL, "pinid"); | ||||
| RNA_def_property_struct_type(prop, "ID"); | RNA_def_property_struct_type(prop, "ID"); | ||||
| /* NOTE: custom set function is ONLY to avoid rna setting a user for this. */ | /* NOTE: custom set function is ONLY to avoid rna setting a user for this. */ | ||||
| ▲ Show 20 Lines • Show All 1,281 Lines • ▼ Show 20 Lines | RNA_def_property_enum_funcs(prop, | ||||
| "rna_FileBrowser_FileSelectEntry_id_type_get", | "rna_FileBrowser_FileSelectEntry_id_type_get", | ||||
| NULL, | NULL, | ||||
| "rna_FileBrowser_FileSelectEntry_id_type_itemf"); | "rna_FileBrowser_FileSelectEntry_id_type_itemf"); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Data-block Type", | "Data-block Type", | ||||
| "The type of the data-block, if the file represents one ('NONE' otherwise)"); | "The type of the data-block, if the file represents one ('NONE' otherwise)"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ID); | |||||
| prop = RNA_def_property(srna, "local_id", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "local_id", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "ID"); | RNA_def_property_struct_type(prop, "ID"); | ||||
| RNA_def_property_pointer_funcs( | RNA_def_property_pointer_funcs( | ||||
| prop, "rna_FileBrowser_FileSelectEntry_local_id_get", NULL, NULL, NULL); | prop, "rna_FileBrowser_FileSelectEntry_local_id_get", NULL, NULL, NULL); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "", | "", | ||||
| "The local data-block this file represents; only valid if that is a " | "The local data-block this file represents; only valid if that is a " | ||||
| ▲ Show 20 Lines • Show All 736 Lines • ▼ Show 20 Lines | RNA_def_property_enum_funcs(prop, | ||||
| "rna_SpaceNodeEditor_tree_type_itemf"); | "rna_SpaceNodeEditor_tree_type_itemf"); | ||||
| RNA_def_property_ui_text(prop, "Tree Type", "Node tree type to display and edit"); | RNA_def_property_ui_text(prop, "Tree Type", "Node tree type to display and edit"); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE, NULL); | ||||
| prop = RNA_def_property(srna, "texture_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "texture_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "texfrom"); | RNA_def_property_enum_sdna(prop, NULL, "texfrom"); | ||||
| RNA_def_property_enum_items(prop, texture_id_type_items); | RNA_def_property_enum_items(prop, texture_id_type_items); | ||||
| RNA_def_property_ui_text(prop, "Texture Type", "Type of data to take texture from"); | RNA_def_property_ui_text(prop, "Texture Type", "Type of data to take texture from"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ID); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE, NULL); | ||||
| prop = RNA_def_property(srna, "shader_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "shader_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "shaderfrom"); | RNA_def_property_enum_sdna(prop, NULL, "shaderfrom"); | ||||
| RNA_def_property_enum_items(prop, shader_type_items); | RNA_def_property_enum_items(prop, shader_type_items); | ||||
| RNA_def_property_ui_text(prop, "Shader Type", "Type of data to take shader from"); | RNA_def_property_ui_text(prop, "Shader Type", "Type of data to take shader from"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ID); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE, NULL); | ||||
| prop = RNA_def_property(srna, "id", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "id", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "ID", "Data-block whose nodes are being edited"); | RNA_def_property_ui_text(prop, "ID", "Data-block whose nodes are being edited"); | ||||
| prop = RNA_def_property(srna, "id_from", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "id_from", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "from"); | RNA_def_property_pointer_sdna(prop, NULL, "from"); | ||||
| ▲ Show 20 Lines • Show All 734 Lines • Show Last 20 Lines | |||||