1998-04-10 06:59:06 -04:00
|
|
|
|
;;;;
|
|
|
|
|
;;;; t k - u n i x . s t k -- Some Tk functions which are loaded
|
|
|
|
|
;;;; on Unix only
|
|
|
|
|
;;;;
|
1999-09-05 07:16:41 -04:00
|
|
|
|
;;;; Copyright <20> 1998-1999 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
|
1998-04-10 06:59:06 -04:00
|
|
|
|
;;;;
|
1999-09-05 07:16:41 -04:00
|
|
|
|
;;;; 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.
|
1998-04-10 06:59:06 -04:00
|
|
|
|
;;;;
|
|
|
|
|
;;;; Author: Erick Gallesio [eg@unice.fr]
|
1998-09-30 07:11:02 -04:00
|
|
|
|
;;;; Creation date: 10-Sep-1998 23:20
|
1999-09-05 07:16:41 -04:00
|
|
|
|
;;;; Last file update: 3-Sep-1999 19:55 (eg)
|
1998-04-10 06:59:06 -04:00
|
|
|
|
|
1998-09-30 07:11:02 -04:00
|
|
|
|
;;; Functions defined here are only loaded when we are on Unix.
|
|
|
|
|
;;; On windows, they are defined in C and implemented using the
|
|
|
|
|
;;; native look and feel.
|
|
|
|
|
;;; The functions defined here are simple wrapers around the real ones
|
|
|
|
|
;;; defined in the STklos+Tk module. Otherwise, we have needed to require
|
|
|
|
|
;;; the loading of "Tk-classes", when running Unix (and not on Windows).
|
1998-04-10 06:59:06 -04:00
|
|
|
|
|
1998-09-30 07:11:02 -04:00
|
|
|
|
(select-module Tk)
|
|
|
|
|
(export Tk:message-box Tk:choose-color
|
|
|
|
|
Tk:get-file Tk:get-open-file Tk:get-save-file)
|
1998-04-10 06:59:06 -04:00
|
|
|
|
|
|
|
|
|
;=============================================================================
|
|
|
|
|
;
|
|
|
|
|
; Tk:message-box
|
|
|
|
|
;
|
|
|
|
|
;=============================================================================
|
|
|
|
|
(define (Tk:message-box . l)
|
1998-09-30 07:11:02 -04:00
|
|
|
|
(require "Tk-classes")
|
|
|
|
|
(apply (with-module STklos+Tk Tk:message-box) l))
|
1998-04-10 06:59:06 -04:00
|
|
|
|
|
1998-09-30 07:11:02 -04:00
|
|
|
|
;=============================================================================
|
|
|
|
|
;
|
|
|
|
|
; Tk:choose-color
|
|
|
|
|
;
|
|
|
|
|
;=============================================================================
|
|
|
|
|
(define (Tk:choose-color . l)
|
|
|
|
|
(require "Tk-classes")
|
|
|
|
|
(apply (with-module STklos+Tk Tk:choose-color) l))
|
1998-04-10 06:59:06 -04:00
|
|
|
|
|
1998-09-30 07:11:02 -04:00
|
|
|
|
;=============================================================================
|
|
|
|
|
;
|
|
|
|
|
; Tk:get-file
|
|
|
|
|
;
|
|
|
|
|
;=============================================================================
|
|
|
|
|
(define (Tk:get-file . l)
|
|
|
|
|
(require "Tk-classes")
|
|
|
|
|
(apply (with-module STklos+Tk Tk:get-file) l))
|
1998-04-10 06:59:06 -04:00
|
|
|
|
|
|
|
|
|
;=============================================================================
|
|
|
|
|
;
|
|
|
|
|
; Tk:get-open-file
|
|
|
|
|
;
|
|
|
|
|
;=============================================================================
|
1999-02-02 06:13:40 -05:00
|
|
|
|
(define (Tk:get-open-file . l)
|
1998-09-30 07:11:02 -04:00
|
|
|
|
(require "Tk-classes")
|
|
|
|
|
(apply (with-module STklos+Tk Tk:get-open-file) l))
|
1998-04-10 06:59:06 -04:00
|
|
|
|
|
|
|
|
|
;=============================================================================
|
|
|
|
|
;
|
|
|
|
|
; Tk:get-save-file
|
|
|
|
|
;
|
|
|
|
|
;=============================================================================
|
|
|
|
|
(define (Tk:get-save-file . l)
|
1998-09-30 07:11:02 -04:00
|
|
|
|
(require "Tk-classes")
|
|
|
|
|
(apply (with-module STklos+Tk Tk:get-save-file) l))
|