Blender V2.61 - r43446
Defines | Enumerations | Functions

outliner_edit.c File Reference

#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 "RNA_enum_types.h"
#include "ED_keyframing.h"
#include "outliner_intern.h"

Go to the source code of this file.

Defines

#define _GNU_SOURCE

Enumerations

enum  { DRIVERS_EDITMODE_ADD = 0, DRIVERS_EDITMODE_REMOVE }
enum  { KEYINGSET_EDITMODE_ADD = 0, KEYINGSET_EDITMODE_REMOVE }

Functions

static int do_outliner_item_openclose (bContext *C, SpaceOops *soops, TreeElement *te, int all, const float mval[2])
static int outliner_item_openclose (bContext *C, wmOperator *op, wmEvent *event)
void OUTLINER_OT_item_openclose (wmOperatorType *ot)
static void do_item_rename (ARegion *ar, TreeElement *te, TreeStoreElem *tselem, ReportList *reports)
void item_rename_cb (bContext *C, Scene *UNUSED(scene), TreeElement *te, TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem)
static int do_outliner_item_rename (bContext *C, ARegion *ar, SpaceOops *soops, TreeElement *te, const float mval[2])
static int outliner_item_rename (bContext *C, wmOperator *UNUSED(op), wmEvent *event)
void OUTLINER_OT_item_rename (wmOperatorType *ot)
static int outliner_count_levels (SpaceOops *soops, ListBase *lb, int curlevel)
int outliner_has_one_flag (SpaceOops *soops, ListBase *lb, short flag, short curlevel)
void outliner_set_flag (SpaceOops *soops, ListBase *lb, short flag, short set)
int common_restrict_check (bContext *C, Object *ob)
void object_toggle_visibility_cb (bContext *C, Scene *scene, TreeElement *te, TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem)
void group_toggle_visibility_cb (bContext *UNUSED(C), Scene *scene, TreeElement *UNUSED(te), TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem)
static int outliner_toggle_visibility_exec (bContext *C, wmOperator *UNUSED(op))
void OUTLINER_OT_visibility_toggle (wmOperatorType *ot)
void object_toggle_selectability_cb (bContext *UNUSED(C), Scene *scene, TreeElement *te, TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem)
void group_toggle_selectability_cb (bContext *UNUSED(C), Scene *scene, TreeElement *UNUSED(te), TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem)
static int outliner_toggle_selectability_exec (bContext *C, wmOperator *UNUSED(op))
void OUTLINER_OT_selectability_toggle (wmOperatorType *ot)
void object_toggle_renderability_cb (bContext *UNUSED(C), Scene *scene, TreeElement *te, TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem)
void group_toggle_renderability_cb (bContext *UNUSED(C), Scene *scene, TreeElement *UNUSED(te), TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem)
static int outliner_toggle_renderability_exec (bContext *C, wmOperator *UNUSED(op))
void OUTLINER_OT_renderability_toggle (wmOperatorType *ot)
static int outliner_toggle_expanded_exec (bContext *C, wmOperator *UNUSED(op))
void OUTLINER_OT_expanded_toggle (wmOperatorType *ot)
static int outliner_toggle_selected_exec (bContext *C, wmOperator *UNUSED(op))
void OUTLINER_OT_selected_toggle (wmOperatorType *ot)
static int outliner_show_active_exec (bContext *C, wmOperator *UNUSED(op))
void OUTLINER_OT_show_active (wmOperatorType *ot)
static int outliner_scroll_page_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_scroll_page (wmOperatorType *ot)
static void outliner_openclose_level (SpaceOops *soops, ListBase *lb, int curlevel, int level, int open)
static int outliner_one_level_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_show_one_level (wmOperatorType *ot)
static int subtree_has_objects (SpaceOops *soops, ListBase *lb)
static void tree_element_show_hierarchy (Scene *scene, SpaceOops *soops, ListBase *lb)
static int outliner_show_hierarchy_exec (bContext *C, wmOperator *UNUSED(op))
void OUTLINER_OT_show_hierarchy (wmOperatorType *ot)
static int ed_operator_outliner_datablocks_active (bContext *C)
static void tree_element_to_path (SpaceOops *soops, TreeElement *te, TreeStoreElem *tselem, ID **id, char **path, int *array_index, short *flag, short *UNUSED(groupmode))
static void do_outliner_drivers_editop (SpaceOops *soops, ListBase *tree, ReportList *reports, short mode)
static int outliner_drivers_addsel_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_drivers_add_selected (wmOperatorType *ot)
static int outliner_drivers_deletesel_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_drivers_delete_selected (wmOperatorType *ot)
static KeyingSetverify_active_keyingset (Scene *scene, short add)
static void do_outliner_keyingset_editop (SpaceOops *soops, KeyingSet *ks, ListBase *tree, short mode)
static int outliner_keyingset_additems_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_keyingset_add_selected (wmOperatorType *ot)
static int outliner_keyingset_removeitems_exec (bContext *C, wmOperator *UNUSED(op))
void OUTLINER_OT_keyingset_remove_selected (wmOperatorType *ot)

Detailed Description

Definition in file outliner_edit.c.


Define Documentation

#define _GNU_SOURCE

