ARB
Macros | Enumerations | Functions | Variables
MG_gene_species.cxx File Reference
#include "merge.hxx"
#include <awt_config_manager.hxx>
#include <aw_awar.hxx>
#include <aw_root.hxx>
#include <aw_msg.hxx>
#include <aw_select.hxx>
#include <arbdbt.h>
#include <arb_str.h>
#include <gb_aci.h>
Include dependency graph for MG_gene_species.cxx:

Go to the source code of this file.

Macros

#define AWAR_MERGE_GENE_SPECIES_SAV   AWAR_MERGE_SAV "gene_species/"
 
#define AWAR_MERGE_GENE_SPECIES_TMP   AWAR_MERGE_TMP "gene_species/"
 
#define AWAR_MERGE_GENE_SPECIES_CURRENT_FIELD   AWAR_MERGE_GENE_SPECIES_TMP "current"
 
#define AWAR_MERGE_GENE_SPECIES_DEST   AWAR_MERGE_GENE_SPECIES_TMP "dest"
 
#define AWAR_MERGE_GENE_SPECIES_SOURCE   AWAR_MERGE_GENE_SPECIES_TMP "source"
 
#define AWAR_MERGE_GENE_SPECIES_METHOD   AWAR_MERGE_GENE_SPECIES_TMP "method"
 
#define AWAR_MERGE_GENE_SPECIES_ACI   AWAR_MERGE_GENE_SPECIES_TMP "aci"
 
#define AWAR_MERGE_GENE_SPECIES_EXAMPLE   AWAR_MERGE_GENE_SPECIES_TMP "example"
 
#define AWAR_MERGE_GENE_SPECIES_FIELDS_SAVE   AWAR_MERGE_GENE_SPECIES_TMP "save"
 
#define AWAR_MERGE_GENE_SPECIES_CREATE_FIELDS   AWAR_MERGE_GENE_SPECIES_SAV "activated"
 
#define AWAR_MERGE_GENE_SPECIES_FIELDS_DEFS   AWAR_MERGE_GENE_SPECIES_SAV "field_defs"
 
#define BUFSIZE   100
 
#define MAX_EQUAL_WARNINGS   10
 
#define add_config(s, id)   cdef.add(field_awar(s, id), id, count)
 

Enumerations

enum  CreationMethod { MG_CREATE_COPY_ORGANISM, MG_CREATE_COPY_GENE, MG_CREATE_USING_ACI_ONLY }
 

Functions

void MG_create_gene_species_awars (AW_root *aw_root, AW_default aw_def)
 
charstrcpydest (char *dest, const char *src)
 
const charfield_awar (const char *field_name, const char *subfield)
 
const charcurrent_field_awar (AW_root *aw_root, const char *subfield)
 
static void create_awars_for_field (const char *cur_field)
 
static charMG_create_field_content (GBDATA *gb_species, CreationMethod method, const char *origins_field, const char *aci, GB_ERROR &error, GB_HASH *organism_hash)
 
GB_ERROR MG_export_fields (AW_root *aw_root, GBDATA *gb_src, GBDATA *gb_dst, GB_HASH *error_suppressor, GB_HASH *source_organism_hash)
 
static charMG_create_current_field_content (AW_root *aw_root, GBDATA *gb_species, GB_ERROR &error)
 
static void MG_update_example (AW_root *aw_root)
 
static void check_and_correct_current_field (char *&cur_field)
 
static void MG_current_field_def_changed_cb (AW_root *aw_root)
 
static void MG_source_field_changed_cb (AW_root *aw_root)
 
static void MG_dest_field_changed_cb (AW_root *aw_root)
 
static void MG_method_changed_cb (AW_root *aw_root)
 
static void MG_delete_selected_field_def (AW_window *aww)
 
static void MG_aci_changed_cb (AW_root *aw_root)
 
static void MG_update_selection_list_on_field_transfers (AW_root *aw_root, AW_selection_list *geneSpecFieldList)
 
static void init_gene_species_xfer_fields_subconfig (AWT_config_definition &cdef, char *existing_definitions)
 
static void init_gene_species_xfer_fields_config (AWT_config_definition &cdef)
 
static charstore_gene_species_xfer_fields ()
 
static void load_or_reset_gene_species_xfer_fields (const char *stored_string, AW_selection_list *geneSpecFieldList)
 
AW_windowMG_gene_species_create_field_transfer_def_window (AW_root *aw_root)
 

Variables

static AW_default MG_props = NULp
 
static bool allow_callbacks = true
 

Macro Definition Documentation

