ARB
|
Go to the source code of this file.
Macros | |
#define | GB_COLORGROUP_ENTRY "ARB_color" |
#define | GB_COLOR_GROUPS 12 |
Functions | |
int | GBT_get_color_group (GBDATA *gb_item) |
GB_ERROR | GBT_set_color_group (GBDATA *gb_item, int color_group) |
GBDATA * | GBT_colorset_root (GBDATA *gb_main, const char *itemname) |
void | GBT_get_colorset_names (ConstStrArray &colorsetNames, GBDATA *gb_colorset_root) |
GBDATA * | GBT_find_colorset (GBDATA *gb_colorset_root, const char *name) |
GBDATA * | GBT_find_or_create_colorset (GBDATA *gb_colorset_root, const char *name) |
GB_ERROR | GBT_load_colorset (GBDATA *gb_colorset, ConstStrArray &colorsetDefs) |
GB_ERROR | GBT_save_colorset (GBDATA *gb_colorset, CharPtrArray &colorsetDefs) |
#define GB_COLORGROUP_ENTRY "ARB_color" |
Definition at line 21 of file ad_colorset.h.
Referenced by GBT_get_color_group(), GBT_set_color_group(), and remove_dup_colors().
#define GB_COLOR_GROUPS 12 |
Definition at line 22 of file ad_colorset.h.
Referenced by GBT_get_color_group(), and GBT_set_color_group().
return color group of item (special, gene, ...)
gb_item | the item |
Definition at line 16 of file ad_colorset.cxx.
References GB_COLOR_GROUPS, GB_COLORGROUP_ENTRY, GB_entry(), and GB_read_int().
Referenced by AP_TreeShader::calc_leaf_GC(), create_colorset_representation(), getDrawGcs(), AWT_graphic_tree::group_tree(), and mark_colored_cb().
set color group of item
gb_item | the item |
color_group | the color group [1 .. GB_COLOR_GROUPS] or zero to delete it. |
Please note that this function may be bypassed by user; e.g. via 'write to fields of listed'.
Definition at line 31 of file ad_colorset.cxx.
References GB_COLOR_GROUPS, GB_COLORGROUP_ENTRY, GB_delete(), GB_entry(), GBS_global_string(), GBT_write_int(), and NULp.
Referenced by clear_all_colors(), colorize_marked_cb(), colorize_queried_cb(), and restore_colorset_representation().
return root container for colorsets
gb_main | database |
itemsname | name of items ( == ItemSelector::items_name) |
Definition at line 52 of file ad_colorset.cxx.
References GB_CREATE_CONTAINER, GB_search(), and NULp.
Referenced by GBT_commit_rename_session(), and get_colorset_root().
void GBT_get_colorset_names | ( | ConstStrArray & | colorsetNames, |
GBDATA * | gb_colorset_root | ||
) |
retrieve names of existing colorsets from DB
colorsetNames | result-param: will be filled with colorset names |
gb_colorset_root | result of GBT_colorset_root() |
Definition at line 62 of file ad_colorset.cxx.
References GB_entry(), GB_nextEntry(), GBT_get_name(), and ConstStrArray::put().
Referenced by GBT_commit_rename_session(), and update_colorset_selection_list().
lookup (existing) colorset
gb_colorset_root | result of GBT_colorset_root() |
name | colorset name |
Definition at line 76 of file ad_colorset.cxx.
References GBT_find_item_rel_item_data().
Referenced by GBT_commit_rename_session(), and loadsave_colorset_cb().
create a new colorset
gb_colorset_root | result of GBT_colorset_root() |
name | colorset name |
Definition at line 85 of file ad_colorset.cxx.
References GBT_find_or_create_item_rel_item_data().
Referenced by loadsave_colorset_cb().
GB_ERROR GBT_load_colorset | ( | GBDATA * | gb_colorset, |
ConstStrArray & | colorsetDefs | ||
) |
load a colorset
gb_colorset | result of GBT_find_colorset() |
colorsetDefs | result-param: will be filled with colorset-entries ("itemname=color") |
Definition at line 94 of file ad_colorset.cxx.
References error(), GB_await_error(), GB_have_error(), GBS_global_string(), GBT_read_string(), GBT_splitNdestroy_string(), and NULp.
Referenced by GBT_commit_rename_session(), and loadsave_colorset_cb().
GB_ERROR GBT_save_colorset | ( | GBDATA * | gb_colorset, |
CharPtrArray & | colorsetDefs | ||
) |
saves a colorset
gb_colorset | result of GBT_find_colorset() or GBT_create_colorset() |
colorsetDefs | contains colorset-entries ("itemname=color") |
Definition at line 113 of file ad_colorset.cxx.
References buffer, GBS_strstruct::cat(), GBS_strstruct::cut_tail(), GBT_write_string(), GBS_strstruct::get_data(), GBS_strstruct::put(), and CharPtrArray::size().
Referenced by GBT_commit_rename_session(), and loadsave_colorset_cb().