|
Blender
V2.59
|
#include <stdio.h>#include "DNA_node_types.h"#include "DNA_scene_types.h"#include "BKE_context.h"#include "BLI_rect.h"#include "BLI_utildefines.h"#include "ED_screen.h"#include "ED_types.h"#include "RNA_access.h"#include "RNA_define.h"#include "WM_api.h"#include "WM_types.h"#include "UI_view2d.h"#include "node_intern.h"Go to the source code of this file.
Definition in file node_select.c.
| static int node_border_select_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 187 of file node_select.c.
References CTX_wm_region(), CTX_wm_space_node(), SpaceNode::edittree, wmEvent::mval, node_under_mouse(), OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_boolean_get(), UI_view2d_region_to_view(), ARegion::v2d, and WM_border_select_invoke().
Referenced by NODE_OT_select_border().
| static int node_borderselect_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 156 of file node_select.c.
References BLI_isect_rctf(), CTX_wm_region(), CTX_wm_space_node(), SpaceNode::edittree, ListBase::first, bNode::flag, GESTURE_MODAL_SELECT, NA_SELECTED, NC_NODE, bNode::next, bNodeTree::nodes, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), SELECT, bNode::totr, UI_view2d_region_to_view(), ARegion::v2d, WM_event_add_notifier(), rcti::xmax, rctf::xmax, rcti::xmin, rctf::xmin, rcti::ymax, rctf::ymax, rcti::ymin, and rctf::ymin.
Referenced by NODE_OT_select_border().
| static bNode* node_mouse_select | ( | SpaceNode * | snode, |
| ARegion * | ar, | ||
| const int | mval[2], | ||
| short | extend | ||
| ) | [static] |
Definition at line 73 of file node_select.c.
References SpaceNode::edittree, bNode::flag, node_deselectall(), node_set_active(), node_under_mouse(), SELECT, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by node_select_exec().
| void NODE_OT_select | ( | wmOperatorType * | ot | ) |
Definition at line 134 of file node_select.c.
References wmOperatorType::description, ED_operator_node_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, node_select_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), RNA_def_int(), and wmOperatorType::srna.
Referenced by node_operatortypes().
| void NODE_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 256 of file node_select.c.
References wmOperatorType::description, ED_operator_node_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, node_select_all_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by node_operatortypes().
| void NODE_OT_select_border | ( | wmOperatorType * | ot | ) |
Definition at line 207 of file node_select.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_node_active(), wmOperatorType::exec, FALSE, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, node_border_select_invoke(), node_borderselect_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, WM_border_select_cancel(), WM_border_select_modal(), and WM_operator_properties_gesture_border().
Referenced by node_operatortypes().
| void NODE_OT_select_linked_from | ( | wmOperatorType * | ot | ) |
Definition at line 336 of file node_select.c.
References wmOperatorType::description, ED_operator_node_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, node_select_linked_from_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by node_operatortypes().
| void NODE_OT_select_linked_to | ( | wmOperatorType * | ot | ) |
Definition at line 296 of file node_select.c.
References wmOperatorType::description, ED_operator_node_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, node_select_linked_to_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by node_operatortypes().
| void NODE_OT_select_same_type | ( | wmOperatorType * | ot | ) |
Definition at line 362 of file node_select.c.
References wmOperatorType::description, ED_operator_node_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, node_select_same_type_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by node_operatortypes().
| void NODE_OT_select_same_type_next | ( | wmOperatorType * | ot | ) |
Definition at line 388 of file node_select.c.
References wmOperatorType::description, ED_operator_node_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, node_select_same_type_next_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by node_operatortypes().
| void NODE_OT_select_same_type_prev | ( | wmOperatorType * | ot | ) |
Definition at line 412 of file node_select.c.
References wmOperatorType::description, ED_operator_node_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, node_select_same_type_prev_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by node_operatortypes().
| static int node_select_all_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 232 of file node_select.c.
References CTX_wm_space_node(), SpaceNode::edittree, ListBase::first, bNode::flag, NA_SELECTED, NC_NODE, bNode::next, NODE_SELECT, bNodeTree::nodes, NULL, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by NODE_OT_select_all().
| static int node_select_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 101 of file node_select.c.
References CTX_wm_region(), CTX_wm_space_node(), NA_SELECTED, NC_NODE, node_mouse_select(), NULL, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_boolean_get(), RNA_int_get(), and WM_event_add_notifier().
Referenced by node_select_invoke().
| static int node_select_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 125 of file node_select.c.
References wmEvent::mval, node_select_exec(), wmOperator::ptr, and RNA_int_set().
Referenced by NODE_OT_select().
| static int node_select_linked_from_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 313 of file node_select.c.
References CTX_wm_space_node(), SpaceNode::edittree, ListBase::first, bNode::flag, bNodeLink::fromnode, link(), bNodeTree::links, NA_SELECTED, NC_NODE, bNode::next, bNodeLink::next, NODE_SELECT, NODE_TEST, bNodeTree::nodes, NULL, OPERATOR_FINISHED, bNodeLink::tonode, and WM_event_add_notifier().
Referenced by NODE_OT_select_linked_from().
| static int node_select_linked_to_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 273 of file node_select.c.
References CTX_wm_space_node(), SpaceNode::edittree, ListBase::first, bNode::flag, bNodeLink::fromnode, link(), bNodeTree::links, NA_SELECTED, NC_NODE, bNode::next, bNodeLink::next, NODE_SELECT, NODE_TEST, bNodeTree::nodes, NULL, OPERATOR_FINISHED, bNodeLink::tonode, and WM_event_add_notifier().
Referenced by NODE_OT_select_linked_to().
| static int node_select_same_type_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 353 of file node_select.c.
References CTX_wm_space_node(), NA_SELECTED, NC_NODE, node_select_same_type(), NULL, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by NODE_OT_select_same_type().
| static int node_select_same_type_next_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 379 of file node_select.c.
References CTX_wm_space_node(), NA_SELECTED, NC_NODE, node_select_same_type_np(), NULL, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by NODE_OT_select_same_type_next().
| static int node_select_same_type_prev_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 403 of file node_select.c.
References CTX_wm_space_node(), NA_SELECTED, NC_NODE, node_select_same_type_np(), NULL, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by NODE_OT_select_same_type_prev().
Definition at line 59 of file node_select.c.
References BLI_in_rctf(), next_node(), NULL, and bNode::totr.
Referenced by node_border_select_invoke(), and node_mouse_select().