Macro stepper: cosmetic changes, new interface (stub)
svn: r5536 original commit: 679bd4e30cb1ad602a6e7c77af5ee6f9e332af22
This commit is contained in:
parent
90758ff4e5
commit
3f810108ff
|
@ -11,12 +11,13 @@
|
||||||
(class* object% (syntax-controller<%>
|
(class* object% (syntax-controller<%>
|
||||||
syntax-pp-snip-controller<%>
|
syntax-pp-snip-controller<%>
|
||||||
color-controller<%>)
|
color-controller<%>)
|
||||||
|
(init-field (primary-partition (new-bound-partition)))
|
||||||
|
(init-field (properties-controller #f))
|
||||||
|
|
||||||
(define colorers null)
|
(define colorers null)
|
||||||
(define selection-listeners null)
|
(define selection-listeners null)
|
||||||
(define selected-syntax #f)
|
(define selected-syntax #f)
|
||||||
(define identifier=?-listeners null)
|
(define identifier=?-listeners null)
|
||||||
(init-field (properties-controller #f))
|
|
||||||
|
|
||||||
;; syntax-controller<%> Methods
|
;; syntax-controller<%> Methods
|
||||||
|
|
||||||
|
@ -42,7 +43,7 @@
|
||||||
(set! selection-listeners (cons p selection-listeners)))
|
(set! selection-listeners (cons p selection-listeners)))
|
||||||
|
|
||||||
(define/public (on-update-identifier=? name id=?)
|
(define/public (on-update-identifier=? name id=?)
|
||||||
(set! -secondary-partition
|
(set! secondary-partition
|
||||||
(and id=? (new partition% (relation id=?))))
|
(and id=? (new partition% (relation id=?))))
|
||||||
(for-each (lambda (c) (send c refresh)) colorers)
|
(for-each (lambda (c) (send c refresh)) colorers)
|
||||||
(for-each (lambda (f) (f name id=?)) identifier=?-listeners))
|
(for-each (lambda (f) (f name id=?)) identifier=?-listeners))
|
||||||
|
@ -61,11 +62,10 @@
|
||||||
|
|
||||||
;; color-controller<%> Methods
|
;; color-controller<%> Methods
|
||||||
|
|
||||||
(define -primary-partition (new-bound-partition))
|
(define secondary-partition #f)
|
||||||
(define -secondary-partition #f)
|
|
||||||
|
|
||||||
(define/public (get-primary-partition) -primary-partition)
|
(define/public (get-primary-partition) primary-partition)
|
||||||
(define/public (get-secondary-partition) -secondary-partition)
|
(define/public (get-secondary-partition) secondary-partition)
|
||||||
|
|
||||||
;; Initialization
|
;; Initialization
|
||||||
(super-new)
|
(super-new)
|
||||||
|
|
|
@ -115,6 +115,14 @@
|
||||||
select-syntax
|
select-syntax
|
||||||
apply-styles))
|
apply-styles))
|
||||||
|
|
||||||
|
;; syntax-sharing-context<%>
|
||||||
|
;; A syntax-sharing-context<%>
|
||||||
|
;; Syntax snips search their enclosing editors for instances of sharing contexts
|
||||||
|
(define syntax-sharing-context<%>
|
||||||
|
(interface ()
|
||||||
|
;; get-shared-partition
|
||||||
|
get-shared-partition))
|
||||||
|
|
||||||
;;----------
|
;;----------
|
||||||
|
|
||||||
;; Convenience widget, specialized for displaying stx and not much else
|
;; Convenience widget, specialized for displaying stx and not much else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user