summaryrefslogtreecommitdiff
path: root/src/PSEditModel.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2004-11-08 17:10:34 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2004-11-08 17:10:34 +0000
commitdd205b01f0eb3d82c0fd7cdbbae41a8441d4fe5e (patch)
tree51187f4faa738993deebf0653fd145f08478ebb6 /src/PSEditModel.cxx
parent5334e884380e6c1c79704f9403ab98b2f6fefd7f (diff)
add tab key and arrow key support
add tab key and arrow key support
Diffstat (limited to 'src/PSEditModel.cxx')
-rw-r--r--src/PSEditModel.cxx20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/PSEditModel.cxx b/src/PSEditModel.cxx
index 8811ac8..7a25a89 100644
--- a/src/PSEditModel.cxx
+++ b/src/PSEditModel.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: PSEditModel.cxx,v 1.9 2004/10/26 18:11:14 hofmann Exp $"
+// "$Id: PSEditModel.cxx,v 1.10 2004/11/08 18:10:34 hofmann Exp $"
//
// PSEditWidget routines.
//
@@ -111,6 +111,24 @@ int PSEditModel::set_cur_text(int x1, int y1, int p) {
return 1;
}
+int PSEditModel::next_text(int p) {
+ PSEditText *t;
+
+ if (p < 0 || p >= max_pages) {
+ return 1;
+ }
+
+ if (cur_text) {
+ cur_text = cur_text->get_next();
+ return 0;
+ } else if (text[p]) {
+ cur_text = text[p];
+ return 0;
+ } else {
+ return 1;
+ }
+}
+
int PSEditModel::is_cur_text(PSEditText *t) {
return (t && t == cur_text);
}