Changeset 8264
- Timestamp:
- 30/11/11 12:13:13 (6 months ago)
- Location:
- trunk/EDIT4
- Files:
-
- 5 modified
-
ED4_block.cxx (modified) (5 diffs)
-
ED4_manager.cxx (modified) (3 diffs)
-
ED4_no_class.cxx (modified) (1 diff)
-
ED4_terminal.cxx (modified) (1 diff)
-
ed4_class.hxx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/EDIT4/ED4_block.cxx
r8133 r8264 170 170 171 171 void ED4_with_whole_block(ED4_blockoperation block_operation, int repeat) { 172 GB_ERROR error = GB_begin_transaction(GLOBAL_gb_main); 173 ED4_sequence_terminal *err_term = 0; 174 ED4_cursor *cursor = &ED4_ROOT->get_ed4w()->cursor; 175 int base_pos = (cursor && cursor->owner_of_cursor != 0) ? cursor->get_base_position() : -1; 172 GB_ERROR error = GB_begin_transaction(GLOBAL_gb_main); 173 ED4_cursor *cursor = &ED4_ROOT->get_ed4w()->cursor; 174 int base_pos = (cursor && cursor->owner_of_cursor != 0) ? cursor->get_base_position() : -1; 176 175 177 176 switch (blocktype) { … … 180 179 break; 181 180 } 182 case ED4_BT_LINEBLOCK: { 181 case ED4_BT_LINEBLOCK: { // @@@ dry 183 182 ED4_list_elem *listElem = ED4_ROOT->selected_objects.first(); 184 183 while (listElem && !error) { … … 186 185 ED4_sequence_terminal *seqTerm = selectionEntry->object->get_parent(ED4_L_SPECIES)->search_spec_child_rek(ED4_L_SEQUENCE_STRING)->to_sequence_terminal(); 187 186 188 error = perform_block_operation_on_whole_sequence(block_operation, seqTerm, repeat); 189 if (error) err_term = seqTerm; 190 187 error = perform_block_operation_on_whole_sequence(block_operation, seqTerm, repeat); 191 188 listElem = listElem->next(); 192 189 } … … 194 191 } 195 192 case ED4_BT_MODIFIED_COLUMNBLOCK: 196 case ED4_BT_COLUMNBLOCK: { 193 case ED4_BT_COLUMNBLOCK: { // @@@ vs here 197 194 ED4_list_elem *listElem = ED4_ROOT->selected_objects.first(); 198 195 while (listElem && !error) { … … 200 197 ED4_sequence_terminal *seqTerm = selectionEntry->object->get_parent(ED4_L_SPECIES)->search_spec_child_rek(ED4_L_SEQUENCE_STRING)->to_sequence_terminal(); 201 198 202 error = perform_block_operation_on_part_of_sequence(block_operation, seqTerm, repeat); 203 if (error) err_term = seqTerm; 204 199 error = perform_block_operation_on_part_of_sequence(block_operation, seqTerm, repeat); 205 200 listElem = listElem->next(); 206 201 } -
trunk/EDIT4/ED4_manager.cxx
r8133 r8264 507 507 ED4_list_elem *list_elem; 508 508 bool i_am_consensus = 0; 509 ED4_AREA_LEVEL level;510 509 ED4_base *found_member = NULL; 511 510 ED4_extension loc; … … 551 550 552 551 553 old_parent = object->parent; 554 ED4_multi_species_manager *multi_species_manager = NULL; 555 556 level = get_area_level(&multi_species_manager); 552 old_parent = object->parent; 557 553 558 554 #if defined(LIMIT_TOP_AREA_SPACE) … … 945 941 946 942 ED4_returncode ED4_main_manager::resize_requested_by_parent() { 947 ED4_returncode result = ED4_R_OK;948 949 943 if (update_info.resize) { 950 result =ED4_manager::resize_requested_by_parent();944 ED4_manager::resize_requested_by_parent(); 951 945 ED4_ROOT->get_ed4w()->update_scrolled_rectangle(); 952 946 } -
trunk/EDIT4/ED4_no_class.cxx
r7812 r8264 166 166 167 167 if (object->is_terminal()) { 168 GB_TYPES gb_type;169 170 if (object->get_species_pointer()) {171 gb_type = GB_read_type(object->get_species_pointer());172 }173 else {174 gb_type = GB_NONE;175 }176 177 168 ED4_base *species_manager = object->get_parent(ED4_L_SPECIES); 178 169 -
trunk/EDIT4/ED4_terminal.cxx
r8133 r8264 390 390 ED4_returncode ED4_terminal::draw_drag_box(AW_pos x, AW_pos y, GB_CSTR text, int cursor_y) // draws drag box of object at location abs_x, abs_y 391 391 { 392 ED4_index i; 393 AW_pos width, height, drag_x, drag_y; 394 AW_pos drag_line_x0[3], drag_line_y0[3]; 395 AW_pos drag_line_x1[3], drag_line_y1[3]; 396 ED4_base *drag_target = NULL; 397 AW_pos target_x, target_y; 398 ED4_extension location; 399 400 width = extension.size[WIDTH] - 1; 401 height = extension.size[HEIGHT] - 1; 402 403 if (cursor_y!=-1) 404 { 392 ED4_index i; 393 AW_pos drag_x, drag_y; 394 AW_pos drag_line_x0[3], drag_line_y0[3]; 395 AW_pos drag_line_x1[3], drag_line_y1[3]; 396 ED4_base *drag_target = NULL; 397 AW_pos target_x, target_y; 398 ED4_extension location; 399 400 if (cursor_y!=-1) { 405 401 ED4_device_manager *device_manager = ED4_ROOT->main_manager->search_spec_child_rek(ED4_L_DEVICE)->to_device_manager(); 406 402 drag_x = 0; -
trunk/EDIT4/ed4_class.hxx
r8133 r8264 12 12 #endif 13 13 14 // #define LIMIT_TOP_AREA_SPACE // // if defined, top area is size-limited 14 // #define LIMIT_TOP_AREA_SPACE // // if defined, top area is size-limited // @@@ remove this 15 15 #ifdef LIMIT_TOP_AREA_SPACE 16 16 #define MAX_TOP_AREA_SIZE 10 // size limit for top-area
