Changeset 8276
- Timestamp:
- 03/12/11 12:40:39 (6 months ago)
- Location:
- branches/e4fix/EDIT4
- Files:
-
- 7 modified
-
ED4_base.cxx (modified) (3 diffs)
-
ED4_cursor.cxx (modified) (2 diffs)
-
ED4_no_class.cxx (modified) (3 diffs)
-
ED4_root.cxx (modified) (4 diffs)
-
ED4_terminal.cxx (modified) (2 diffs)
-
EDB_root_bact.cxx (modified) (5 diffs)
-
ed4_class.hxx (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/e4fix/EDIT4/ED4_base.cxx
r8275 r8276 116 116 void ED4_terminal::changed_by_database() 117 117 { 118 if (GB_read_clock(GLOBAL_gb_main) > actual_timestamp) { // only if timer_cb occurred after last change by EDIT4118 if (GB_read_clock(GLOBAL_gb_main) > curr_timestamp) { // only if timer_cb occurred after last change by EDIT4 119 119 120 120 // test if alignment length has changed: … … 1354 1354 } 1355 1355 1356 int ED4_base:: actualTimestamp = 1;1356 int ED4_base::currTimestamp = 1; 1357 1357 void ED4_base::update_world_coords_cache() { 1358 1358 if (parent) { … … 1365 1365 lastXpos += extension.position[X_POS]; 1366 1366 lastYpos += extension.position[Y_POS]; 1367 timestamp = actualTimestamp;1367 timestamp = currTimestamp; 1368 1368 } 1369 1369 -
branches/e4fix/EDIT4/ED4_cursor.cxx
r8275 r8276 676 676 } 677 677 678 void ED4_get_and_jump_to_ actual(AW_window *aww, AW_CL) { // @@@ fix name678 void ED4_get_and_jump_to_current(AW_window *aww, AW_CL) { 679 679 ED4_LocalWinContext uses(aww); 680 680 char *name = GBT_read_string(GLOBAL_gb_main, AWAR_SPECIES_NAME); … … 688 688 } 689 689 690 void ED4_get_and_jump_to_ actual_from_menu(AW_window *aw, AW_CL cl, AW_CL) {691 ED4_get_and_jump_to_ actual(aw, cl);690 void ED4_get_and_jump_to_current_from_menu(AW_window *aw, AW_CL cl, AW_CL) { 691 ED4_get_and_jump_to_current(aw, cl); 692 692 ED4_ROOT->refresh_all_windows(0); 693 693 } -
branches/e4fix/EDIT4/ED4_no_class.cxx
r8275 r8276 2077 2077 } 2078 2078 else { // different field contents 2079 int actualStat;2080 for ( actualStat=1; actualStat<nextStat; actualStat++) {2079 int currStat; 2080 for (currStat=1; currStat<nextStat; currStat++) { 2081 2081 int names_len = 1; // open bracket 2082 2082 SpeciesMergeList *sl2 = sml; … … 2085 2085 2086 2086 while (sl2) { 2087 if (fieldStat[i]== actualStat) {2087 if (fieldStat[i]==currStat) { 2088 2088 names_len += strlen(sl2->species_name)+1; 2089 2089 if (!content) { … … 2106 2106 int first = 1; 2107 2107 while (sl2) { 2108 if (fieldStat[i]== actualStat) {2108 if (fieldStat[i]==currStat) { 2109 2109 add += sprintf(add, "%c%s", first ? '{' : ';', sl2->species_name); 2110 2110 first = 0; -
branches/e4fix/EDIT4/ED4_root.cxx
r8275 r8276 909 909 } 910 910 911 static ED4_list_elem * actual_aligner_elem = 0;911 static ED4_list_elem *curr_aligner_elem = 0; 912 912 static GBDATA *get_next_selected_species() 913 913 { 914 if (! actual_aligner_elem) return 0;915 916 ED4_selection_entry *selectionEntry = (ED4_selection_entry*) actual_aligner_elem->elem();914 if (!curr_aligner_elem) return 0; 915 916 ED4_selection_entry *selectionEntry = (ED4_selection_entry*)curr_aligner_elem->elem(); 917 917 ED4_species_manager *specMan = selectionEntry->object->get_parent(ED4_L_SPECIES)->to_species_manager(); 918 918 919 actual_aligner_elem = actual_aligner_elem->next();919 curr_aligner_elem = curr_aligner_elem->next(); 920 920 return specMan->get_species_pointer(); 921 921 } … … 929 929 930 930 if (selected) { 931 actual_aligner_elem = ED4_ROOT->selected_objects.first();931 curr_aligner_elem = ED4_ROOT->selected_objects.first(); 932 932 } 933 933 else { 934 actual_aligner_elem = 0;934 curr_aligner_elem = 0; 935 935 } 936 936 … … 1470 1470 1471 1471 awmm->create_menu("Edit", "E", AWM_ALL); 1472 awmm->insert_menu_topic("refresh", "Refresh [Ctrl-L]", "f", 0, AWM_ALL, (AW_CB)ED4_refresh_window, 0, 0);1473 awmm->insert_menu_topic("load_ actual", "Load current species [GET]", "G", 0, AWM_ALL, ED4_get_and_jump_to_actual_from_menu, 0, 0);1474 awmm->insert_menu_topic("load_marked", "Load marked species", "m", 0, AWM_ALL, ED4_get_marked_from_menu, 0, 0);1472 awmm->insert_menu_topic("refresh", "Refresh [Ctrl-L]", "f", 0, AWM_ALL, (AW_CB)ED4_refresh_window, 0, 0); 1473 awmm->insert_menu_topic("load_current", "Load current species [GET]", "G", 0, AWM_ALL, ED4_get_and_jump_to_current_from_menu, 0, 0); 1474 awmm->insert_menu_topic("load_marked", "Load marked species", "m", 0, AWM_ALL, ED4_get_marked_from_menu, 0, 0); 1475 1475 SEP________________________SEP; 1476 1476 awmm->insert_menu_topic("refresh_ecoli", "Reload Ecoli sequence", "E", "ecoliref.hlp", AWM_ALL, (AW_CB)ED4_reload_ecoli_cb, 0, 0); … … 1755 1755 1756 1756 awmm->at("get"); 1757 awmm->callback(ED4_get_and_jump_to_ actual, 0);1757 awmm->callback(ED4_get_and_jump_to_current, 0); 1758 1758 awmm->help_text("e4.hlp"); 1759 1759 awmm->create_button("GET", "Get"); -
branches/e4fix/EDIT4/ED4_terminal.cxx
r8274 r8276 244 244 if (!err && dynamic_prop&ED4_P_CONSENSUS_RELEVANT) { 245 245 if (old_seq) { 246 actual_timestamp = GB_read_clock(GLOBAL_gb_main);246 curr_timestamp = GB_read_clock(GLOBAL_gb_main); 247 247 248 248 get_parent(ED4_L_MULTI_SPECIES)->to_multi_species_manager() … … 792 792 memset((char*)&tflag, 0, sizeof(tflag)); 793 793 selection_info = 0; 794 actual_timestamp = 0;794 curr_timestamp = 0; 795 795 } 796 796 -
branches/e4fix/EDIT4/EDB_root_bact.cxx
r8275 r8276 50 50 char *str, 51 51 ED4_index *y, 52 ED4_index actual_local_position,52 ED4_index curr_local_position, 53 53 ED4_index *length_of_terminals, 54 54 int group_depth, … … 101 101 102 102 terminal_height = TERMINALHEIGHT; 103 local_count_position = actual_local_position;103 local_count_position = curr_local_position; 104 104 105 105 sprintf(namebuffer, "Species_Manager.%ld.%d", ED4_counter, count_too); … … 144 144 145 145 if (!(multi_species_manager->flag.hidden)) { 146 *length_of_terminals = local_count_position- actual_local_position;146 *length_of_terminals = local_count_position-curr_local_position; 147 147 *y += *length_of_terminals; // needed for global coordinates of manager 148 148 } … … 326 326 int *index, 327 327 ED4_index *y, 328 ED4_index actual_local_position,328 ED4_index curr_local_position, 329 329 ED4_index *length_of_terminals, // height of terminals is meant 330 330 int group_depth, … … 342 342 343 343 ship = (char*)GB_calloc(SHIPSIZE, sizeof(*ship)); 344 local_count_position = actual_local_position;344 local_count_position = curr_local_position; 345 345 346 346 do { -
branches/e4fix/EDIT4/ed4_class.hxx
r8275 r8276 173 173 int *index, 174 174 ED4_index *y, 175 ED4_index actual_local_position,175 ED4_index curr_local_position, 176 176 ED4_index *length_of_terminals, 177 177 int group_depth, … … 183 183 char *string, 184 184 ED4_index *y, 185 ED4_index actual_local_position,185 ED4_index curr_local_position, 186 186 ED4_index *length_of_terminals, 187 187 int group_depth, … … 981 981 // cache world coordinates: 982 982 983 static int actualTimestamp;983 static int currTimestamp; 984 984 AW_pos lastXpos; 985 985 AW_pos lastYpos; … … 1048 1048 1049 1049 void calc_world_coords(AW_pos *x, AW_pos *y) { 1050 bool cache_up_to_date = timestamp == actualTimestamp;1050 bool cache_up_to_date = timestamp == currTimestamp; 1051 1051 if (!cache_up_to_date) { 1052 1052 update_world_coords_cache(); … … 1057 1057 1058 1058 static void touch_world_cache() { 1059 actualTimestamp++;1059 currTimestamp++; 1060 1060 } 1061 1061 … … 1299 1299 } tflag; 1300 1300 ED4_selection_entry *selection_info; // Info about i.e. Position 1301 long actual_timestamp;1301 long curr_timestamp; 1302 1302 1303 1303 DECLARE_DUMP_FOR_BASECLASS(ED4_terminal,ED4_base); … … 2169 2169 2170 2170 void ED4_jump_to_current_species (AW_window *, AW_CL); 2171 void ED4_get_and_jump_to_ actual(AW_window *, AW_CL);2172 void ED4_get_and_jump_to_ actual_from_menu (AW_window *aw, AW_CL cl, AW_CL);2171 void ED4_get_and_jump_to_current (AW_window *, AW_CL); 2172 void ED4_get_and_jump_to_current_from_menu (AW_window *aw, AW_CL cl, AW_CL); 2173 2173 void ED4_get_and_jump_to_species (GB_CSTR species_name); 2174 2174 void ED4_get_marked_from_menu (AW_window *, AW_CL, AW_CL);
