Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_handlers.c
| Context not available. | |||||
| BLI_snprintf(buf, sizeof(buf), "%s.%s", | BLI_snprintf(buf, sizeof(buf), "%s.%s", | ||||
| RNA_struct_identifier(but->rnapoin.type), RNA_property_identifier(but->rnaprop)); | RNA_struct_identifier(but->rnapoin.type), RNA_property_identifier(but->rnaprop)); | ||||
| WM_operator_properties_create(&ptr_props, "WM_OT_doc_view_manual"); | uiItemO(layout, CTX_IFACE_(BLF_I18NCONTEXT_OPERATOR_DEFAULT, "Online Manual"), | ||||
| RNA_string_set(&ptr_props, "doc_id", buf); | ICON_NONE, "WM_OT_doc_view_manual_active_but"); | ||||
| uiItemFullO(layout, "WM_OT_doc_view_manual", CTX_IFACE_(BLF_I18NCONTEXT_OPERATOR_DEFAULT, "Online Manual"), | |||||
| ICON_NONE, ptr_props.data, WM_OP_EXEC_DEFAULT, 0); | |||||
| WM_operator_properties_create(&ptr_props, "WM_OT_doc_view"); | WM_operator_properties_create(&ptr_props, "WM_OT_doc_view"); | ||||
| RNA_string_set(&ptr_props, "doc_id", buf); | RNA_string_set(&ptr_props, "doc_id", buf); | ||||
| Context not available. | |||||
| else if (but->optype) { | else if (but->optype) { | ||||
| WM_operator_py_idname(buf, but->optype->idname); | WM_operator_py_idname(buf, but->optype->idname); | ||||
| uiItemO(layout, CTX_IFACE_(BLF_I18NCONTEXT_OPERATOR_DEFAULT, "Online Manual"), | |||||
| WM_operator_properties_create(&ptr_props, "WM_OT_doc_view_manual"); | ICON_NONE, "WM_OT_doc_view_manual_active_but"); | ||||
| RNA_string_set(&ptr_props, "doc_id", buf); | |||||
| uiItemFullO(layout, "WM_OT_doc_view_manual", CTX_IFACE_(BLF_I18NCONTEXT_OPERATOR_DEFAULT, "Online Manual"), | |||||
| ICON_NONE, ptr_props.data, WM_OP_EXEC_DEFAULT, 0); | |||||
| WM_operator_properties_create(&ptr_props, "WM_OT_doc_view"); | WM_operator_properties_create(&ptr_props, "WM_OT_doc_view"); | ||||
| RNA_string_set(&ptr_props, "doc_id", buf); | RNA_string_set(&ptr_props, "doc_id", buf); | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| wmOperatorType *UI_context_active_but_ot_get(const bContext *C) | |||||
| { | |||||
| uiBut *activebut = UI_context_active_but_get(C); | |||||
| return activebut->optype; | |||||
| } | |||||
| wmOperator *UI_context_active_operator_get(const struct bContext *C) | wmOperator *UI_context_active_operator_get(const struct bContext *C) | ||||
| { | { | ||||
| ARegion *ar_ctx = CTX_wm_region(C); | ARegion *ar_ctx = CTX_wm_region(C); | ||||
| Context not available. | |||||