Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_intern.h
| Show All 30 Lines | |||||
| #ifndef __OUTLINER_INTERN_H__ | #ifndef __OUTLINER_INTERN_H__ | ||||
| #define __OUTLINER_INTERN_H__ | #define __OUTLINER_INTERN_H__ | ||||
| #include "RNA_types.h" | #include "RNA_types.h" | ||||
| /* internal exports only */ | /* internal exports only */ | ||||
| struct ARegion; | |||||
| struct wmOperatorType; | struct wmOperatorType; | ||||
| struct TreeElement; | struct TreeElement; | ||||
| struct TreeStoreElem; | struct TreeStoreElem; | ||||
| struct Main; | struct Main; | ||||
| struct bContext; | struct bContext; | ||||
| struct Scene; | struct Scene; | ||||
| struct ViewLayer; | struct ViewLayer; | ||||
| struct ID; | struct ID; | ||||
| ▲ Show 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | |||||
| #define OL_TOG_RESTRICT_RENDERX UI_UNIT_X | #define OL_TOG_RESTRICT_RENDERX UI_UNIT_X | ||||
| #define OL_TOGW OL_TOG_RESTRICT_VIEWX | #define OL_TOGW OL_TOG_RESTRICT_VIEWX | ||||
| #define OL_RNA_COLX (UI_UNIT_X * 15) | #define OL_RNA_COLX (UI_UNIT_X * 15) | ||||
| #define OL_RNA_COL_SIZEX (UI_UNIT_X * 7.5f) | #define OL_RNA_COL_SIZEX (UI_UNIT_X * 7.5f) | ||||
| #define OL_RNA_COL_SPACEX (UI_UNIT_X * 2.5f) | #define OL_RNA_COL_SPACEX (UI_UNIT_X * 2.5f) | ||||
| /* The outliner display modes that support the filter system. | |||||
| * Note: keep it synced with space_outliner.py */ | |||||
| #define SUPPORT_FILTER_OUTLINER(soops_) ELEM((soops_)->outlinevis, SO_VIEW_LAYER, SO_COLLECTIONS) | |||||
| /* Outliner Searching -- | /* Outliner Searching -- | ||||
| * | * | ||||
| * Are we looking for something in the outliner? | * Are we looking for something in the outliner? | ||||
| * If so finding matches in child items makes it more useful | * If so finding matches in child items makes it more useful | ||||
| * | * | ||||
| * - We want to flag parents to act as being open to filter child matches | * - We want to flag parents to act as being open to filter child matches | ||||
| * - and also flag matches so we can highlight them | * - and also flag matches so we can highlight them | ||||
| * - Flags are stored in TreeStoreElem->flag | * - Flags are stored in TreeStoreElem->flag | ||||
| * - Flag options defined in DNA_outliner_types.h | * - Flag options defined in DNA_outliner_types.h | ||||
| * - SO_SEARCH_RECURSIVE defined in DNA_space_types.h | * - SO_SEARCH_RECURSIVE defined in DNA_space_types.h | ||||
| * | * | ||||
| * - NOT in datablocks view - searching all datablocks takes way too long | * - NOT in datablocks view - searching all datablocks takes way too long | ||||
| * to be useful | * to be useful | ||||
| * - not searching into RNA items helps but isn't the complete solution | * - not searching into RNA items helps but isn't the complete solution | ||||
| */ | */ | ||||
| #define SEARCHING_OUTLINER(sov) (sov->search_flags & SO_SEARCH_RECURSIVE) | #define SEARCHING_OUTLINER(sov) ((sov->search_flags & SO_SEARCH_RECURSIVE) && (sov->filter & SO_FILTER_SEARCH)) | ||||
| /* is the currrent element open? if so we also show children */ | /* is the currrent element open? if so we also show children */ | ||||
| #define TSELEM_OPEN(telm, sv) ( (telm->flag & TSE_CLOSED) == 0 || (SEARCHING_OUTLINER(sv) && (telm->flag & TSE_CHILDSEARCH)) ) | #define TSELEM_OPEN(telm, sv) ( (telm->flag & TSE_CLOSED) == 0 || (SEARCHING_OUTLINER(sv) && (telm->flag & TSE_CHILDSEARCH)) ) | ||||
| /* outliner_tree.c ----------------------------------------------- */ | /* outliner_tree.c ----------------------------------------------- */ | ||||
| void outliner_free_tree(ListBase *tree); | void outliner_free_tree(ListBase *tree); | ||||
| void outliner_cleanup_tree(struct SpaceOops *soops); | void outliner_cleanup_tree(struct SpaceOops *soops); | ||||
| void outliner_free_tree_element(TreeElement *element, ListBase *parent_subtree); | void outliner_free_tree_element(TreeElement *element, ListBase *parent_subtree); | ||||
| void outliner_remove_treestore_element(struct SpaceOops *soops, TreeStoreElem *tselem); | void outliner_remove_treestore_element(struct SpaceOops *soops, TreeStoreElem *tselem); | ||||
| void outliner_build_tree(struct Main *mainvar, struct Scene *scene, struct ViewLayer *view_layer, struct SpaceOops *soops); | void outliner_build_tree(struct Main *mainvar, struct Scene *scene, struct ViewLayer *view_layer, | ||||
| struct SpaceOops *soops, struct ARegion *ar); | |||||
| /* outliner_draw.c ---------------------------------------------- */ | /* outliner_draw.c ---------------------------------------------- */ | ||||
| void draw_outliner(const struct bContext *C); | void draw_outliner(const struct bContext *C); | ||||
| void restrictbutton_gr_restrict_flag(void *poin, void *poin2, int flag); | void restrictbutton_gr_restrict_flag(void *poin, void *poin2, int flag); | ||||
| /* outliner_select.c -------------------------------------------- */ | /* outliner_select.c -------------------------------------------- */ | ||||
| eOLDrawState tree_element_type_active( | eOLDrawState tree_element_type_active( | ||||
| ▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | void id_delete_cb( | ||||
| struct bContext *C, struct ReportList *reports, struct Scene *scene, struct TreeElement *te, | struct bContext *C, struct ReportList *reports, struct Scene *scene, struct TreeElement *te, | ||||
| struct TreeStoreElem *tsep, struct TreeStoreElem *tselem, void *user_data); | struct TreeStoreElem *tsep, struct TreeStoreElem *tselem, void *user_data); | ||||
| void id_remap_cb( | void id_remap_cb( | ||||
| struct bContext *C, struct ReportList *reports, struct Scene *scene, struct TreeElement *te, | struct bContext *C, struct ReportList *reports, struct Scene *scene, struct TreeElement *te, | ||||
| struct TreeStoreElem *tsep, struct TreeStoreElem *tselem, void *user_data); | struct TreeStoreElem *tsep, struct TreeStoreElem *tselem, void *user_data); | ||||
| TreeElement *outliner_dropzone_find(const struct SpaceOops *soops, const float fmval[2], const bool children); | TreeElement *outliner_dropzone_find(const struct SpaceOops *soops, const float fmval[2], const bool children); | ||||
| void outliner_set_coordinates(struct ARegion *ar, struct SpaceOops *soops); | |||||
| /* ...................................................... */ | /* ...................................................... */ | ||||
| void OUTLINER_OT_highlight_update(struct wmOperatorType *ot); | void OUTLINER_OT_highlight_update(struct wmOperatorType *ot); | ||||
| void OUTLINER_OT_item_activate(struct wmOperatorType *ot); | void OUTLINER_OT_item_activate(struct wmOperatorType *ot); | ||||
| void OUTLINER_OT_item_openclose(struct wmOperatorType *ot); | void OUTLINER_OT_item_openclose(struct wmOperatorType *ot); | ||||
| void OUTLINER_OT_item_rename(struct wmOperatorType *ot); | void OUTLINER_OT_item_rename(struct wmOperatorType *ot); | ||||
| void OUTLINER_OT_lib_relocate(struct wmOperatorType *ot); | void OUTLINER_OT_lib_relocate(struct wmOperatorType *ot); | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||