Changeset 6141 for trunk/EDIT4/ED4_ProteinViewer.cxx
- Timestamp:
- 14/08/09 16:29:27 (3 years ago)
- Files:
-
- 1 modified
-
trunk/EDIT4/ED4_ProteinViewer.cxx (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/EDIT4/ED4_ProteinViewer.cxx
r6100 r6141 294 294 if (speciesManager && !speciesManager->flag.is_consensus && !speciesManager->flag.is_SAI) { 295 295 // we are in the sequence terminal section of a species 296 // walk through all the corresponding AA sequence terminals for the spe ecies and296 // walk through all the corresponding AA sequence terminals for the species and 297 297 // hide or unhide the terminals based on the display options set by the user 298 298 for(int i=0; i<PV_AA_Terminals4Species; i++) { … … 353 353 if (speciesManager && !speciesManager->flag.is_consensus && !speciesManager->flag.is_SAI) { 354 354 // we are in the sequence terminal section of a species 355 // walk through all the corresponding AA sequence terminals for the spe ecies and355 // walk through all the corresponding AA sequence terminals for the species and 356 356 // hide or unhide the terminals based on the display options set by the user 357 357 ED4_species_name_terminal *speciesNameTerm = speciesManager->search_spec_child_rek(ED4_L_SPECIES_NAME)->to_species_name_terminal(); … … 704 704 { 705 705 // we are in the sequence terminal section of a species 706 // walk through all the corresponding AA sequence terminals for the spe ecies and706 // walk through all the corresponding AA sequence terminals for the species and 707 707 // hide or unhide the terminals based on the display options set by the user 708 708 for(int i=0; i<PV_AA_Terminals4Species; i++) … … 716 716 int aaStartPos = int(aaSeqTerminal->GET_aaStartPos()); 717 717 int aaStrandType = int(aaSeqTerminal->GET_aaStrandType()); 718 // retranslate the genesequence and store it to the AA_sequ nce_terminal718 // retranslate the genesequence and store it to the AA_sequence_terminal 719 719 TranslateGeneToAminoAcidSequence(root, aaSeqTerminal, speciesName, aaStartPos-1, aaStrandType); 720 720 } … … 767 767 int aaStartPos = int(aaSeqTerminal->GET_aaStartPos()); 768 768 int aaStrandType = int(aaSeqTerminal->GET_aaStrandType()); 769 // retranslate the genesequence and store it to the AA_sequ nce_terminal769 // retranslate the genesequence and store it to the AA_sequence_terminal 770 770 TranslateGeneToAminoAcidSequence(ED4_ROOT->aw_root, aaSeqTerminal, speciesName, aaStartPos-1, aaStrandType); 771 771 } … … 795 795 ED4_sequence_info_terminal *new_SeqInfoTerminal = 0; 796 796 if (i<FORWARD_STRANDS) 797 sprintf(namebuffer, "F%d Prot ienInfo_Term%ld.%d",i+1,ED4_counter, count++);797 sprintf(namebuffer, "F%d ProteinInfo_Term%ld.%d",i+1,ED4_counter, count++); 798 798 else if ((i-FORWARD_STRANDS)<COMPLEMENTARY_STRANDS) 799 sprintf(namebuffer, "C%dProt ienInfo_Term%ld.%d",(i-FORWARD_STRANDS)+1,ED4_counter, count++);799 sprintf(namebuffer, "C%dProteinInfo_Term%ld.%d",(i-FORWARD_STRANDS)+1,ED4_counter, count++); 800 800 else 801 sprintf(namebuffer, "DBProt ienInfo_Term%ld.%d",ED4_counter, count++);801 sprintf(namebuffer, "DBProteinInfo_Term%ld.%d",ED4_counter, count++); 802 802 new_SeqInfoTerminal = new ED4_sequence_info_terminal(namebuffer, 0, 0, SEQUENCEINFOSIZE, TERMINALHEIGHT, new_SeqManager ); 803 803 new_SeqInfoTerminal->set_properties( (ED4_properties) (ED4_P_SELECTABLE | ED4_P_DRAGABLE | ED4_P_IS_HANDLE) ); … … 862 862 { 863 863 ED4_terminal *terminal = spNameTerm->corresponding_sequence_terminal(); 864 // $$$ If next terminal is species_name terminal => corresponding AA seq terminal doesn t exist ==> create one $$$864 // $$$ If next terminal is species_name terminal => corresponding AA seq terminal doesn't exist ==> create one $$$ 865 865 terminal = terminal->get_next_terminal(); 866 866 if (terminal->is_species_name_terminal() || terminal->is_spacer_terminal()) … … 928 928 if (!gTerminalsCreated) { 929 929 // AWAR_PROTEIN_TYPE is not initialized (if called from ED4_main before creating proteinViewer window) 930 // so, initi lize it here930 // so, initialize it here 931 931 root->awar_int(AWAR_PROTEIN_TYPE, AWAR_PROTEIN_TYPE_bacterial_code_index, GLOBAL_gb_main); 932 932 PV_CreateAllTerminals(root);
