Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_buttons.c
| Show First 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | |||||
| /* ******************* node buttons registration ************** */ | /* ******************* node buttons registration ************** */ | ||||
| void node_buttons_register(ARegionType *art) | void node_buttons_register(ARegionType *art) | ||||
| { | { | ||||
| PanelType *pt; | PanelType *pt; | ||||
| pt = MEM_callocN(sizeof(PanelType), "spacetype node panel node sockets"); | pt = MEM_callocN(sizeof(PanelType), "spacetype node panel node sockets"); | ||||
| strcpy(pt->idname, "NODE_PT_sockets"); | strcpy(pt->idname, "NODE_PT_sockets"); | ||||
| strcpy(pt->category, N_("Node")); | |||||
| strcpy(pt->label, N_("Sockets")); | strcpy(pt->label, N_("Sockets")); | ||||
| strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA); | strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA); | ||||
| pt->draw = node_sockets_panel; | pt->draw = node_sockets_panel; | ||||
| pt->poll = node_sockets_poll; | pt->poll = node_sockets_poll; | ||||
| pt->flag |= PNL_DEFAULT_CLOSED; | pt->flag |= PNL_DEFAULT_CLOSED; | ||||
| BLI_addtail(&art->paneltypes, pt); | BLI_addtail(&art->paneltypes, pt); | ||||
| pt = MEM_callocN(sizeof(PanelType), "spacetype node panel tree interface"); | pt = MEM_callocN(sizeof(PanelType), "spacetype node panel tree interface"); | ||||
| strcpy(pt->idname, "NODE_PT_node_tree_interface"); | strcpy(pt->idname, "NODE_PT_node_tree_interface"); | ||||
| strcpy(pt->category, N_("Node")); | |||||
| strcpy(pt->label, N_("Interface")); | strcpy(pt->label, N_("Interface")); | ||||
| strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA); | strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA); | ||||
| pt->draw = node_tree_interface_panel; | pt->draw = node_tree_interface_panel; | ||||
| pt->poll = node_tree_interface_poll; | pt->poll = node_tree_interface_poll; | ||||
| BLI_addtail(&art->paneltypes, pt); | BLI_addtail(&art->paneltypes, pt); | ||||
| } | } | ||||
| static int node_properties_toggle_exec(bContext *C, wmOperator *UNUSED(op)) | static int node_properties_toggle_exec(bContext *C, wmOperator *UNUSED(op)) | ||||
| Show All 29 Lines | |||||