Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_wm.c
| Show First 20 Lines • Show All 2,248 Lines • ▼ Show 20 Lines | static void rna_def_keyconfig(BlenderRNA *brna) | ||||
| RNA_def_struct_ui_text(srna, "Key Map", "Input configuration, including keymaps"); | RNA_def_struct_ui_text(srna, "Key Map", "Input configuration, including keymaps"); | ||||
| prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "idname"); | RNA_def_property_string_sdna(prop, NULL, "idname"); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Name", "Name of the key map"); | RNA_def_property_ui_text(prop, "Name", "Name of the key map"); | ||||
| RNA_def_struct_name_property(srna, prop); | RNA_def_struct_name_property(srna, prop); | ||||
| prop = RNA_def_property(srna, "ui_tag", PROP_STRING, PROP_NONE); | |||||
| RNA_def_property_ui_text(prop, "UI Tag", ""); | |||||
| prop = RNA_def_property(srna, "space_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "space_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "spaceid"); | RNA_def_property_enum_sdna(prop, NULL, "spaceid"); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_enum_items(prop, rna_enum_space_type_items); | RNA_def_property_enum_items(prop, rna_enum_space_type_items); | ||||
| RNA_def_property_ui_text(prop, "Space Type", "Optional space type keymap is associated with"); | RNA_def_property_ui_text(prop, "Space Type", "Optional space type keymap is associated with"); | ||||
| prop = RNA_def_property(srna, "region_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "region_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "regionid"); | RNA_def_property_enum_sdna(prop, NULL, "regionid"); | ||||
| ▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines | |||||