Blender V2.61 - r43446
|
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_constraint_types.h"
#include "DNA_camera_types.h"
#include "DNA_group_types.h"
#include "DNA_key_types.h"
#include "DNA_lamp_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meta_types.h"
#include "DNA_particle_types.h"
#include "DNA_scene_types.h"
#include "DNA_world_types.h"
#include "DNA_sequence_types.h"
#include "DNA_object_types.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BLI_math_base.h"
#include <fnmatch.h>
#include "BKE_animsys.h"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_depsgraph.h"
#include "BKE_fcurve.h"
#include "BKE_global.h"
#include "BKE_group.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_modifier.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_sequencer.h"
#include "ED_armature.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "ED_util.h"
#include "WM_api.h"
#include "WM_types.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "outliner_intern.h"
Go to the source code of this file.
Definition in file outliner_select.c.
#define _GNU_SOURCE |
Definition at line 63 of file outliner_select.c.
static int do_outliner_item_activate | ( | bContext * | C, |
Scene * | scene, | ||
ARegion * | ar, | ||
SpaceOops * | soops, | ||
TreeElement * | te, | ||
int | extend, | ||
const float | mval[2] | ||
) | [static] |
Definition at line 726 of file outliner_select.c.
References BA_DESELECT, BA_SELECT, ED_base_object_select(), ED_screen_set_scene(), ELEM5, ListBase::first, TreeStoreElem::flag, TreeElement::flag, Group::gobject, TreeStoreElem::id, ID_AR, ID_CU, ID_GR, ID_LT, ID_MB, ID_ME, ID_SCE, TreeElement::idcode, NC_SCENE, ND_OB_SELECT, TreeElement::next, NULL, object_in_scene(), outliner_has_one_flag(), outliner_set_flag(), scene_deselect_all(), SELECT, TreeElement::subtree, TE_ICONROW, tree_element_active(), tree_element_set_active_object(), tree_element_type_active(), TREESTORE, TSE_CLOSED, TSE_SEQ_STRIP, TSE_SEQUENCE, TSE_SEQUENCE_DUP, TreeStoreElem::type, UI_UNIT_X, UI_UNIT_Y, WM_event_add_notifier(), WM_OP_INVOKE_REGION_WIN, WM_operator_name_call(), TreeElement::xend, TreeElement::xs, and TreeElement::ys.
Referenced by outliner_item_activate().
static int outliner_item_activate | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | event | ||
) | [static] |
Definition at line 815 of file outliner_select.c.
References CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), View2D::cur, do_outliner_item_activate(), ED_region_tag_redraw(), ED_undo_push(), ELEM3, ListBase::first, SpaceOops::flag, wmEvent::mval, TreeElement::next, NULL, OL_TOG_RESTRICT_VIEWX, OL_Y_OFFSET, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_select(), SpaceOops::outlinevis, wmOperator::ptr, RNA_boolean_get(), SO_DATABLOCKS, SO_HIDE_RESTRICTCOLS, SO_KEYMAP, SO_TREESTORE_REDRAW, SO_USERDEF, SpaceOops::storeflag, SpaceOops::tree, UI_UNIT_Y, UI_view2d_listview_view_to_cell(), UI_view2d_region_to_view(), ARegion::v2d, and rctf::xmax.
Referenced by OUTLINER_OT_item_activate().
void OUTLINER_OT_item_activate | ( | wmOperatorType * | ot | ) |
Definition at line 864 of file outliner_select.c.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, outliner_item_activate(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
static int outliner_select | ( | SpaceOops * | soops, |
ListBase * | lb, | ||
int * | index, | ||
short * | selecting | ||
) | [static] |
Definition at line 107 of file outliner_select.c.
References ListBase::first, TreeStoreElem::flag, TreeElement::flag, TreeElement::next, TreeElement::subtree, TE_ICONROW, TREESTORE, TSE_SELECTED, and TSELEM_OPEN.
Referenced by outliner_item_activate().
int tree_element_active | ( | bContext * | C, |
Scene * | scene, | ||
SpaceOops * | soops, | ||
TreeElement * | te, | ||
int | set | ||
) |
Definition at line 662 of file outliner_select.c.
References ID_CA, ID_LA, ID_MA, ID_TE, ID_TXT, ID_WO, TreeElement::idcode, tree_element_active_camera(), tree_element_active_lamp(), tree_element_active_material(), tree_element_active_text(), tree_element_active_texture(), and tree_element_active_world().
Referenced by do_outliner_item_activate(), namebutton_cb(), outliner_draw_iconrow(), and outliner_draw_tree_element().
static int tree_element_active_bone | ( | bContext * | C, |
Scene * | scene, | ||
TreeElement * | te, | ||
TreeStoreElem * | tselem, | ||
int | set | ||
) | [static] |
Definition at line 461 of file outliner_select.c.
References bArmature::act_bone, BONE_HIDDEN_P, BONE_SELECTED, Object::data, TreeElement::directdata, ED_pose_deselectall(), TreeStoreElem::id, NC_OBJECT, ND_BONE_ACTIVE, OBACT, and WM_event_add_notifier().
Referenced by tree_element_type_active().
static int tree_element_active_camera | ( | bContext * | UNUSEDC, |
Scene * | scene, | ||
SpaceOops * | soops, | ||
TreeElement * | te, | ||
int | set | ||
) | [static] |
Definition at line 353 of file outliner_select.c.
References Scene::camera, ID_OB, and outliner_search_back().
Referenced by tree_element_active().
static int tree_element_active_constraint | ( | bContext * | C, |
TreeElement * | UNUSEDte, | ||
TreeStoreElem * | tselem, | ||
int | set | ||
) | [static] |
Definition at line 566 of file outliner_select.c.
References TreeStoreElem::id, NC_OBJECT, ND_CONSTRAINT, and WM_event_add_notifier().
Referenced by tree_element_type_active().
static int tree_element_active_defgroup | ( | bContext * | C, |
Scene * | scene, | ||
TreeElement * | te, | ||
TreeStoreElem * | tselem, | ||
int | set | ||
) | [static] |
Definition at line 392 of file outliner_select.c.
References Object::actdef, BLI_assert, DAG_id_tag_update(), Object::id, TreeStoreElem::id, TreeElement::index, NC_OBJECT, ND_TRANSFORM, OB_RECALC_DATA, OBACT, and WM_event_add_notifier().
Referenced by tree_element_type_active().
static int tree_element_active_ebone | ( | bContext * | C, |
Scene * | scene, | ||
TreeElement * | te, | ||
TreeStoreElem * | UNUSEDtselem, | ||
int | set | ||
) | [static] |
Definition at line 509 of file outliner_select.c.
References BONE_HIDDEN_A, BONE_SELECTED, Object::data, TreeElement::directdata, ED_armature_deselect_all(), FALSE, EditBone::flag, Scene::obedit, tree_element_active_ebone__sel(), and TRUE.
Referenced by tree_element_type_active().
static void tree_element_active_ebone__sel | ( | bContext * | C, |
Scene * | scene, | ||
bArmature * | arm, | ||
EditBone * | ebone, | ||
short | sel | ||
) | [static] |
Definition at line 493 of file outliner_select.c.
References bArmature::act_edbone, BONE_CONNECTED, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, EditBone::flag, NC_OBJECT, ND_BONE_ACTIVE, Scene::obedit, EditBone::parent, and WM_event_add_notifier().
Referenced by tree_element_active_ebone().
static int tree_element_active_keymap_item | ( | bContext * | UNUSEDC, |
TreeElement * | te, | ||
TreeStoreElem * | UNUSEDtselem, | ||
int | set | ||
) | [static] |
Definition at line 645 of file outliner_select.c.
References TreeElement::directdata, wmKeyMapItem::flag, and KMI_INACTIVE.
Referenced by tree_element_type_active().
static int tree_element_active_lamp | ( | bContext * | UNUSEDC, |
Scene * | scene, | ||
SpaceOops * | soops, | ||
TreeElement * | te, | ||
int | set | ||
) | [static] |
Definition at line 337 of file outliner_select.c.
References ID_OB, NULL, OBACT, and outliner_search_back().
Referenced by tree_element_active().
static int tree_element_active_material | ( | bContext * | C, |
Scene * | scene, | ||
SpaceOops * | soops, | ||
TreeElement * | te, | ||
int | set | ||
) | [static] |
Definition at line 224 of file outliner_select.c.
References Object::actcol, ID_OB, TreeElement::idcode, TreeElement::index, Object::matbits, NC_MATERIAL, ND_SHADING, NULL, OBACT, outliner_search_back(), TreeElement::parent, and WM_event_add_notifier().
Referenced by tree_element_active().
static int tree_element_active_modifier | ( | bContext * | C, |
TreeElement * | UNUSEDte, | ||
TreeStoreElem * | tselem, | ||
int | set | ||
) | [static] |
Definition at line 540 of file outliner_select.c.
References TreeStoreElem::id, NC_OBJECT, ND_MODIFIER, and WM_event_add_notifier().
Referenced by tree_element_type_active().
static int tree_element_active_pose | ( | bContext * | C, |
Scene * | scene, | ||
TreeElement * | UNUSEDte, | ||
TreeStoreElem * | tselem, | ||
int | set | ||
) | [static] |
Definition at line 584 of file outliner_select.c.
References ED_armature_enter_posemode(), ED_armature_exit_posemode(), ED_object_exit_editmode(), EM_DO_UNDO, EM_FREEDATA, EM_FREEUNDO, EM_WAITCURSOR, TreeStoreElem::id, Object::mode, OB_MODE_POSE, Scene::obedit, and object_in_scene().
Referenced by tree_element_type_active().
static int tree_element_active_posechannel | ( | bContext * | C, |
Scene * | scene, | ||
TreeElement * | te, | ||
TreeStoreElem * | tselem, | ||
int | set | ||
) | [static] |
Definition at line 430 of file outliner_select.c.
References BONE_HIDDEN_P, BONE_SELECTED, Object::data, TreeElement::directdata, ED_pose_deselectall(), TreeStoreElem::id, NC_OBJECT, ND_BONE_ACTIVE, OBACT, Object::pose, and WM_event_add_notifier().
Referenced by tree_element_type_active().
static int tree_element_active_posegroup | ( | bContext * | C, |
Scene * | scene, | ||
TreeElement * | te, | ||
TreeStoreElem * | tselem, | ||
int | set | ||
) | [static] |
Definition at line 412 of file outliner_select.c.
References bPose::active_group, TreeStoreElem::id, TreeElement::index, NC_OBJECT, ND_DRAW, OBACT, Object::pose, and WM_event_add_notifier().
Referenced by tree_element_type_active().
static int tree_element_active_psys | ( | bContext * | C, |
Scene * | UNUSEDscene, | ||
TreeElement * | UNUSEDte, | ||
TreeStoreElem * | tselem, | ||
int | set | ||
) | [static] |
Definition at line 553 of file outliner_select.c.
References TreeStoreElem::id, NA_EDITED, NC_OBJECT, ND_PARTICLE, and WM_event_add_notifier().
Referenced by tree_element_type_active().
static int tree_element_active_renderlayer | ( | bContext * | C, |
TreeElement * | te, | ||
TreeStoreElem * | tselem, | ||
int | set | ||
) | [static] |
Definition at line 157 of file outliner_select.c.
References RenderData::actlay, TreeStoreElem::id, ID_SCE, TreeElement::idcode, NC_SCENE, ND_RENDER_OPTIONS, TreeStoreElem::nr, Scene::r, and WM_event_add_notifier().
Referenced by tree_element_type_active().
static int tree_element_active_sequence | ( | TreeElement * | te, |
TreeStoreElem * | UNUSEDtselem, | ||
int | set | ||
) | [static] |
Definition at line 604 of file outliner_select.c.
References TreeElement::directdata, Sequence::flag, and SELECT.
Referenced by tree_element_type_active().
static int tree_element_active_sequence_dup | ( | Scene * | scene, |
TreeElement * | te, | ||
TreeStoreElem * | UNUSEDtselem, | ||
int | set | ||
) | [static] |
Definition at line 618 of file outliner_select.c.
References TreeElement::directdata, FALSE, ListBase::first, Sequence::flag, StripElem::name, Sequence::next, p, SELECT, seq_give_editing(), Editing::seqbasep, Sequence::strip, and Strip::stripdata.
Referenced by tree_element_type_active().
static int tree_element_active_text | ( | bContext * | UNUSEDC, |
Scene * | UNUSEDscene, | ||
SpaceOops * | UNUSEDsoops, | ||
TreeElement * | UNUSEDte, | ||
int | UNUSEDset | ||
) | [static] |
Definition at line 578 of file outliner_select.c.
Referenced by tree_element_active().
static int tree_element_active_texture | ( | bContext * | C, |
Scene * | scene, | ||
SpaceOops * | soops, | ||
TreeElement * | te, | ||
int | set | ||
) | [static] |
Definition at line 263 of file outliner_select.c.
References Object::actcol, Object::data, TreeElement::flag, TreeStoreElem::id, ID_LA, ID_MA, ID_WO, TreeElement::idcode, TreeElement::index, NC_TEXTURE, NULL, OBACT, TreeElement::parent, TE_ACTIVE, World::texact, Lamp::texact, Material::texact, TREESTORE, WM_event_add_notifier(), and Scene::world.
Referenced by tree_element_active().
static int tree_element_active_world | ( | bContext * | C, |
Scene * | scene, | ||
SpaceOops * | soops, | ||
TreeElement * | te, | ||
int | set | ||
) | [static] |
Definition at line 363 of file outliner_select.c.
References ED_screen_set_scene(), TreeStoreElem::id, NULL, TreeElement::parent, and TREESTORE.
Referenced by tree_element_active().
static int tree_element_set_active_object | ( | bContext * | C, |
Scene * | scene, | ||
SpaceOops * | soops, | ||
TreeElement * | te, | ||
int | set | ||
) | [static] |
Definition at line 176 of file outliner_select.c.
References TreeStoreElem::id, ID_OB, TreeElement::idcode, NULL, OBACT, outliner_search_back(), and TREESTORE.
Referenced by do_outliner_item_activate(), and tree_element_type_active().
int tree_element_type_active | ( | bContext * | C, |
Scene * | scene, | ||
SpaceOops * | soops, | ||
TreeElement * | te, | ||
TreeStoreElem * | tselem, | ||
int | set | ||
) |
Definition at line 686 of file outliner_select.c.
References TreeStoreElem::id, OBACT, tree_element_active_bone(), tree_element_active_constraint(), tree_element_active_defgroup(), tree_element_active_ebone(), tree_element_active_keymap_item(), tree_element_active_modifier(), tree_element_active_pose(), tree_element_active_posechannel(), tree_element_active_posegroup(), tree_element_active_psys(), tree_element_active_renderlayer(), tree_element_active_sequence(), tree_element_active_sequence_dup(), tree_element_set_active_object(), TSE_BONE, TSE_CONSTRAINT, TSE_DEFGROUP, TSE_EBONE, TSE_KEYMAP_ITEM, TSE_LINKED_OB, TSE_LINKED_PSYS, TSE_MODIFIER, TSE_POSE_BASE, TSE_POSE_CHANNEL, TSE_POSEGRP, TSE_R_LAYER, TSE_SEQUENCE, TSE_SEQUENCE_DUP, and TreeStoreElem::type.
Referenced by do_outliner_item_activate(), outliner_draw_iconrow(), and outliner_draw_tree_element().