#define AWAR_MERGE_GENE_SPECIES_SAV   AWAR_MERGE_SAV "gene_species/"

Definition at line 27 of file MG_gene_species.cxx.

Referenced by field_awar().

#define AWAR_MERGE_GENE_SPECIES_TMP   AWAR_MERGE_TMP "gene_species/"

Definition at line 28 of file MG_gene_species.cxx.

#define AWAR_MERGE_GENE_SPECIES_CURRENT_FIELD   AWAR_MERGE_GENE_SPECIES_TMP "current"
#define AWAR_MERGE_GENE_SPECIES_DEST   AWAR_MERGE_GENE_SPECIES_TMP "dest"
#define AWAR_MERGE_GENE_SPECIES_SOURCE   AWAR_MERGE_GENE_SPECIES_TMP "source"
#define AWAR_MERGE_GENE_SPECIES_METHOD   AWAR_MERGE_GENE_SPECIES_TMP "method"
#define AWAR_MERGE_GENE_SPECIES_ACI   AWAR_MERGE_GENE_SPECIES_TMP "aci"
#define AWAR_MERGE_GENE_SPECIES_EXAMPLE   AWAR_MERGE_GENE_SPECIES_TMP "example"
#define AWAR_MERGE_GENE_SPECIES_FIELDS_SAVE   AWAR_MERGE_GENE_SPECIES_TMP "save"
#define AWAR_MERGE_GENE_SPECIES_CREATE_FIELDS   AWAR_MERGE_GENE_SPECIES_SAV "activated"
#define AWAR_MERGE_GENE_SPECIES_FIELDS_DEFS   AWAR_MERGE_GENE_SPECIES_SAV "field_defs"
#define BUFSIZE   100

Definition at line 67 of file MG_gene_species.cxx.

Referenced by field_awar().

#define MAX_EQUAL_WARNINGS   10

Referenced by MG_export_fields().

#define add_config (   s,
  id 
)    cdef.add(field_awar(s, id), id, count)

Enumeration Type Documentation

Enumerator
MG_CREATE_COPY_ORGANISM 
MG_CREATE_COPY_GENE 
MG_CREATE_USING_ACI_ONLY 

Definition at line 44 of file MG_gene_species.cxx.

Function Documentation

void MG_create_gene_species_awars ( AW_root aw_root,
AW_default  aw_def 
)
char* strcpydest ( char dest,
const char src 
)
inline

Definition at line 69 of file MG_gene_species.cxx.

Referenced by field_awar().

const char* field_awar ( const char field_name,
const char subfield 
)
inline
const char* current_field_awar ( AW_root aw_root,
const char subfield 
)
inline
static void create_awars_for_field ( const char cur_field)
static
static char* MG_create_field_content ( GBDATA gb_species,
CreationMethod  method,
const char origins_field,
const char aci,
GB_ERROR error,
GB_HASH organism_hash 
)
static
GB_ERROR MG_export_fields ( AW_root aw_root,
GBDATA gb_src,
GBDATA gb_dst,
GB_HASH error_suppressor,
GB_HASH source_organism_hash 
)
static char* MG_create_current_field_content ( AW_root aw_root,
GBDATA gb_species,
GB_ERROR error 
)
static
static void MG_update_example ( AW_root aw_root)
static
static void check_and_correct_current_field ( char *&  cur_field)
static
static void MG_current_field_def_changed_cb ( AW_root aw_root)
static
static void MG_source_field_changed_cb ( AW_root aw_root)
static
static void MG_dest_field_changed_cb ( AW_root aw_root)
static
static void MG_method_changed_cb ( AW_root aw_root)
static
static void MG_delete_selected_field_def ( AW_window aww)
static
static void MG_aci_changed_cb ( AW_root aw_root)
static
static void MG_update_selection_list_on_field_transfers ( AW_root aw_root,
AW_selection_list geneSpecFieldList 
)
static
static void init_gene_species_xfer_fields_subconfig ( AWT_config_definition cdef,
char existing_definitions 
)
static
static void init_gene_species_xfer_fields_config ( AWT_config_definition cdef)
static
static char* store_gene_species_xfer_fields ( )
static
static void load_or_reset_gene_species_xfer_fields ( const char stored_string,
AW_selection_list geneSpecFieldList 
)
static
AW_window* MG_gene_species_create_field_transfer_def_window ( AW_root aw_root)

Variable Documentation

AW_default MG_props = NULp
static

Definition at line 50 of file MG_gene_species.cxx.

bool allow_callbacks = true
static