diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2004-11-10 17:32:59 +0000 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2004-11-10 17:32:59 +0000 |
commit | e20e866ffce0d68c9118bdb47df5fe1c8b9cfd48 (patch) | |
tree | dc0b423d502cfceca2e3c1a66338aec077534d97 /src/PSEditor.cxx | |
parent | 117b0e0eef260bc4dd9c6d3c9a3ea51d3c4fa342 (diff) |
use PostScript coordinates internally
use PostScript coordinates internally
Diffstat (limited to 'src/PSEditor.cxx')
-rw-r--r-- | src/PSEditor.cxx | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/src/PSEditor.cxx b/src/PSEditor.cxx index 6e1c644..276f4ff 100644 --- a/src/PSEditor.cxx +++ b/src/PSEditor.cxx @@ -1,5 +1,5 @@ // -// "$Id: PSEditor.cxx,v 1.21 2004/11/08 19:36:14 hofmann Exp $" +// "$Id: PSEditor.cxx,v 1.22 2004/11/10 18:32:59 hofmann Exp $" // // PSEditor routines. // @@ -73,33 +73,13 @@ int PSEditor::handle(int event) { if (key == FL_BackSpace) { rm_char(); } else if (key == FL_Left) { - PSEditText *t = model->get_cur_text(); - if (t) { - int x = t->get_x(); - int y = t->get_y(); - move(x - 1, y); - } + rel_move(-1, 0); } else if (key == FL_Right) { - PSEditText *t = model->get_cur_text(); - if (t) { - int x = t->get_x(); - int y = t->get_y(); - move(x + 1, y); - } + rel_move(1, 0); } else if (key == FL_Up) { - PSEditText *t = model->get_cur_text(); - if (t) { - int x = t->get_x(); - int y = t->get_y(); - move(x, y - 1); - } + rel_move(0, 1); } else if (key == FL_Down) { - PSEditText *t = model->get_cur_text(); - if (t) { - int x = t->get_x(); - int y = t->get_y(); - move(x, y + 1); - } + rel_move(0, -1); } else if (key == FL_Tab) { next_text(); } else if (Fl::compose(del)) { |