;;;; ;;;; F i l e b o x . s t k -- File Box composite widget ;;;; ;;;; Copyright © 1993-1996 Erick Gallesio - I3S-CNRS/ESSI ;;;; ;;;; Permission to use, copy, and/or distribute this software and its ;;;; documentation for any purpose and without fee is hereby granted, provided ;;;; that both the above copyright notice and this permission notice appear in ;;;; all copies and derived works. Fees for distribution or use of this ;;;; software or derived works may only be charged with express written ;;;; permission of the copyright holder. ;;;; This software is provided ``as is'' without express or implied warranty. ;;;; ;;;; Author: Erick Gallesio [eg@kaolin.unice.fr] ;;;; Creation date: 22-Mar-1994 13:05 ;;;; Last file update: 13-Aug-1996 23:18 (require "unix") (require "Toplevel") (require "Button") (require "Paned") (require "Scrollbox") (require "Lentry") ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; ;;;; class-definition ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (define-class () (paned ;; paned and button are not intended to the user buttons (left-frame :accessor left-frame-of) (right-frame :accessor right-frame-of) (left-title :accessor left-title-of) (right-title :accessor right-title-of) (lentry :accessor lentry-of) but-frame (ok-button :accessor ok-button-of) (canc-button :accessor cancel-button-of) (help-button :accessor help-button-of) (all-button :accessor all-button-of) ;; Fictives slots (value :accessor value :allocation :propagated :propagate-to (lentry)) (background :accessor background :allocation :propagated :propagate-to (frame paned buttons left-frame right-frame left-title right-title lentry ok-button canc-button help-button all-button)) (width :accessor width :init-keyword :width :allocation :propagated :propagate-to (frame)) (height :accessor height :init-keyword :height :allocation :propagated :propagate-to (frame)))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; ;;;; methods ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Interface ;;; (define-method initialize-composite-widget ((self ) initargs frame) (let* ((paned (make :parent frame :fraction 0.3)) (f (make :parent frame)) (lf (left-frame-of paned)) (rf (right-frame-of paned))) (slot-set! self 'paned paned) (slot-set! self 'buttons f) (slot-set! self 'left-frame (make :parent lf)) (slot-set! self 'right-frame (make :parent rf)) (slot-set! self 'left-title (make