Blender  V2.59
Defines | Functions
BKE_library.h File Reference

Go to the source code of this file.

Defines

#define MAX_LIBARRAY   39
#define ID_FALLBACK_NAME   "Untitled"
#define IS_TAGGED(_id)   ((_id) && (((ID *)_id)->flag & LIB_DOIT))

Functions

void * alloc_libblock (struct ListBase *lb, short type, const char *name)
void * copy_libblock (void *rt)
void copy_libblock_data (struct ID *id, const struct ID *id_from, const short do_action)
void id_lib_extern (struct ID *id)
void id_us_plus (struct ID *id)
void id_us_min (struct ID *id)
int id_make_local (struct ID *id, int test)
int id_copy (struct ID *id, struct ID **newid, int test)
int id_unlink (struct ID *id, int test)
int new_id (struct ListBase *lb, struct ID *id, const char *name)
struct ListBasewhich_libbase (struct Main *mainlib, short type)
int set_listbasepointers (struct Main *main, struct ListBase **lb)
void free_libblock (struct ListBase *lb, void *idv)
void free_libblock_us (struct ListBase *lb, void *idv)
void free_main (struct Main *mainvar)
void tag_main_idcode (struct Main *mainvar, const short type, const short tag)
void tag_main_lb (struct ListBase *lb, const short tag)
void tag_main (struct Main *mainvar, const short tag)
void rename_id (struct ID *id, const char *name)
void name_uiprefix_id (char *name, struct ID *id)
void test_idbutton (char *name)
void text_idbutton (struct ID *id, char *text)
void all_local (struct Library *lib, int untagged_only)
struct IDfind_id (const char *type, const char *name)
void clear_id_newpoins (void)
void IDnames_to_pupstring (const char **str, const char *title, const char *extraops, struct ListBase *lb, struct ID *link, short *nr)
void IMAnames_to_pupstring (const char **str, const char *title, const char *extraops, struct ListBase *lb, struct ID *link, short *nr)
void IPOnames_to_pupstring (const char **str, const char *title, const char *extraops, struct ListBase *lb, struct ID *link, short *nr, int blocktype)
void flag_listbase_ids (ListBase *lb, short flag, short value)
void flag_all_listbases_ids (short flag, short value)
void recalc_all_library_objects (struct Main *main)
void set_free_windowmanager_cb (void(*func)(struct bContext *, struct wmWindowManager *))

Detailed Description

Since:
March 2001
Author:
nzc

Definition in file BKE_library.h.


Define Documentation

#define ID_FALLBACK_NAME   "Untitled"

Definition at line 93 of file BKE_library.h.

Referenced by new_id().

#define IS_TAGGED (   _id)    ((_id) && (((ID *)_id)->flag & LIB_DOIT))

Definition at line 95 of file BKE_library.h.

Referenced by convert_exec(), and KX_BlenderSceneConverter::FreeBlendFile().

#define MAX_LIBARRAY   39

Function Documentation

void all_local ( struct Library lib,
int  untagged_only 
)
void* alloc_libblock ( struct ListBase lb,
short  type,
const char *  name 
)
void clear_id_newpoins ( void  )
void* copy_libblock ( void *  rt)
void copy_libblock_data ( struct ID id,
const struct ID id_from,
const short  do_action 
)

Referenced by copy_libblock(), and ntreeCopyTree().

struct ID* find_id ( const char *  type,
const char *  name 
) [read]
void flag_all_listbases_ids ( short  flag,
short  value 
)

Definition at line 447 of file library.c.

References flag_listbase_ids(), G, Global::main, MAX_LIBARRAY, and set_listbasepointers().

Referenced by bpy_lib_exit(), and wm_link_append_exec().

void flag_listbase_ids ( ListBase lb,
short  flag,
short  value 
)

Definition at line 435 of file library.c.

References ListBase::first, MDeformVert::flag, ID::flag, and ID::next.

Referenced by flag_all_listbases_ids().

void free_libblock ( struct ListBase lb,
void *  idv 
)
void free_libblock_us ( struct ListBase lb,
void *  idv 
)
void free_main ( struct Main mainvar)
int id_copy ( struct ID id,
struct ID **  newid,
int  test 
)
void id_lib_extern ( struct ID id)
int id_make_local ( struct ID id,
int  test 
)
int id_unlink ( struct ID id,
int  test 
)
void id_us_min ( struct ID id)
void id_us_plus ( struct ID id)
void IDnames_to_pupstring ( const char **  str,
const char *  title,
const char *  extraops,
struct ListBase lb,
struct ID link,
short *  nr 
)
void IMAnames_to_pupstring ( const char **  str,
const char *  title,
const char *  extraops,
struct ListBase lb,
struct ID link,
short *  nr 
)
void IPOnames_to_pupstring ( const char **  str,
const char *  title,
const char *  extraops,
struct ListBase lb,
struct ID link,
short *  nr,
int  blocktype 
)
void name_uiprefix_id ( char *  name,
struct ID id 
)

Definition at line 1411 of file library.c.

References LIB_FAKEUSER, and ID::name.

Referenced by id_search_cb(), and rna_search_cb().

int new_id ( struct ListBase lb,
struct ID id,
const char *  name 
)
void recalc_all_library_objects ( struct Main main)
void rename_id ( struct ID id,
const char *  name 
)
void set_free_windowmanager_cb ( void(*)(struct bContext *, struct wmWindowManager *)  func)

Referenced by WM_init().

int set_listbasepointers ( struct Main main,
struct ListBase **  lb 
)
void tag_main ( struct Main mainvar,
const short  tag 
)
void tag_main_idcode ( struct Main mainvar,
const short  type,
const short  tag 
)

Definition at line 1288 of file library.c.

References tag_main_lb(), and which_libbase().

void tag_main_lb ( struct ListBase lb,
const short  tag 
)

Definition at line 1273 of file library.c.

References ListBase::first, ID::flag, LIB_DOIT, and ID::next.

Referenced by tag_main(), and tag_main_idcode().

void test_idbutton ( char *  name)

Definition at line 1363 of file library.c.

References BLI_findstring(), G, GS, Global::main, new_id(), NULL, sort_alpha_id(), and which_libbase().

Referenced by namebutton_cb().

void text_idbutton ( struct ID id,
char *  text 
)

Definition at line 1379 of file library.c.

References GS, ID_MA, ID_SCE, ID_SCR, and ID::name.

struct ListBase* which_libbase ( struct Main mainlib,
short  type 
) [read]