Definition at line 63 of file outliner_edit.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
DRIVERS_EDITMODE_ADD 
DRIVERS_EDITMODE_REMOVE 

Definition at line 1108 of file outliner_edit.c.

anonymous enum
Enumerator:
KEYINGSET_EDITMODE_ADD 
KEYINGSET_EDITMODE_REMOVE 

Definition at line 1263 of file outliner_edit.c.


Function Documentation

int common_restrict_check ( bContext C,
Object ob 
)
static void do_item_rename ( ARegion ar,
TreeElement te,
TreeStoreElem tselem,
ReportList reports 
) [static]
static void do_outliner_drivers_editop ( SpaceOops soops,
ListBase tree,
ReportList reports,
short  mode 
) [static]
static int do_outliner_item_openclose ( bContext C,
SpaceOops soops,
TreeElement te,
int  all,
const float  mval[2] 
) [static]
static int do_outliner_item_rename ( bContext C,
ARegion ar,
SpaceOops soops,
TreeElement te,
const float  mval[2] 
) [static]
static void do_outliner_keyingset_editop ( SpaceOops soops,
KeyingSet ks,
ListBase tree,
short  mode 
) [static]
static int ed_operator_outliner_datablocks_active ( bContext C) [static]
void group_toggle_renderability_cb ( bContext UNUSEDC,
Scene scene,
TreeElement UNUSEDte,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem 
)
void group_toggle_selectability_cb ( bContext UNUSEDC,
Scene scene,
TreeElement UNUSEDte,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem 
)
void group_toggle_visibility_cb ( bContext UNUSEDC,
Scene scene,
TreeElement UNUSEDte,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem 
)
void item_rename_cb ( bContext C,
Scene UNUSEDscene,
TreeElement te,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem 
)
void object_toggle_renderability_cb ( bContext UNUSEDC,
Scene scene,
TreeElement te,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem 
)
void object_toggle_selectability_cb ( bContext UNUSEDC,
Scene scene,
TreeElement te,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem 
)
void object_toggle_visibility_cb ( bContext C,
Scene scene,
TreeElement te,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem 
)
static int outliner_count_levels ( SpaceOops soops,
ListBase lb,
int  curlevel 
) [static]

Definition at line 311 of file outliner_edit.c.

References ListBase::first, TreeElement::next, and TreeElement::subtree.

Referenced by outliner_one_level_exec().

static int outliner_drivers_addsel_exec ( bContext C,
wmOperator op 
) [static]
static int outliner_drivers_deletesel_exec ( bContext C,
wmOperator op 
) [static]
int outliner_has_one_flag ( SpaceOops soops,
ListBase lb,
short  flag,
short  curlevel 
)
static int outliner_item_openclose ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int outliner_item_rename ( bContext C,
wmOperator UNUSEDop,
wmEvent event 
) [static]
static int outliner_keyingset_additems_exec ( bContext C,
wmOperator op 
) [static]
static int outliner_keyingset_removeitems_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int outliner_one_level_exec ( bContext C,
wmOperator op 
) [static]
static void outliner_openclose_level ( SpaceOops soops,
ListBase lb,
int  curlevel,
int  level,
int  open 
) [static]
void OUTLINER_OT_drivers_add_selected ( wmOperatorType ot)
void OUTLINER_OT_drivers_delete_selected ( wmOperatorType ot)
void OUTLINER_OT_expanded_toggle ( wmOperatorType ot)
void OUTLINER_OT_item_openclose ( wmOperatorType ot)
void OUTLINER_OT_item_rename ( wmOperatorType ot)
void OUTLINER_OT_keyingset_add_selected ( wmOperatorType ot)
void OUTLINER_OT_keyingset_remove_selected ( wmOperatorType ot)
void OUTLINER_OT_renderability_toggle ( wmOperatorType ot)
void OUTLINER_OT_scroll_page ( wmOperatorType ot)
void OUTLINER_OT_selectability_toggle ( wmOperatorType ot)
void OUTLINER_OT_selected_toggle ( wmOperatorType ot)
void OUTLINER_OT_show_active ( wmOperatorType ot)
void OUTLINER_OT_show_hierarchy ( wmOperatorType ot)
void OUTLINER_OT_show_one_level ( wmOperatorType ot)
void OUTLINER_OT_visibility_toggle ( wmOperatorType ot)
static int outliner_scroll_page_exec ( bContext C,
wmOperator op 
) [static]
void outliner_set_flag ( SpaceOops soops,
ListBase lb,
short  flag,
short  set 
)
static int outliner_show_active_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int outliner_show_hierarchy_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int outliner_toggle_expanded_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int outliner_toggle_renderability_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int outliner_toggle_selectability_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int outliner_toggle_selected_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int outliner_toggle_visibility_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int subtree_has_objects ( SpaceOops soops,
ListBase lb 
) [static]
static void tree_element_show_hierarchy ( Scene scene,
SpaceOops soops,
ListBase lb 
) [static]
static void tree_element_to_path ( SpaceOops soops,
TreeElement te,
TreeStoreElem tselem,
ID **  id,
char **  path,
int *  array_index,
short *  flag,
short *  UNUSEDgroupmode 
) [static]
static KeyingSet* verify_active_keyingset ( Scene scene,
short  add 
) [static]