File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
gui-lib/framework/private Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
#lang racket/unit
2
2
3
3
(require "sig.rkt "
4
+ "text-sig.rkt "
4
5
"interfaces.rkt "
5
6
mred/mred-sig
6
7
racket/class
10
11
file/convertible
11
12
simple-tree-text-markup/text)
12
13
13
- (import mred^)
14
+ (import mred^
15
+ (only framework:editor^ get-standard-style-list))
14
16
(export (rename framework:number-snip/int^
15
17
[-snip-class% snip-class%]))
16
18
(init-depend mred^)
599
601
[(w3 h3 d3 a3) (get-text-extent/f dc clickable-portion font)])
600
602
(and (<= (+ w1 w2) sx (+ w1 w2 w3))
601
603
(<= 0 sy h3))))))
602
-
604
+
603
605
(super-new )
604
- (inherit set-snipclass set-flags get-flags)
606
+ (inherit set-snipclass set-flags get-flags set-style )
605
607
(set-flags (cons 'handles-events (get-flags)))
606
608
(set-snipclass number-snipclass)
609
+ (set-style (send (get-standard-style-list) find-named-style "Standard " ))
607
610
(iterate 1 ))) ;; calc first digits
608
611
609
612
(define remove-decimal-looking-number-snips-on-insertion-mixin
You can’t perform that action at this time.
0 commit comments