Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_ui_api.c
| Show First 20 Lines • Show All 643 Lines • ▼ Show 20 Lines | #endif | ||||
| /* templates */ | /* templates */ | ||||
| func = RNA_def_function(srna, "template_header", "uiTemplateHeader"); | func = RNA_def_function(srna, "template_header", "uiTemplateHeader"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_CONTEXT); | ||||
| RNA_def_function_ui_description(func, "Inserts common Space header UI (editor type selector)"); | RNA_def_function_ui_description(func, "Inserts common Space header UI (editor type selector)"); | ||||
| func = RNA_def_function(srna, "template_ID", "uiTemplateID"); | func = RNA_def_function(srna, "template_ID", "uiTemplateID"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_CONTEXT); | ||||
| api_ui_item_rna_common(func); | api_ui_item_rna_common(func); | ||||
| parm = RNA_def_pointer(func, "search_data", "AnyType", "", "Data from which to take collection to search in, " | |||||
| "uses main ID collection if not set"); | |||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_RNAPTR); | |||||
| parm = RNA_def_string(func, "search_property", NULL, 0, "", "Identifier of search collection property, " | |||||
| "uses main ID collection if not set"); | |||||
| RNA_def_string(func, "new", NULL, 0, "", "Operator identifier to create a new ID block"); | RNA_def_string(func, "new", NULL, 0, "", "Operator identifier to create a new ID block"); | ||||
| RNA_def_string(func, "open", NULL, 0, "", "Operator identifier to open a file for creating a new ID block"); | RNA_def_string(func, "open", NULL, 0, "", "Operator identifier to open a file for creating a new ID block"); | ||||
| RNA_def_string(func, "unlink", NULL, 0, "", "Operator identifier to unlink the ID block"); | RNA_def_string(func, "unlink", NULL, 0, "", "Operator identifier to unlink the ID block"); | ||||
| func = RNA_def_function(srna, "template_ID_preview", "uiTemplateIDPreview"); | func = RNA_def_function(srna, "template_ID_preview", "uiTemplateIDPreview"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_CONTEXT); | ||||
| api_ui_item_rna_common(func); | api_ui_item_rna_common(func); | ||||
| parm = RNA_def_pointer(func, "search_data", "AnyType", "", "Data from which to take collection to search in, " | |||||
| "uses main ID collection if not set"); | |||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_RNAPTR); | |||||
| parm = RNA_def_string(func, "search_property", NULL, 0, "", "Identifier of search collection property, " | |||||
| "uses main ID collection if not set"); | |||||
| RNA_def_string(func, "new", NULL, 0, "", "Operator identifier to create a new ID block"); | RNA_def_string(func, "new", NULL, 0, "", "Operator identifier to create a new ID block"); | ||||
| RNA_def_string(func, "open", NULL, 0, "", "Operator identifier to open a file for creating a new ID block"); | RNA_def_string(func, "open", NULL, 0, "", "Operator identifier to open a file for creating a new ID block"); | ||||
| RNA_def_string(func, "unlink", NULL, 0, "", "Operator identifier to unlink the ID block"); | RNA_def_string(func, "unlink", NULL, 0, "", "Operator identifier to unlink the ID block"); | ||||
| RNA_def_int(func, "rows", 0, 0, INT_MAX, "Number of thumbnail preview rows to display", "", 0, INT_MAX); | RNA_def_int(func, "rows", 0, 0, INT_MAX, "Number of thumbnail preview rows to display", "", 0, INT_MAX); | ||||
| RNA_def_int(func, "cols", 0, 0, INT_MAX, "Number of thumbnail preview columns to display", "", 0, INT_MAX); | RNA_def_int(func, "cols", 0, 0, INT_MAX, "Number of thumbnail preview columns to display", "", 0, INT_MAX); | ||||
| func = RNA_def_function(srna, "template_any_ID", "rna_uiTemplateAnyID"); | func = RNA_def_function(srna, "template_any_ID", "rna_uiTemplateAnyID"); | ||||
| parm = RNA_def_pointer(func, "data", "AnyType", "", "Data from which to take property"); | parm = RNA_def_pointer(func, "data", "AnyType", "", "Data from which to take property"); | ||||
| ▲ Show 20 Lines • Show All 260 Lines • Show Last 20 Lines | |||||