Changeset 6141 for trunk/EDIT4/ED4_no_class.cxx
- Timestamp:
- 14/08/09 16:29:27 (3 years ago)
- Files:
-
- 1 modified
-
trunk/EDIT4/ED4_no_class.cxx (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/EDIT4/ED4_no_class.cxx
r6124 r6141 302 302 303 303 if (terminal->is_sequence_terminal()) { 304 work_info->mode = awar_edit_mod us;304 work_info->mode = awar_edit_mode; 305 305 work_info->direction = awar_edit_direction; 306 306 work_info->is_sequence = 1; … … 311 311 312 312 if (terminal->is_pure_text_terminal()) { 313 work_info->mode = awar_edit_mod us; // AD_INSERT; // why is AD_INSERT forced here ?313 work_info->mode = awar_edit_mode; // AD_INSERT; // why is AD_INSERT forced here ? 314 314 } 315 315 else if (terminal->is_columnStat_terminal()) { … … 511 511 - (rect.r - x); // minus width of visible scroll-area (== relative width of horizontal scrollbar) 512 512 513 if (max_xpos<0) max_xpos = 0; // happens when window-content is smaller th en window (e.g. if ARB_EDIT4 is not filled)513 if (max_xpos<0) max_xpos = 0; // happens when window-content is smaller than window (e.g. if ARB_EDIT4 is not filled) 514 514 return int(max_xpos+0.5); 515 515 } … … 526 526 - (rect.b - y); // minus width of visible scroll-area (== relative width of horizontal scrollbar) 527 527 528 if (max_ypos<0) max_ypos = 0; // happens when window-content is smaller th en window (e.g. if ARB_EDIT4 is not filled)528 if (max_ypos<0) max_ypos = 0; // happens when window-content is smaller than window (e.g. if ARB_EDIT4 is not filled) 529 529 return int(max_ypos+0.5); 530 530 } … … 542 542 int old_slider_pos = win->slider_pos_vertical; 543 543 544 { // correct slider_pos if nec cessary544 { // correct slider_pos if necessary 545 545 int max_slider_ypos = get_max_slider_ypos(); 546 546 … … 573 573 int old_slider_pos = win->slider_pos_horizontal; 574 574 575 { // correct slider_pos if nec cessary575 { // correct slider_pos if necessary 576 576 int max_slider_xpos = get_max_slider_xpos(); 577 577 … … 606 606 int old_vslider_pos = win->slider_pos_vertical; 607 607 608 { // correct slider_pos if nec cessary608 { // correct slider_pos if necessary 609 609 int max_slider_xpos = get_max_slider_xpos(); 610 610 int max_slider_ypos = get_max_slider_ypos(); … … 896 896 if (mainman) { // avoids a crash durin startup 897 897 if (mainman->update_info.delete_requested) { 898 mainman->delete_requested_child s();898 mainman->delete_requested_children(); 899 899 } 900 900 … … 1366 1366 } 1367 1367 1368 static long ED4_get_edit_mod us(AW_root *root)1368 static long ED4_get_edit_mode(AW_root *root) 1369 1369 { 1370 1370 if (!root->awar(AWAR_EDIT_MODE)->read_int()) { … … 1376 1376 void ed4_changesecurity(AW_root *root, AW_CL /*cd1*/) 1377 1377 { 1378 long mode = ED4_get_edit_mod us(root);1378 long mode = ED4_get_edit_mode(root); 1379 1379 long level; 1380 1380 const char *awar_name = 0; … … 1395 1395 void ed4_change_edit_mode(AW_root *root, AW_CL cd1) 1396 1396 { 1397 awar_edit_mod us = (ad_edit_modus)ED4_get_edit_modus(root);1397 awar_edit_mode = (ad_edit_mode)ED4_get_edit_mode(root); 1398 1398 ed4_changesecurity(root, cd1); 1399 1399 } … … 1420 1420 ED4_window *new_window = 0; 1421 1421 1422 if (ED4_ROOT->generate_window( &device, &new_window) == ED4_R_BREAK) // don't open more th en five windows1422 if (ED4_ROOT->generate_window( &device, &new_window) == ED4_R_BREAK) // don't open more than five windows 1423 1423 return; 1424 1424
