Changeset 8296
- Timestamp:
- 10/12/11 14:50:42 (6 months ago)
- Location:
- branches/e4fix/EDIT4
- Files:
-
- 3 modified
-
ED4_cursor.cxx (modified) (1 diff)
-
ED4_window.cxx (modified) (3 diffs)
-
ed4_class.hxx (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/e4fix/EDIT4/ED4_cursor.cxx
r8295 r8296 1337 1337 } 1338 1338 1339 target_terminal->scroll_into_view( current_ed4w());1339 target_terminal->scroll_into_view(window()); 1340 1340 1341 1341 AW_pos termw_x, termw_y; -
branches/e4fix/EDIT4/ED4_window.cxx
r8295 r8296 187 187 scrolled_rect.link(x_link, y_link, width_link, height_link); 188 188 189 const AW_screen_area& area_size = current_device()->get_area_size();189 const AW_screen_area& area_size = get_device()->get_area_size(); 190 190 191 191 AW::Rectangle rect = scrolled_rect.get_world_rect(); … … 305 305 AW_pos topbottom_y = toptop_y + coords.top_area_height - 1; 306 306 307 current_device()->push_clip_scale();307 get_device()->push_clip_scale(); 308 308 309 309 // main area … … 326 326 } 327 327 328 current_device()->pop_clip_scale();328 get_device()->pop_clip_scale(); 329 329 330 330 return (ED4_R_OK); -
branches/e4fix/EDIT4/ed4_class.hxx
r8295 r8296 604 604 typedef bool (*ED4_TerminalTest)(ED4_base *terminal, int seqPos); 605 605 606 class ED4_cursor : virtual Noncopyable { 606 class ED4_WinContextFree { // denies usage of the following functions in classes derived from this 607 AW_device *current_device(); 608 ED4_window *current_ed4w(); 609 AW_window *current_aww(); 610 ED4_cursor& current_cursor(); 611 public: 612 void avoid_warning() {} 613 }; 614 615 class ED4_cursor : virtual Noncopyable, virtual ED4_WinContextFree { 607 616 ED4_window *win; 608 617 ED4_index cursor_abs_x; // absolute (to terminal) x-position of cursor (absolute world coordinate of edit window) … … 672 681 }; 673 682 674 class ED4_window : public ED4_foldable { // derived from Noncopyable683 class ED4_window : public ED4_foldable, virtual ED4_WinContextFree { // derived from Noncopyable 675 684 ED4_window(const ED4_window&); // copy-constructor not allowed 676 685 public: … … 1416 1425 }; 1417 1426 1418 1427 // accessors for current context (see also ED4_WinContextFree) 1419 1428 inline AW_device *current_device() { return ED4_WinContext::get_current_context().get_device(); } 1420 1429 inline ED4_window *current_ed4w() { return ED4_WinContext::get_current_context().get_ed4w(); }
