ARB
Functions | Variables
itemtools.cxx File Reference
#include "items.h"
#include <arb_msg.h>
#include <arb_str.h>
#include <aw_window.hxx>
#include <arbdb.h>
Include dependency graph for itemtools.cxx:

Go to the source code of this file.

Functions

const charITEMS_get_key (ItemSelector &selector)
 
const charITEMS_get_type_key (QUERY_ITEM_TYPE itemtype)
 
const charITEMS_get_possible_former_itemname (ItemSelector &selector)
 
charitemTypeSpecificWindowID (QUERY_ITEM_TYPE itemtype, const char *window_id)
 
charitemSpecificWindowID (const ItemSelector &selector, const char *window_id, bool force_suffix)
 
void init_itemType_specific_window (AW_root *aw_root, 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

static const chartype_key [QUERY_ITEM_TYPES]
 

Function Documentation

const char* ITEMS_get_key ( ItemSelector selector)
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)
char* itemTypeSpecificWindowID ( QUERY_ITEM_TYPE  itemtype,
const char window_id 
)
inline
char* itemSpecificWindowID ( const ItemSelector selector,
const char window_id,
bool  force_suffix 
)
inline
void init_itemType_specific_window ( AW_root aw_root,
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 char* type_key[QUERY_ITEM_TYPES]
static
Initial value:
= {
"species",
"organism",
"gene",
"experiment",
"sai"
}

Definition at line 37 of file itemtools.cxx.