Commit of 3.99.1 version
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: complex.stklos 1.1 Thu, 22 Jan 1998 16:04:46 +0100 eg $
|
||||
;;;; $Id: complex.stklos 1.1 Thu, 22 Jan 1998 15:04:46 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 20-Jan-1998 17:28
|
||||
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Makefile for STklos
|
||||
#
|
||||
# Copyright © 1993-1996 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
|
||||
# Copyright © 1993-1998 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
|
||||
#
|
||||
# Permission to use, copy, and/or distribute this software and its
|
||||
# documentation for any purpose and without fee is hereby granted, provided
|
||||
@@ -13,7 +13,7 @@
|
||||
#
|
||||
# Author: Erick Gallesio [eg@unice.fr]
|
||||
# Creation date: 29-Jun-1993 13:58
|
||||
# Last file update: 15-Nov-1996 23:46
|
||||
# Last file update: 30-Apr-1998 16:48
|
||||
#
|
||||
|
||||
include ../config.make
|
||||
@@ -25,9 +25,9 @@ stklos:
|
||||
|
||||
install:
|
||||
-if [ ! -d $(LIB_STKLOS) ] ; then mkdir -p $(LIB_STKLOS); fi
|
||||
$(CP) *.stk $(LIB_STKLOS)
|
||||
$(CP) Tk/*.stklos Tk/Composite/*.stklos Tk/Widget/*.stklos $(LIB_STKLOS)
|
||||
chmod 0644 $(LIB_STKLOS)/*
|
||||
$(CP) *.stk *.stklos $(LIB_STKLOS)
|
||||
$(CP) Tk/*.stklos Tk/Composite/*.stklos $(LIB_STKLOS)
|
||||
chmod 0644 $(LIB_STKLOS)/*.stklos $(LIB_STKLOS)/*.stk
|
||||
|
||||
install.libs:
|
||||
|
||||
|
||||
+15
-2
@@ -11,11 +11,11 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Basics.stklos 1.10 Sun, 22 Mar 1998 17:16:09 +0100 eg $
|
||||
;;;; $Id: Basics.stklos 1.11 Mon, 27 Apr 1998 13:39:00 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 30-Mar-1993 15:39
|
||||
;;;; Last file update: 22-Mar-1998 11:46
|
||||
;;;; Last file update: 27-Apr-1998 12:30
|
||||
|
||||
(require "Tk-meta")
|
||||
|
||||
@@ -54,6 +54,18 @@
|
||||
(error "Value of the slot ``~S'' in ~S cannot be changed." slot object))
|
||||
|
||||
|
||||
;;
|
||||
;; Initialize the virtual "value" slot independently of the state of the object
|
||||
;; (Tk forbid to give a value to a "disabled" object)
|
||||
;;
|
||||
(define (initialize-value-slot obj value)
|
||||
(let ((s (slot-ref obj 'state)))
|
||||
(unless (equal? s "normal")
|
||||
(slot-set! obj 'state "normal")
|
||||
(slot-set! obj 'value value)
|
||||
(slot-set! obj 'state s))))
|
||||
|
||||
|
||||
;=============================================================================
|
||||
;
|
||||
; <Tk-object>
|
||||
@@ -447,6 +459,7 @@
|
||||
:allocation :tk-virtual))
|
||||
:metaclass <Tk-metaclass>)
|
||||
|
||||
|
||||
;=============================================================================
|
||||
;
|
||||
; <Destroyed-object>
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Button.stklos 1.3 Fri, 23 Jan 1998 18:46:19 +0100 eg $
|
||||
;;;; $Id: Button.stklos 1.4 Mon, 27 Apr 1998 13:39:00 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 30-Mar-1993 15:39
|
||||
;;;; Last file update: 23-Jan-1998 11:41
|
||||
;;;; Last file update: 27-Apr-1998 11:20
|
||||
|
||||
|
||||
(require "Basics")
|
||||
@@ -129,10 +129,12 @@
|
||||
:init-keyword :value
|
||||
:allocation :virtual
|
||||
:slot-ref (lambda (o)
|
||||
(eval-string (slot-ref o 'variable)))
|
||||
:slot-set! (lambda (o v)
|
||||
(eval (string->symbol (slot-ref o 'variable))
|
||||
(slot-ref o 'environment)))
|
||||
:slot-set! (lambda (o v)
|
||||
(eval `(set! ,(string->symbol
|
||||
(slot-ref o 'variable)) ,v))))))
|
||||
(slot-ref o 'variable)) ,v)
|
||||
(slot-ref o 'environment))))))
|
||||
|
||||
(define-method tk-constructor ((self <Check-button>))
|
||||
Tk:checkbutton)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Canvas.stklos 1.4 Sun, 22 Mar 1998 20:42:56 +0100 eg $
|
||||
;;;; $Id: Canvas.stklos 1.4 Sun, 22 Mar 1998 19:42:56 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 18-Aug-1993 19:55
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Canvitem.stklos 1.5 Sun, 22 Mar 1998 20:42:56 +0100 eg $
|
||||
;;;; $Id: Canvitem.stklos 1.5 Sun, 22 Mar 1998 19:42:56 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 24-Aug-1993 11:24
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Balloon.stklos 1.1 Wed, 04 Feb 1998 11:34:59 +0100 eg $
|
||||
;;;; $Id: Balloon.stklos 1.1 Wed, 04 Feb 1998 10:34:59 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 23-Oct-1996 17:02
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Choicebox.stklos 1.3 Wed, 04 Feb 1998 11:34:59 +0100 eg $
|
||||
;;;; $Id: Choicebox.stklos 1.4 Mon, 27 Apr 1998 13:39:00 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 22-Mar-1994 13:05
|
||||
;;;; Last file update: 3-Feb-1998 19:22
|
||||
;;;; Last file update: 27-Apr-1998 12:11
|
||||
|
||||
(require "Basics")
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
|
||||
;; Now one with a set of value pre-defined and no other value allowed
|
||||
(define c2 (make <Choice-box> :title "Enter another choice"
|
||||
:title-anchor 'e :title-width 20
|
||||
:title-anchor 'e :title-width 20 :value 1
|
||||
:state "disabled" :choices '(1 2 3 4)))
|
||||
(pack c1 c2)
|
||||
|#
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Colorbox.stklos 1.2 Mon, 16 Feb 1998 08:28:39 +0100 eg $
|
||||
;;;; $Id: Colorbox.stklos 1.2 Mon, 16 Feb 1998 07:28:39 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 2-Jan-1998 14:00
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Defbutton.stklos 1.3 Wed, 04 Feb 1998 11:34:59 +0100 eg $
|
||||
;;;; $Id: Defbutton.stklos 1.3 Wed, 04 Feb 1998 10:34:59 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 22-Mar-1994 13:05
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Filebox.stklos 1.6 Tue, 03 Mar 1998 23:48:24 +0100 eg $
|
||||
;;;; $Id: Filebox.stklos 1.6 Tue, 03 Mar 1998 22:48:24 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 22-Mar-1994 13:05
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Gauge.stklos 1.1 Wed, 04 Feb 1998 11:34:59 +0100 eg $
|
||||
;;;; $Id: Gauge.stklos 1.1 Wed, 04 Feb 1998 10:34:59 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 17-Oct-1996 14:53
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Lentry.stklos 1.4 Wed, 04 Feb 1998 11:34:59 +0100 eg $
|
||||
;;;; $Id: Lentry.stklos 1.4 Wed, 04 Feb 1998 10:34:59 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 22-Mar-1994 13:05
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Lframe.stklos 1.2 Sun, 01 Feb 1998 23:14:16 +0100 eg $
|
||||
;;;; $Id: Lframe.stklos 1.2 Sun, 01 Feb 1998 22:14:16 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 25-Oct-1996 19:31
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Msgbox.stklos 1.3 Wed, 04 Feb 1998 11:34:59 +0100 eg $
|
||||
;;;; $Id: Msgbox.stklos 1.3 Wed, 04 Feb 1998 10:34:59 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 29-Aug-1997 21:06
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
;;;; Original package is GPL'ed. However, code and way to implement
|
||||
;;;; multiple windows and mdw_lib are completely different.
|
||||
;;;;
|
||||
;;;; $Id: Multiwin.stklos 1.7 Fri, 10 Apr 1998 09:13:18 +0200 eg $
|
||||
;;;; $Id: Multiwin.stklos 1.7 Fri, 10 Apr 1998 07:13:18 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 5-Apr-1996 18:04
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
;;;; Original author seems to be James Noble and the version from which this
|
||||
;;;; stuff is derivated is from Jay Schmidgall (shmdgljd@ghostwind.rchland.ibm.com).
|
||||
;;;;
|
||||
;;;; $Id: Paned.stklos 1.2 Sun, 01 Feb 1998 23:14:16 +0100 eg $
|
||||
;;;; $Id: Paned.stklos 1.2 Sun, 01 Feb 1998 22:14:16 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 22-Mar-1994 13:05
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Scrollbox.stklos 1.4 Wed, 04 Feb 1998 11:34:59 +0100 eg $
|
||||
;;;; $Id: Scrollbox.stklos 1.4 Wed, 04 Feb 1998 10:34:59 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 22-Mar-1994 13:05
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Scrollcanvas.stklos 1.2 Wed, 04 Feb 1998 11:34:59 +0100 eg $
|
||||
;;;; $Id: Scrollcanvas.stklos 1.2 Wed, 04 Feb 1998 10:34:59 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 25-Mar-1995 11:03
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Scrolltext.stklos 1.2 Wed, 04 Feb 1998 11:34:59 +0100 eg $
|
||||
;;;; $Id: Scrolltext.stklos 1.2 Wed, 04 Feb 1998 10:34:59 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 4-Apr-1995 11:19
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Entry.stklos 1.5 Sun, 01 Feb 1998 23:14:16 +0100 eg $
|
||||
;;;; $Id: Entry.stklos 1.6 Mon, 27 Apr 1998 13:39:00 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 28-Feb-1994 11:36
|
||||
;;;; Last file update: 29-Jan-1998 17:26
|
||||
;;;; Last file update: 27-Apr-1998 12:09
|
||||
|
||||
(require "Basics")
|
||||
|
||||
@@ -76,6 +76,13 @@
|
||||
(define-method tk-constructor ((self <Entry>))
|
||||
Tk:entry)
|
||||
|
||||
|
||||
(define-method initialize ((self <Entry>) initargs)
|
||||
(next-method)
|
||||
;; If a value is specified upon init, set it.
|
||||
(let ((val (get-keyword :value initargs #f)))
|
||||
(when val (initialize-value-slot self val))))
|
||||
|
||||
;;;
|
||||
;;; bounding-box
|
||||
;;;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Frame.stklos 1.3 Mon, 26 Jan 1998 15:50:43 +0100 eg $
|
||||
;;;; $Id: Frame.stklos 1.3 Mon, 26 Jan 1998 14:50:43 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 30-Mar-1993 15:39
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Listbox.stklos 1.3 Sat, 24 Jan 1998 15:12:00 +0100 eg $
|
||||
;;;; $Id: Listbox.stklos 1.3 Sat, 24 Jan 1998 14:12:00 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 28-Feb-1994 14:38
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
;;;; This software is a derivative work of other copyrighted softwares; the
|
||||
;;;; copyright notices of these softwares are placed in the file COPYRIGHTS
|
||||
;;;;
|
||||
;;;; $Id: Menu.stklos 1.2 Sat, 24 Jan 1998 15:12:00 +0100 eg $
|
||||
;;;; $Id: Menu.stklos 1.2 Sat, 24 Jan 1998 14:12:00 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 3-Mar-1994 21:03
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Message.stklos 1.2 Sat, 24 Jan 1998 15:12:00 +0100 eg $
|
||||
;;;; $Id: Message.stklos 1.2 Sat, 24 Jan 1998 14:12:00 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 3-Mar-1994 23:10
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
;;;; This software is a derivative work of other copyrighted softwares; the
|
||||
;;;; copyright notices of these softwares are placed in the file COPYRIGHTS
|
||||
;;;;
|
||||
;;;; $Id: Scale.stklos 1.2 Sat, 24 Jan 1998 15:12:00 +0100 eg $
|
||||
;;;; $Id: Scale.stklos 1.3 Mon, 27 Apr 1998 13:39:00 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 30-Mar-1993 15:28
|
||||
;;;; Last file update: 24-Jan-1998 13:48
|
||||
;;;; Last file update: 27-Apr-1998 15:12
|
||||
|
||||
|
||||
(require "Basics")
|
||||
@@ -119,16 +119,17 @@
|
||||
(define-method tk-constructor ((self <Scale>))
|
||||
Tk:scale)
|
||||
|
||||
|
||||
;;;
|
||||
;;; <Scale> methods
|
||||
;;;
|
||||
|
||||
(define-method initialize ((self <Scale>) initargs)
|
||||
(next-method)
|
||||
(let* ((val (get-keyword :value initargs #f)))
|
||||
(let ((val (get-keyword :value initargs #f)))
|
||||
;; If a value is specified upon init, set it.
|
||||
(when val
|
||||
(slot-set! self 'value val))))
|
||||
(initialize-value-slot self val))))
|
||||
|
||||
(define-method coords ((self <Scale>) . value)
|
||||
(apply (slot-ref self 'Id) 'coords value))
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Scrollbar.stklos 1.2 Sat, 24 Jan 1998 15:12:00 +0100 eg $
|
||||
;;;; $Id: Scrollbar.stklos 1.2 Sat, 24 Jan 1998 14:12:00 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 5-Mar-1994 17:19
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Text.stklos 1.4 Tue, 24 Feb 1998 12:23:02 +0100 eg $
|
||||
;;;; $Id: Text.stklos 1.5 Mon, 27 Apr 1998 13:39:00 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 22-Aug-1993 10:55
|
||||
;;;; Last file update: 24-Feb-1998 12:15
|
||||
;;;; Last file update: 27-Apr-1998 12:31
|
||||
|
||||
(require "hash")
|
||||
(require "Basics")
|
||||
@@ -105,7 +105,10 @@
|
||||
(make <Text-tag> :parent self :Tid "sel")
|
||||
;; Create "insert" and "current" mark
|
||||
(make <Text-mark> :parent self :Mid "insert" :index "1.0")
|
||||
(make <Text-mark> :parent self :Mid "current" :index "1.0"))
|
||||
(make <Text-mark> :parent self :Mid "current" :index "1.0")
|
||||
;; If a value is specified upon init, set it.
|
||||
(let ((val (get-keyword :value initargs #f)))
|
||||
(when val (initialize-value-slot self val))))
|
||||
|
||||
|
||||
(define-method destroy ((self <Text>))
|
||||
@@ -579,7 +582,6 @@
|
||||
(error "**** No index specified for this inset"))
|
||||
|
||||
(let ((IId (gensym "inset_img")))
|
||||
(DEBUG "IMAGE = ~S" image)
|
||||
((Id parent) 'image 'create index :image image :name IId) ; create inset
|
||||
(slot-set! self 'IId IId))
|
||||
(next-method)))
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Tk-active.stklos 1.3 Wed, 04 Feb 1998 11:34:59 +0100 eg $
|
||||
;;;; $Id: Tk-active.stklos 1.3 Wed, 04 Feb 1998 10:34:59 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 21-Oct-1996 12:24
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Tk-classes.stklos 1.11 Sun, 22 Mar 1998 20:42:56 +0100 eg $
|
||||
;;;; $Id: Tk-classes.stklos 1.12 Thu, 30 Apr 1998 14:16:40 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 19-Sep-1994 16:00
|
||||
;;;; Last file update: 22-Mar-1998 18:31
|
||||
;;;; Last file update: 30-Apr-1998 12:53
|
||||
|
||||
|
||||
(require "Tk-meta") ; for all the Tk meta classes
|
||||
@@ -33,8 +33,9 @@
|
||||
(export ,@l)))
|
||||
|
||||
;==== Basic Tk widgets
|
||||
(make-autoload "Basics" <Tk-composite-widget> <Tk-simple-widget>)
|
||||
(make-autoload "Button" <Label> <Button> <Check-button> <Radio-button>)
|
||||
(make-autoload "Canvas" <Canvas>)
|
||||
(make-autoload "Canvas" <Canvas> <canvas-group> <Tk-canvas-item>)
|
||||
(make-autoload "Entry" <Entry>)
|
||||
(make-autoload "Listbox" <Listbox>)
|
||||
(make-autoload "Menu" <Menu> <Menu-button> make-menubar)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Tk-meta.stklos 1.8 Fri, 10 Apr 1998 09:13:18 +0200 eg $
|
||||
;;;; $Id: Tk-meta.stklos 1.8 Fri, 10 Apr 1998 07:13:18 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 24-Feb-1994 15:08
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: Toplevel.stklos 1.7 Tue, 03 Mar 1998 23:48:24 +0100 eg $
|
||||
;;;; $Id: Toplevel.stklos 1.7 Tue, 03 Mar 1998 22:48:24 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
|
||||
;;;; Creation date: 5-Mar-1994 17:19
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: active-slot.stklos 1.1 Tue, 03 Feb 1998 11:13:08 +0100 eg $
|
||||
;;;; $Id: active-slot.stklos 1.1 Tue, 03 Feb 1998 10:13:08 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 17-Oct-1996 18:16
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: composite-slot.stklos 1.1 Tue, 03 Feb 1998 11:13:08 +0100 eg $
|
||||
;;;; $Id: composite-slot.stklos 1.1 Tue, 03 Feb 1998 10:13:08 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 17-Oct-1996 18:16
|
||||
|
||||
+9
-9
@@ -12,11 +12,11 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: stklos.stk 1.19 Fri, 10 Apr 1998 14:05:25 +0200 eg $
|
||||
;;;; $Id: stklos.stk 1.21 Thu, 30 Apr 1998 14:16:40 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 20-Feb-1994 21:09
|
||||
;;;; Last file update: 10-Apr-1998 10:51
|
||||
;;;; Last file update: 30-Apr-1998 15:47
|
||||
|
||||
(when (provided? "stklos")
|
||||
(error "STklos already initialized."))
|
||||
@@ -186,10 +186,11 @@
|
||||
',slots ; slots
|
||||
,(or (get-keyword :metaclass options #f) ; metaclass
|
||||
`(ensure-metaclass ',supers (the-environment)))
|
||||
(the-environment))) ; environment
|
||||
(the-environment) ; environment
|
||||
,@options))
|
||||
|
||||
;==== Ensure-class
|
||||
(define (ensure-class name supers slots metaclass env)
|
||||
(define (ensure-class name supers slots metaclass env . options)
|
||||
(let ((supers (if (null? supers)
|
||||
(list (%find-class '<object> env))
|
||||
(map (lambda (x) (%find-class x env)) supers))))
|
||||
@@ -204,8 +205,8 @@
|
||||
|
||||
;; Everything seems correct, build the class
|
||||
(let ((old (%find-class name env #f))
|
||||
(cls (make metaclass :dsupers supers :slots slots
|
||||
:name name :environment env)))
|
||||
(cls (apply make metaclass :dsupers supers :slots slots
|
||||
:name name :environment env options)))
|
||||
(when old (class-redefinition old cls))
|
||||
(set-symbol! name cls env)
|
||||
cls)))
|
||||
@@ -478,7 +479,7 @@
|
||||
|
||||
(define-method shallow-clone ((self <object>))
|
||||
(let ((clone (%allocate-instance (class-of self)))
|
||||
(slots (map class-definition-name
|
||||
(slots (map slot-definition-name
|
||||
(class-slots (class-of self)))))
|
||||
(for-each (lambda (slot)
|
||||
(if (slot-bound? self slot)
|
||||
@@ -488,7 +489,7 @@
|
||||
|
||||
(define-method deep-clone ((self <object>))
|
||||
(let ((clone (%allocate-instance (class-of self)))
|
||||
(slots (map class-definition-name
|
||||
(slots (map slot-definition-name
|
||||
(class-slots (class-of self)))))
|
||||
(for-each (lambda (slot)
|
||||
(if (slot-bound? self slot)
|
||||
@@ -509,7 +510,6 @@
|
||||
;==== Class-redefinition
|
||||
|
||||
(define-method class-redefinition ((old <Class>) (new <Class>))
|
||||
(DEBUG "Redefinition of class ~S" old)
|
||||
;; Work on direct methods:
|
||||
;; 1. Remove accessor methods from the old class
|
||||
;; 2. Patch the occurences of old in the specializers by new
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
;;;; permission of the copyright holder.
|
||||
;;;; This software is provided ``as is'' without express or implied warranty.
|
||||
;;;;
|
||||
;;;; $Id: trace-gf.stklos 1.1 Sun, 18 Jan 1998 20:17:48 +0100 eg $
|
||||
;;;; $Id: trace-gf.stklos 1.1 Sun, 18 Jan 1998 19:17:48 +0000 eg $
|
||||
;;;;
|
||||
;;;; Author: Erick Gallesio [eg@unice.fr]
|
||||
;;;; Creation date: 17-Jan-1998 17:48
|
||||
|
||||
Reference in New Issue
Block a user