![]() |
Blender V2.61 - r43446
|
#include <string.h>#include <stdio.h>#include <math.h>#include <float.h>#include "MEM_guardedalloc.h"#include "DNA_node_types.h"#include "DNA_scene_types.h"#include "BLI_math.h"#include "BLI_blenlib.h"#include "BLI_rand.h"#include "BLI_utildefines.h"#include "BKE_context.h"#include "BKE_global.h"#include "BKE_node.h"#include "BKE_screen.h"#include "WM_api.h"#include "WM_types.h"#include "RNA_access.h"#include "ED_gpencil.h"#include "ED_screen.h"#include "UI_interface.h"#include "UI_resources.h"#include "node_intern.h"Go to the source code of this file.
Defines | |
| #define | B_NOP 1 |
| #define | B_REDR 2 |
Functions | |
| static void | do_node_region_buttons (bContext *C, void *UNUSED(arg), int event) |
| static int | active_node_poll (const bContext *C, PanelType *UNUSED(pt)) |
| static void | active_node_panel (const bContext *C, Panel *pa) |
| static int | node_sockets_poll (const bContext *C, PanelType *UNUSED(pt)) |
| static void | node_sockets_panel (const bContext *C, Panel *pa) |
| void | node_buttons_register (ARegionType *art) |
| static int | node_properties (bContext *C, wmOperator *UNUSED(op)) |
| static int | node_properties_poll (bContext *C) |
| void | NODE_OT_properties (wmOperatorType *ot) |
Definition in file node_buttons.c.
| #define B_NOP 1 |
Definition at line 67 of file node_buttons.c.
| #define B_REDR 2 |
Definition at line 68 of file node_buttons.c.
Definition at line 91 of file node_buttons.c.
References CTX_wm_space_node(), do_node_region_buttons(), SpaceNode::edittree, ELEM, bNodeTree::id, Panel::layout, nodeGetActive(), NULL, RNA_Node, RNA_pointer_create(), uiBlockSetHandleFunc(), uiItemO(), uiItemR(), uiItemS(), and uiLayoutGetBlock().
Referenced by node_buttons_register().
Definition at line 82 of file node_buttons.c.
References CTX_wm_space_node(), and SpaceNode::nodetree.
Referenced by node_buttons_register().
| static void do_node_region_buttons | ( | bContext * | C, |
| void * | UNUSEDarg, | ||
| int | event | ||
| ) | [static] |
Definition at line 70 of file node_buttons.c.
References B_REDR, CTX_wm_area(), and ED_area_tag_redraw().
Referenced by active_node_panel().
| void node_buttons_register | ( | ARegionType * | art | ) |
Definition at line 159 of file node_buttons.c.
References active_node_panel(), active_node_poll(), BLI_addtail(), PanelType::draw, PanelType::flag, gpencil_panel_standard(), PanelType::idname, PanelType::label, MEM_callocN(), node_sockets_panel(), node_sockets_poll(), ARegionType::paneltypes, PNL_DEFAULT_CLOSED, and PanelType::poll.
Referenced by ED_spacetype_node().
| void NODE_OT_properties | ( | wmOperatorType * | ot | ) |
Definition at line 203 of file node_buttons.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, node_properties(), node_properties_poll(), and wmOperatorType::poll.
Referenced by node_operatortypes().
| static int node_properties | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 185 of file node_buttons.c.
References CTX_wm_area(), ED_region_toggle_hidden(), node_has_buttons_region(), and OPERATOR_FINISHED.
Referenced by NODE_OT_properties().
| static int node_properties_poll | ( | bContext * | C | ) | [static] |
Definition at line 197 of file node_buttons.c.
References CTX_wm_area(), SPACE_NODE, and ScrArea::spacetype.
Referenced by NODE_OT_properties().
Definition at line 136 of file node_buttons.c.
References BLI_snprintf(), CTX_wm_space_node(), SpaceNode::edittree, ELEM, Panel::layout, bNodeSocket::name, bNodeSocket::next, nodeGetActive(), NULL, split(), UI_MAX_NAME_STR, uiItemL(), uiLayoutSplit(), and uiTemplateNodeLink().
Referenced by node_buttons_register().
Definition at line 129 of file node_buttons.c.
References CTX_wm_space_node(), G, and SpaceNode::nodetree.
Referenced by node_buttons_register().