10#define DNA_DEPRECATED_ALLOW
53#define USE_OUTLINER_DRAW_CLAMPS_SCROLL_HACK
55namespace ed::outliner {
64 ListBaseT<wmDropBox> *lb;
95#ifdef USE_OUTLINER_DRAW_CLAMPS_SCROLL_HACK
96 const rctf v2d_cur_prev = v2d->
cur;
102#ifdef USE_OUTLINER_DRAW_CLAMPS_SCROLL_HACK
354 msg_sub_value_region_tag_redraw.
owner = region;
355 msg_sub_value_region_tag_redraw.user_data = region;
413 space_outliner = MEM_new<SpaceOutliner>(
"initoutliner");
414 space_outliner->
runtime = MEM_new<SpaceOutliner_Runtime>(__func__);
436 return reinterpret_cast<SpaceLink *
>(space_outliner);
449 MEM_delete(space_outliner->
runtime);
458 SpaceOutliner *space_outliner_new = MEM_new<SpaceOutliner>(__func__, *space_outliner);
459 space_outliner_new->
runtime = MEM_new<SpaceOutliner_Runtime>(__func__, *space_outliner->
runtime);
461 space_outliner_new->
runtime->
tree.clear_no_delete();
466 return reinterpret_cast<SpaceLink *
>(space_outliner_new);
479 bool changed =
false;
480 bool unassigned =
false;
539 else if (!is_readonly) {
540 tselem->id =
nullptr;
560 space_outliner->
runtime = MEM_new<SpaceOutliner_Runtime>(__func__);
575 for (
int i = 0; i < ts->
usedelem; i++) {
578 *new_elem = elems[i];
600 tselem->
id =
nullptr;
624 struct_writer.shallow_data.runtime =
nullptr;
625 struct_writer.shallow_data.storeflag &= ~runtime_store_flags;
642 void *data_addr =
static_cast<void *
> POINTER_OFFSET(ts,
sizeof(
void *));
661 struct_writer.shallow_data.treestore =
nullptr;
662 struct_writer.shallow_data.runtime =
nullptr;
663 struct_writer.shallow_data.storeflag &= ~runtime_store_flags;
670 struct_writer.shallow_data.runtime =
nullptr;
671 struct_writer.shallow_data.storeflag &= ~runtime_store_flags;
688 std::unique_ptr<SpaceType> st = std::make_unique<SpaceType>();
#define BKE_LIB_FOREACHID_PROCESS_ID(data_, id_, cb_flag_)
#define STRNCPY_UTF8(dst, src)
#define BLO_read_struct_array_no_us(reader, struct_name, ptr_p, array_size)
#define BLO_read_struct_no_us(reader, struct_name, ptr_p)
#define TSE_IS_REAL_ID(_tse)
#define WM_OUTLINER_SYNC_SELECT_FROM_ALL
Read Blender memory allocation and freeing.
#define ND_RENDER_OPTIONS
#define ND_LIB_OVERRIDE_CHANGED
#define ND_BONE_COLLECTION
#define NS_LAYER_COLLECTION
#define ND_SPACE_OUTLINER
#define POINTER_OFFSET(v, ofs)
IDRemapperApplyResult apply(ID **r_id_ptr, IDRemapperApplyOptions options, ID *id_self=nullptr) const
static void outliner_header_region_free(ARegion *)
static void outliner_foreach_id(SpaceLink *space_link, LibraryForeachIDData *data)
static void outliner_main_region_draw(const bContext *C, ARegion *region)
static void outliner_init(wmWindowManager *, ScrArea *)
static void outliner_space_blend_write(BlendWriter *writer, SpaceLink *sl)
bool outliner_requires_rebuild_on_select_or_active_change(const SpaceOutliner *space_outliner)
static void write_space_outliner(BlendWriter *writer, const SpaceOutliner *space_outliner)
static SpaceLink * outliner_duplicate(SpaceLink *sl)
bool outliner_flag_set(SpaceOutliner &space_outliner, const eTreeStoreElem_Flag flag, const short set)
static void outliner_space_blend_read_after_liblink(BlendLibReader *, ID *, SpaceLink *sl)
static void outliner_header_region_listener(const wmRegionListenerParams *params)
static void outliner_space_blend_read_data(BlendDataReader *reader, SpaceLink *sl)
static void outliner_header_region_init(wmWindowManager *, ARegion *region)
int outliner_main_region_context(const bContext *C, const char *member, bContextDataResult *result)
static void outliner_free(SpaceLink *sl)
static void outliner_main_region_message_subscribe(const wmRegionMessageSubscribeParams *params)
static void outliner_main_region_listener(const wmRegionListenerParams *params)
static SpaceLink * outliner_create(const ScrArea *, const Scene *)
void outliner_free_tree(ListBaseT< TreeElement > *tree)
void outliner_operatortypes()
void outliner_keymap(wmKeyConfig *keyconf)
static void outliner_main_region_init(wmWindowManager *wm, ARegion *region)
static void outliner_deactivate(ScrArea *area)
static void outliner_header_region_draw(const bContext *C, ARegion *region)
static void outliner_main_region_free(ARegion *)
void draw_outliner(const bContext *C, bool do_rebuild)
static void outliner_id_remap(ScrArea *area, SpaceLink *slink, const bke::id::IDRemapper &mappings)
void outliner_dropboxes()
void frame_buffer_clear(int colorid)
void view2d_view_restore(const bContext *C)
void view2d_scrollers_draw(View2D *v2d, const rcti *mask_custom)
@ ID_REMAP_RESULT_SOURCE_UNASSIGNED
@ ID_REMAP_RESULT_SOURCE_UNAVAILABLE
@ ID_REMAP_RESULT_SOURCE_REMAPPED
@ ID_REMAP_RESULT_SOURCE_NOT_MAPPABLE
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
@ SO_FILTER_NO_VIEW_LAYERS
ScrArea * CTX_wm_area(const bContext *C)
void BLI_addhead(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
@ IDWALK_NO_ORIG_POINTERS_ACCESS
void ED_region_tag_redraw(ARegion *region)
LibraryForeachIDFlag BKE_lib_query_foreachid_process_flags_get(const LibraryForeachIDData *data)
void ED_spacetype_outliner()
void BLI_mempool_destroy(BLI_mempool *pool) ATTR_NONNULL(1)
void ED_region_draw_overflow_indication(const ScrArea *area, const ARegion *region, const rcti *mask=nullptr)
wmEventHandler_Dropbox * WM_event_add_dropbox_handler(ListBaseT< wmEventHandler > *handlers, ListBaseT< wmDropBox > *dropboxes)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
bool BLI_rctf_compare(const struct rctf *rect_a, const struct rctf *rect_b, float limit)
BMesh const char void * data
wmEventHandler_Keymap * WM_event_add_keymap_handler_v2d_mask(ListBaseT< wmEventHandler > *handlers, wmKeyMap *keymap)
void void * BLI_mempool_as_arrayN(BLI_mempool *pool, const char *allocstr) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
BLI_mempool * BLI_mempool_create(unsigned int esize, unsigned int elem_num, unsigned int pchunk, unsigned int flag) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
void BLI_mempool_iternew(BLI_mempool *pool, BLI_mempool_iter *iter) ATTR_NONNULL()
void * BLI_mempool_iterstep(BLI_mempool_iter *iter) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
ARegion * BKE_area_region_new()
ARegion * BKE_area_find_region_type(const ScrArea *area, int region_type)
@ V2D_SCROLL_VERTICAL_HIDE
@ V2D_SCROLL_HORIZONTAL_HIDE
@ SO_LIB_OVERRIDE_VIEW_PROPERTIES
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BKE_spacetype_register(std::unique_ptr< SpaceType > st)
void ED_region_header_init(ARegion *region)
void * BLI_mempool_alloc(BLI_mempool *pool) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL ATTR_NONNULL(1)
@ RGN_FLAG_INDICATE_OVERFLOW
int BLI_mempool_len(const BLI_mempool *pool) ATTR_NONNULL(1)
LibraryForeachIDCallbackFlag
@ IDWALK_CB_WRITEFILE_IGNORE
@ IDWALK_CB_EMBEDDED_NOT_OWNING
void ED_region_do_msg_notify_tag_redraw(bContext *C, wmMsgSubscribeKey *msg_key, wmMsgSubscribeValue *msg_val)
ListBaseT< wmDropBox > * WM_dropboxmap_find(const char *idname, int spaceid, int regionid)
void ED_region_header(const bContext *C, ARegion *region)
void ED_region_tag_redraw_no_rebuild(ARegion *region)
size_t(*) MEM_allocN_len(const void *vmemh) ATTR_WARN_UNUSED_RESULT
void ED_area_tag_redraw(ScrArea *area)
void(*) message_subscribe(const wmRegionMessageSubscribeParams *params)
bContextDataCallback context
void(*) draw(const bContext *C, ARegion *region)
void(*) listener(const wmRegionListenerParams *params)
void(*) init(wmWindowManager *wm, ARegion *region)
bke::ARegionRuntime * runtime
eRegion_Alignment alignment
void write_struct_at_address(const void *address, const T *data, BlendStructWriterTypedFn< T > fn=nullptr)
void write_struct_cast(const void *data, BlendStructWriterTypedFn< T > fn=nullptr)
void write_struct_array_at_address(const int64_t array_size, const void *address, const T *data, BlendStructWriterTypedFn< T > fn=nullptr)
ListBaseT< SpaceLink > spacedata
eSpaceOutliner_Mode outlinevis
ed::outliner::SpaceOutliner_Runtime * runtime
eSpaceOutliner_Filter filter
eSpaceOutliner_StoreFlag storeflag
eSpaceOutliner_LibOverrideViewMode lib_override_view_mode
eSpaceOutliner_ShowRestrictFlag show_restrict_flags
struct BLI_mempool * treestore
ListBaseT< ARegion > regionbase
DNA_DEPRECATED int totelem
eView2D_KeepZoom keepzoom
ListBaseT< wmEventHandler > handlers
std::unique_ptr< treehash::TreeHash > tree_hash
SpaceOutliner_Runtime()=default
ListBaseT< ed::outliner::TreeElement > tree
std::unique_ptr< AbstractTreeDisplay > tree_display
const wmNotifier * notifier
Establish and manage Outliner trees for different display modes.
#define WM_msg_subscribe_rna_anon_prop(mbus, type_, prop_, value)