Now has Undo/Redo support.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6734 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-02-24 16:56:47 +00:00
parent 66fcb84e31
commit 4886c973ab

View File

@ -167,6 +167,14 @@ DataView::MessageReceived(BMessage *message)
case B_PASTE:
break;
case B_UNDO:
fEditor.Undo();
break;
case B_REDO:
fEditor.Redo();
break;
default:
BView::MessageReceived(message);
}
@ -228,7 +236,6 @@ DataView::Draw(BRect updateRect)
location.y += fFontHeight;
}
// ToDo: clear unused space!
DrawSelection();
}