;;;; ;;;; m e t h o d - e d i t o r . s t k l o s -- Editor for STklos methods and gf ;;;; ;;;; Copyright © 1998-1999 Erick Gallesio - I3S-CNRS/ESSI ;;;; ;;;; Permission to use, copy, modify, distribute,and license this ;;;; software and its documentation for any purpose is hereby granted, ;;;; provided that existing copyright notices are retained in all ;;;; copies and that this notice is included verbatim in any ;;;; distributions. No written agreement, license, or royalty fee is ;;;; required for any of the authorized uses. ;;;; This software is provided ``AS IS'' without express or implied ;;;; warranty. ;;;; ;;;; Author: Erick Gallesio [eg@unice.fr] ;;;; Creation date: 24-Sep-1998 16:32 ;;;; Last file update: 3-Sep-1999 19:53 (eg) (require "Tk-classes") ;;; ;;; Utilities ;;; (define (method->list m) (let ((gf (method-generic-function m))) (if gf (let ((proc (uncode (procedure-body (method-procedure m)))) (spec (map* class-name (method-specializers m)))) `(define-method ,(generic-function-name gf) ,(map* list (cdadr proc) spec) ,@(cddr proc))) ;; Method with no associated method '()))) ;============================================================================= ; ; m e t h o d - e d i t o r ; ;============================================================================= (define-method method-editor ((m ) parent) (define (make-buttons parent edit env) (let* ((f (make :parent parent :border-width 2 :relief "ridge")) (e (make