Blender V2.61 - r43446
Defines | Functions

BKE_library.h File Reference

Go to the source code of this file.

Defines

#define MAX_LIBARRAY   40
#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 (struct ID *id)
void copy_libblock_data (struct ID *id, const struct ID *id_from, const short do_action)
void BKE_id_lib_local_paths (struct Main *bmain, struct Library *lib, struct ID *id)
void id_lib_extern (struct ID *id)
void BKE_library_filepath_set (struct Library *lib, const char *filepath)
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_single_user (struct bContext *C, struct ID *id, struct PointerRNA *ptr, struct PropertyRNA *prop)
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)
void id_clear_lib_data (struct Main *bmain, struct ID *id)
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 BKE_library_make_local (struct Main *bmain, 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 97 of file BKE_library.h.

Referenced by new_id().

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

Definition at line 99 of file BKE_library.h.

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

#define MAX_LIBARRAY   40

Function Documentation

void* alloc_libblock ( struct ListBase lb,
short  type,
const char *  name 
)
void BKE_id_lib_local_paths ( struct Main bmain,
struct Library lib,
struct ID id 
)
void BKE_library_filepath_set ( struct Library lib,
const char *  filepath 
)

Definition at line 1500 of file library.c.

References BLI_path_abs(), BLI_strncpy(), Library::filepath, G, Library::name, and Library::parent.

Referenced by bpath_traverse_id(), and namebutton_cb().

void BKE_library_make_local ( struct Main bmain,
struct Library lib,
int  untagged_only 
)
void clear_id_newpoins ( void  )
void* copy_libblock ( struct ID id)
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 508 of file library.c.

References flag_listbase_ids(), G, 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 496 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)
void id_clear_lib_data ( struct Main bmain,
struct ID id 
)
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_single_user ( struct bContext C,
struct ID id,
struct PointerRNA ptr,
struct PropertyRNA prop 
)
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 1491 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 1368 of file library.c.

References tag_main_lb(), and which_libbase().

void tag_main_lb ( struct ListBase lb,
const short  tag 
)

Definition at line 1353 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 1443 of file library.c.

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

Referenced by namebutton_cb().

void text_idbutton ( struct ID id,
char *  text 
)

Definition at line 1459 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]