ARB
Classes | Macros | Typedefs | Enumerations | Functions | Variables
items.h File Reference
#include <cb.h>
#include <arbdb_base.h>
#include <arb_assert.h>
Include dependency graph for items.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MutableItemSelector
 
struct  MutableBoundItemSel
 

Macros

#define it_assert(cond)   arb_assert(cond)
 

Typedefs

typedef const MutableItemSelector ItemSelector
 
typedef const MutableBoundItemSel BoundItemSel
 

Enumerations

enum  QUERY_ITEM_TYPE {
  QUERY_ITEM_SPECIES, QUERY_ITEM_ORGANISM, QUERY_ITEM_GENE, QUERY_ITEM_EXPERIMENT,
  QUERY_ITEM_SAI
}
 
enum  QUERY_RANGE { QUERY_CURRENT_ITEM, QUERY_MARKED_ITEMS, QUERY_ALL_ITEMS }
 

Functions

bool speciesOrOrganism (QUERY_ITEM_TYPE type)
 
ItemSelectorSPECIES_get_selector ()
 
ItemSelectorORGANISM_get_selector ()
 
ItemSelectorSAI_get_selector ()
 
const charITEMS_get_key (ItemSelector &sel)
 
const charITEMS_get_type_key (QUERY_ITEM_TYPE itemtype)
 
const charITEMS_get_possible_former_itemname (ItemSelector &selector)
 
void init_itemType_specific_window (AW_root *aw_root, class AW_window_simple *aws, const ItemSelector &itemType, const char *id, const char *title_format, bool plural)
 
void init_item_specific_window (AW_root *aw_root, AW_window_simple *aws, const ItemSelector &itemType, const char *id, bool force_suffix, const char *title_format, bool plural)
 

Variables

const int QUERY_ITEM_TYPES = QUERY_ITEM_SAI+1
 

Macro Definition Documentation

#define it_assert (   cond)    arb_assert(cond)

Typedef Documentation

Definition at line 46 of file items.h.

Definition at line 105 of file items.h.

Enumeration Type Documentation

Enumerator
QUERY_ITEM_SPECIES 
QUERY_ITEM_ORGANISM 
QUERY_ITEM_GENE 
QUERY_ITEM_EXPERIMENT 
QUERY_ITEM_SAI 

Definition at line 27 of file items.h.

Enumerator
QUERY_CURRENT_ITEM 
QUERY_MARKED_ITEMS 
QUERY_ALL_ITEMS 

Definition at line 40 of file items.h.

Function Documentation

bool speciesOrOrganism ( QUERY_ITEM_TYPE  type)
inline
ItemSelector& SPECIES_get_selector ( )
ItemSelector& ORGANISM_get_selector ( )
ItemSelector& SAI_get_selector ( )

Definition at line 92 of file SAIs.cxx.

References ITEM_sai.

Referenced by mg_initialize_SAI_selectors(), and NT_create_extendeds_window().

const char* ITEMS_get_key ( ItemSelector sel)
const char* ITEMS_get_type_key ( QUERY_ITEM_TYPE  itemtype)

Definition at line 45 of file itemtools.cxx.

Referenced by colorset_data::get_items_type_key(), and itemTypeSpecificWindowID().

const char* ITEMS_get_possible_former_itemname ( ItemSelector selector)
void init_itemType_specific_window ( AW_root aw_root,
class AW_window_simple *  aws,
const ItemSelector itemType,
const char id,
const char title_format,
bool  plural 
)
void init_item_specific_window ( AW_root aw_root,
AW_window_simple *  aws,
const ItemSelector itemType,
const char id,
bool  force_suffix,
const char title_format,
bool  plural 
)

Init new window in an item specific manner.

Parameters
aw_rootwindow root.
awswindow to initialize.
itemTypespecifies type of item.
idthe base macro id for this window. will be suffixed specific for itemtype.
force_suffixforce suffixing for normal 'species'? (false = similar to behavior of init_itemType_specific_window). recommended value is 'true'.
title_formatformat string for title.
pluraluse plural in title?

Definition at line 90 of file itemtools.cxx.

References GBS_global_string_copy(), MutableItemSelector::item_name, MutableItemSelector::items_name, and itemSpecificWindowID().

Referenced by create_colorize_window(), create_modify_fields_window(), create_set_protection_window(), and create_writeFieldOfListed_window().

Variable Documentation

const int QUERY_ITEM_TYPES = QUERY_ITEM_SAI+1

Definition at line 34 of file items.h.

Referenced by init_itemtype_specific_DBUI_awars().