X-Git-Url: https://git.hcoop.net/clinton/lisp-on-lines.git/blobdiff_plain/2cb4247de9700f350d146a65c4156d7959d0bb8d..d5e996b3f1e6f25053a3b13f661ab34697085c5c:/src/mewa/slot-presentations.lisp diff --git a/src/mewa/slot-presentations.lisp b/src/mewa/slot-presentations.lisp index 2ed5b32..82893a5 100644 --- a/src/mewa/slot-presentations.lisp +++ b/src/mewa/slot-presentations.lisp @@ -1,4 +1,4 @@ -(in-package :it.bese.ucw) +(in-package :mewa) (defun multiple-value-funcall->list (function &rest args) "The function to be called by m-v-bf" @@ -10,6 +10,26 @@ (multiple-value-funcall->list #',(car form) ,@(cdr form)) ,@body)) + +;;;; ** Textarea Slot Presentation + +(defslot-presentation text-slot-presentation () + ((rows :initarg :rows :accessor rows :initform 25) + (columns :initarg :columns :accessor columns :initform 40) + (escape-html-p :initarg :escape-html-p :accessor escape-html-p :initform nil)) + (:type-name text)) + +(defmethod present-slot ((slot text-slot-presentation) instance) + (if (editablep slot) + (>"))