Adjust the dependencies in redex/pict so it doesn't depend on racket/gui/base anymore

This commit is contained in:
Robby Findler 2011-03-15 16:20:01 -05:00
parent 6e1ffc24cf
commit d0d2285c4c
4 changed files with 5 additions and 12 deletions

View File

@ -5,7 +5,6 @@
"private/core-layout.ss"
"private/loc-wrapper.ss"
"reduction-semantics.ss"
(lib "mred.ss" "mred")
(lib "mrpict.ss" "texpict"))
(define reduction-rule-style/c

View File

@ -1,6 +1,6 @@
#lang scheme/base
(require texpict/mrpict
scheme/gui/base
racket/draw
scheme/class
scheme/contract)
@ -28,8 +28,7 @@
font-family
'normal
'normal))])
(let* ([ps-pen-width-factor 0.042] ;; factor of the height to get the pen width
[screen-pen-width-factor .08]
(let* ([pen-width-factor 0.042] ;; factor of the height to get the pen width
[line-pos (+ a (/ (- h a) 2))]
[head-width (/ w 5)]
[head-height (* (- h a) 9/16)]
@ -59,12 +58,7 @@
(dc
(λ (dc dx dy)
(let ([old-pen (send dc get-pen)]
[old-brush (send dc get-brush)]
[pen-width-factor
(if (or (is-a? dc printer-dc%)
(is-a? dc post-script-dc%))
ps-pen-width-factor
screen-pen-width-factor)])
[old-brush (send dc get-brush)])
(send dc set-pen (send old-pen get-color) (* h pen-width-factor) 'solid)
;; main line of arrow

View File

@ -8,7 +8,7 @@
texpict/mrpict
scheme/match
scheme/gui/base
racket/draw
scheme/class)
(require (for-syntax scheme/base))

View File

@ -2,7 +2,7 @@
(require (lib "mrpict.ss" "texpict")
(lib "utils.ss" "texpict")
racket/contract
scheme/gui/base
racket/draw
scheme/class
scheme/match
(only-in scheme/list drop-right last partition)