Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_text.c
| Show First 20 Lines • Show All 225 Lines • ▼ Show 20 Lines | static void rna_def_text(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "use_module", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_module", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flags", TXT_ISSCRIPT); | RNA_def_property_boolean_sdna(prop, NULL, "flags", TXT_ISSCRIPT); | ||||
| RNA_def_property_ui_text(prop, "Register", "Run this text as a Python script on loading"); | RNA_def_property_ui_text(prop, "Register", "Run this text as a Python script on loading"); | ||||
| prop = RNA_def_property(srna, "indentation", PROP_ENUM, PROP_NONE); /* as an enum */ | prop = RNA_def_property(srna, "indentation", PROP_ENUM, PROP_NONE); /* as an enum */ | ||||
| RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); | RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); | ||||
| RNA_def_property_enum_items(prop, indentation_items); | RNA_def_property_enum_items(prop, indentation_items); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_TEXT); | |||||
| RNA_def_property_ui_text(prop, "Indentation", "Use tabs or spaces for indentation"); | RNA_def_property_ui_text(prop, "Indentation", "Use tabs or spaces for indentation"); | ||||
| prop = RNA_def_property(srna, "lines", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "lines", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "TextLine"); | RNA_def_property_struct_type(prop, "TextLine"); | ||||
| RNA_def_property_ui_text(prop, "Lines", "Lines of text"); | RNA_def_property_ui_text(prop, "Lines", "Lines of text"); | ||||
| prop = RNA_def_property(srna, "current_line", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "current_line", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_NEVER_NULL); | RNA_def_property_flag(prop, PROP_NEVER_NULL); | ||||
| ▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines | |||||