;;;; ;;;; T k - m e t a . s t k -- Metaclasses definitions ;;;; ;;;; Copyright © 1993-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-Feb-1994 15:08 ;;;; Last file update: 3-Sep-1999 20:11 (eg) ;;;; ;;;; ;;;; Compatibility: ;;;; - the :pseudo allocation is now replaced by :tk-virtual (Rob DeLine ;;;; proposition). However both name are accepted. Avoid to use :pseudo ;;;; since it will disappear in the future. ;;;; ;;;; - the :special allocation is now replaced by :propagated (Rob DeLine ;;;; proposition). However both name are accepted. Avoid to use :special ;;;; since it will disappear in the future. ;;;; ;;;; - the :propagate option for propagated slots is now replaced by ;;;; :propagate-to. Avoid to use :propagate since it will disappear in ;;;; the future. (require "stklos") ;;;; ;;;; Stuff for declaring the new module STklos+Tk and import it in STk ;;;; Note that the module Tk, is also defined here. This is useless, except ;;;; when making images (i.e. probably the -no-window option has been used, ;;;; avoiding the Tk initialization, and hence the Tk module definition) (define-module Tk) ; See comment above (define-module STklos+Tk (import STklos Tk)) ; Define module STklos+Tk (with-module STk (import STklos+Tk)) ; Import STklos+Tk in STk (select-module STklos+Tk) ; Rest of this file belongs ; to STklos+Tk module ;;;; ;;;; Exports ;;;; (export ;; Metaclases exported by this file ;; generic functions exported by this file compute-tk-virtual-get-n-set) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; ;;;; class ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; Define Tk slots getters and setters. In fact this metaclass permits ;; a direct mapping of STklos slots to the Tk-library widget options. ;; For instance, a