Show
Ignore:
Timestamp:
14/08/09 16:29:27 (3 years ago)
Author:
westram
Message:
  • spellchecked all (phew)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/EDIT4/ED4_visualizeSAI.cxx

    r5942 r6141  
    22/*                                                                                       */ 
    33/*    File       : ED4_visualizeSAI.cxx                                                  */ 
    4 /*    Purpose    : To Visualise the Sequence Associated Information (SAI) in the Editor  */ 
     4/*    Purpose    : To Visualize the Sequence Associated Information (SAI) in the Editor  */ 
    55/*    Author     : Yadhu Kumar (yadhu@mikro.biologie.tu-muenchen.de)                     */ 
    66/*    web site   : http://www.arb-home.de/                                               */ 
     
    3838#define AWAR_SAI_AUTO_SELECT          AWAR_SAI_CLR_TAB "auto_select" // 1 = auto select / 0 = manual select 
    3939#define AWAR_SAI_CLR_TRANS_TABLE      AWAR_SAI_CLR_TAB "clr_trans_table" // current translation table 
    40 #define AWAR_SAI_CLR_TRANS_TAB_NAMES  AWAR_SAI_CLR_TAB "clr_trans_tab_names" // ;-seperated list of existing translation tables 
     40#define AWAR_SAI_CLR_TRANS_TAB_NAMES  AWAR_SAI_CLR_TAB "clr_trans_tab_names" // ;-separated list of existing translation tables 
    4141#define AWAR_SAI_CLR_TRANS_TAB_REL    AWAR_SAI_CLR_TAB "sai_relation/" // container to store trans tables for each SAI 
    4242#define AWAR_SAI_CLR_DEFAULTS_CREATED AWAR_SAI_CLR_TAB "defaults_created" // whether defaults have been created (create only once) 
     
    5454 
    5555static bool clrDefinitionsChanged       = false; 
    56 static bool inCallback                  = false; // used to avoid multiple refreshs 
     56static bool inCallback                  = false; // used to avoid multiple refreshes 
    5757static bool in_colorDefChanged_callback = false; // used to avoid colorDef correction 
    5858 
     
    179179                char    *colorDef = GBS_strclose(clrDefStr); 
    180180                AW_awar *awar_def = awr->awar_string(getClrDefAwar(clrTabName), "", AW_ROOT_DEFAULT); 
    181                 awar_def->write_string(colorDef); // writing clr defnition to clr trans table awar 
     181                awar_def->write_string(colorDef); // writing clr definition to clr trans table awar 
    182182                free(colorDef); 
    183183            } 
     
    254254    } 
    255255    { 
    256         // store the selected tabel as default for this SAI: 
     256        // store the selected table as default for this SAI: 
    257257        char *saiName = awr->awar(AWAR_SAI_SELECT)->read_string(); 
    258258        if (saiName[0]) { 
     
    354354    static bool callback_active = false; 
    355355 
    356     if (aw_root->awar(AWAR_SAI_AUTO_SELECT)->read_int()) { // auto select is avtivated 
     356    if (aw_root->awar(AWAR_SAI_AUTO_SELECT)->read_int()) { // auto select is activated 
    357357        aw_root->awar(AWAR_SAI_NAME)->add_callback(autoselect_cb); 
    358358        callback_active = true; 
     
    399399    aw_root->awar_string(AWAR_SAI_CLR_TRANS_TAB_NAMES,    "", aw_def); 
    400400 
    401     for (int i=0;i<10;i++){   // initialising 10 color definition string AWARS 
     401    for (int i=0;i<10;i++){   // initializing 10 color definition string AWARS 
    402402       AW_awar *def_awar = aw_root->awar_string(getAwarName(i),"",aw_def); 
    403403       def_awar->add_callback(colorDefChanged_callback, (AW_CL)i); 
     
    618618/* -------------------- Creating Windows and Display dialogs -------------------- */ 
    619619 
    620 static AW_window *create_copyColorTranslationTable_window(AW_root *aw_root){  // creates copy color tranlation table window 
     620static AW_window *create_copyColorTranslationTable_window(AW_root *aw_root){  // creates copy color translation table window 
    621621    AW_window_simple *aws = new AW_window_simple; 
    622622    aws->init( aw_root, "COPY_CLR_TR_TABLE", "Copy Color Translation Table"); 
     
    640640} 
    641641 
    642 static AW_window *create_createColorTranslationTable_window(AW_root *aw_root){ // creates create color tranlation table window 
     642static AW_window *create_createColorTranslationTable_window(AW_root *aw_root){ // creates create color translation table window 
    643643    AW_window_simple *aws = new AW_window_simple; 
    644644    aws->init( aw_root, "CREATE_CLR_TR_TABLE", "Create Color Translation Table"); 
     
    683683} 
    684684 
    685 static AW_window *create_editColorTranslationTable_window(AW_root *aw_root){  // creates edit color tranlation table window 
     685static AW_window *create_editColorTranslationTable_window(AW_root *aw_root){  // creates edit color translation table window 
    686686    static AW_window_simple *aws = 0; 
    687687    if(aws) return (AW_window *)aws;