Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_wm.c
| Show First 20 Lines • Show All 2,801 Lines • ▼ Show 20 Lines | static void rna_def_keyconfig(BlenderRNA *brna) | ||||
| RNA_def_property_ui_icon(prop, ICON_DISCLOSURE_TRI_RIGHT, 1); | RNA_def_property_ui_icon(prop, ICON_DISCLOSURE_TRI_RIGHT, 1); | ||||
| prop = RNA_def_property(srna, "propvalue", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "propvalue", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "propvalue"); | RNA_def_property_enum_sdna(prop, NULL, "propvalue"); | ||||
| RNA_def_property_enum_items(prop, rna_enum_keymap_propvalue_items); | RNA_def_property_enum_items(prop, rna_enum_keymap_propvalue_items); | ||||
| RNA_def_property_enum_funcs(prop, NULL, NULL, "rna_KeyMapItem_propvalue_itemf"); | RNA_def_property_enum_funcs(prop, NULL, NULL, "rna_KeyMapItem_propvalue_itemf"); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Property Value", "The value this event translates to in a modal keymap"); | prop, "Property Value", "The value this event translates to in a modal keymap"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_WINDOWMANAGER); | |||||
| RNA_def_property_update(prop, 0, "rna_KeyMapItem_update"); | RNA_def_property_update(prop, 0, "rna_KeyMapItem_update"); | ||||
| prop = RNA_def_property(srna, "active", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "active", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", KMI_INACTIVE); | RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", KMI_INACTIVE); | ||||
| RNA_def_property_ui_text(prop, "Active", "Activate or deactivate item"); | RNA_def_property_ui_text(prop, "Active", "Activate or deactivate item"); | ||||
| RNA_def_property_ui_icon(prop, ICON_CHECKBOX_DEHLT, 1); | RNA_def_property_ui_icon(prop, ICON_CHECKBOX_DEHLT, 1); | ||||
| RNA_def_property_update(prop, 0, "rna_KeyMapItem_update"); | RNA_def_property_update(prop, 0, "rna_KeyMapItem_update"); | ||||
| Show All 36 Lines | |||||