Changeset 6141 for trunk/EDIT4/ED4_visualizeSAI.cxx
- Timestamp:
- 14/08/09 16:29:27 (3 years ago)
- Files:
-
- 1 modified
-
trunk/EDIT4/ED4_visualizeSAI.cxx (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/EDIT4/ED4_visualizeSAI.cxx
r5942 r6141 2 2 /* */ 3 3 /* File : ED4_visualizeSAI.cxx */ 4 /* Purpose : To Visuali se the Sequence Associated Information (SAI) in the Editor */4 /* Purpose : To Visualize the Sequence Associated Information (SAI) in the Editor */ 5 5 /* Author : Yadhu Kumar (yadhu@mikro.biologie.tu-muenchen.de) */ 6 6 /* web site : http://www.arb-home.de/ */ … … 38 38 #define AWAR_SAI_AUTO_SELECT AWAR_SAI_CLR_TAB "auto_select" // 1 = auto select / 0 = manual select 39 39 #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" // ;-sep erated list of existing translation tables40 #define AWAR_SAI_CLR_TRANS_TAB_NAMES AWAR_SAI_CLR_TAB "clr_trans_tab_names" // ;-separated list of existing translation tables 41 41 #define AWAR_SAI_CLR_TRANS_TAB_REL AWAR_SAI_CLR_TAB "sai_relation/" // container to store trans tables for each SAI 42 42 #define AWAR_SAI_CLR_DEFAULTS_CREATED AWAR_SAI_CLR_TAB "defaults_created" // whether defaults have been created (create only once) … … 54 54 55 55 static bool clrDefinitionsChanged = false; 56 static bool inCallback = false; // used to avoid multiple refresh s56 static bool inCallback = false; // used to avoid multiple refreshes 57 57 static bool in_colorDefChanged_callback = false; // used to avoid colorDef correction 58 58 … … 179 179 char *colorDef = GBS_strclose(clrDefStr); 180 180 AW_awar *awar_def = awr->awar_string(getClrDefAwar(clrTabName), "", AW_ROOT_DEFAULT); 181 awar_def->write_string(colorDef); // writing clr def nition to clr trans table awar181 awar_def->write_string(colorDef); // writing clr definition to clr trans table awar 182 182 free(colorDef); 183 183 } … … 254 254 } 255 255 { 256 // store the selected tab elas default for this SAI:256 // store the selected table as default for this SAI: 257 257 char *saiName = awr->awar(AWAR_SAI_SELECT)->read_string(); 258 258 if (saiName[0]) { … … 354 354 static bool callback_active = false; 355 355 356 if (aw_root->awar(AWAR_SAI_AUTO_SELECT)->read_int()) { // auto select is a vtivated356 if (aw_root->awar(AWAR_SAI_AUTO_SELECT)->read_int()) { // auto select is activated 357 357 aw_root->awar(AWAR_SAI_NAME)->add_callback(autoselect_cb); 358 358 callback_active = true; … … 399 399 aw_root->awar_string(AWAR_SAI_CLR_TRANS_TAB_NAMES, "", aw_def); 400 400 401 for (int i=0;i<10;i++){ // initiali sing 10 color definition string AWARS401 for (int i=0;i<10;i++){ // initializing 10 color definition string AWARS 402 402 AW_awar *def_awar = aw_root->awar_string(getAwarName(i),"",aw_def); 403 403 def_awar->add_callback(colorDefChanged_callback, (AW_CL)i); … … 618 618 /* -------------------- Creating Windows and Display dialogs -------------------- */ 619 619 620 static AW_window *create_copyColorTranslationTable_window(AW_root *aw_root){ // creates copy color tran lation table window620 static AW_window *create_copyColorTranslationTable_window(AW_root *aw_root){ // creates copy color translation table window 621 621 AW_window_simple *aws = new AW_window_simple; 622 622 aws->init( aw_root, "COPY_CLR_TR_TABLE", "Copy Color Translation Table"); … … 640 640 } 641 641 642 static AW_window *create_createColorTranslationTable_window(AW_root *aw_root){ // creates create color tran lation table window642 static AW_window *create_createColorTranslationTable_window(AW_root *aw_root){ // creates create color translation table window 643 643 AW_window_simple *aws = new AW_window_simple; 644 644 aws->init( aw_root, "CREATE_CLR_TR_TABLE", "Create Color Translation Table"); … … 683 683 } 684 684 685 static AW_window *create_editColorTranslationTable_window(AW_root *aw_root){ // creates edit color tran lation table window685 static AW_window *create_editColorTranslationTable_window(AW_root *aw_root){ // creates edit color translation table window 686 686 static AW_window_simple *aws = 0; 687 687 if(aws) return (AW_window *)aws;
