Move mred/private/wxme/style to racket/snip/private/style.
`racket/snip' now exports the style classes and the add,mult-color interfaces.
This commit is contained in:
parent
975c2400a1
commit
491eeaa759
|
@ -7,7 +7,6 @@
|
||||||
racket/draw racket/snip
|
racket/draw racket/snip
|
||||||
mzlib/etc
|
mzlib/etc
|
||||||
(prefix wx: "private/kernel.ss")
|
(prefix wx: "private/kernel.ss")
|
||||||
(prefix wx: "private/wxme/style.ss")
|
|
||||||
(prefix wx: "private/wxme/editor.ss")
|
(prefix wx: "private/wxme/editor.ss")
|
||||||
(prefix wx: "private/wxme/text.ss")
|
(prefix wx: "private/wxme/text.ss")
|
||||||
(prefix wx: "private/wxme/pasteboard.ss")
|
(prefix wx: "private/wxme/pasteboard.ss")
|
||||||
|
@ -95,8 +94,7 @@
|
||||||
(define n k:n) ...
|
(define n k:n) ...
|
||||||
(provide n ...)))))])))
|
(provide n ...)))))])))
|
||||||
|
|
||||||
(propagate add-color<%>
|
(propagate add-editor-keymap-functions
|
||||||
add-editor-keymap-functions
|
|
||||||
add-text-keymap-functions
|
add-text-keymap-functions
|
||||||
add-pasteboard-keymap-functions
|
add-pasteboard-keymap-functions
|
||||||
begin-busy-cursor
|
begin-busy-cursor
|
||||||
|
@ -134,7 +132,6 @@
|
||||||
editor-stream-out-bytes-base%
|
editor-stream-out-bytes-base%
|
||||||
editor-wordbreak-map%
|
editor-wordbreak-map%
|
||||||
mouse-event%
|
mouse-event%
|
||||||
mult-color<%>
|
|
||||||
read-editor-global-footer
|
read-editor-global-footer
|
||||||
read-editor-global-header
|
read-editor-global-header
|
||||||
read-editor-version
|
read-editor-version
|
||||||
|
@ -143,9 +140,6 @@
|
||||||
special-option-key
|
special-option-key
|
||||||
map-command-as-meta-key
|
map-command-as-meta-key
|
||||||
label->plain-label
|
label->plain-label
|
||||||
style<%>
|
|
||||||
style-delta%
|
|
||||||
style-list%
|
|
||||||
write-editor-global-footer
|
write-editor-global-footer
|
||||||
write-editor-global-header
|
write-editor-global-header
|
||||||
write-editor-version
|
write-editor-version
|
||||||
|
@ -154,7 +148,6 @@
|
||||||
eventspace-shutdown?
|
eventspace-shutdown?
|
||||||
get-panel-background
|
get-panel-background
|
||||||
|
|
||||||
the-style-list
|
|
||||||
the-editor-wordbreak-map
|
the-editor-wordbreak-map
|
||||||
make-screen-bitmap
|
make-screen-bitmap
|
||||||
make-gl-bitmap)
|
make-gl-bitmap)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
mzlib/list
|
mzlib/list
|
||||||
mzlib/file
|
mzlib/file
|
||||||
(prefix wx: "kernel.ss")
|
(prefix wx: "kernel.ss")
|
||||||
(prefix wx: "wxme/style.ss")
|
(prefix wx: racket/snip)
|
||||||
(prefix wx: "wxme/keymap.ss")
|
(prefix wx: "wxme/keymap.ss")
|
||||||
(prefix wx: "wxme/editor.ss")
|
(prefix wx: "wxme/editor.ss")
|
||||||
(prefix wx: "wxme/text.ss")
|
(prefix wx: "wxme/text.ss")
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
mzlib/etc
|
mzlib/etc
|
||||||
mzlib/list
|
mzlib/list
|
||||||
(prefix wx: "kernel.ss")
|
(prefix wx: "kernel.ss")
|
||||||
(prefix wx: "wxme/style.ss")
|
(prefix wx: racket/snip)
|
||||||
(prefix wx: "wxme/cycle.ss")
|
(prefix wx: "wxme/cycle.ss")
|
||||||
"lock.ss"
|
"lock.ss"
|
||||||
"wx.ss"
|
"wx.ss"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
(module helper mzscheme
|
(module helper mzscheme
|
||||||
(require mzlib/class
|
(require mzlib/class
|
||||||
(prefix wx: "kernel.ss")
|
(prefix wx: "kernel.ss")
|
||||||
(prefix wx: "wxme/style.ss")
|
(prefix wx: racket/snip)
|
||||||
"lock.ss")
|
"lock.ss")
|
||||||
|
|
||||||
(provide (protect (struct child-info (x-min y-min x-margin y-margin x-stretch y-stretch))
|
(provide (protect (struct child-info (x-min y-min x-margin y-margin x-stretch y-stretch))
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
mzlib/etc
|
mzlib/etc
|
||||||
mzlib/list
|
mzlib/list
|
||||||
(prefix wx: "kernel.ss")
|
(prefix wx: "kernel.ss")
|
||||||
(prefix wx: "wxme/style.ss")
|
(prefix wx: racket/snip)
|
||||||
"lock.ss"
|
"lock.ss"
|
||||||
"const.ss"
|
"const.ss"
|
||||||
"check.ss"
|
"check.ss"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
(module path-dialog mzscheme
|
(module path-dialog mzscheme
|
||||||
(require mzlib/class mzlib/list mzlib/string mzlib/file
|
(require mzlib/class mzlib/list mzlib/string mzlib/file
|
||||||
(prefix wx: "kernel.ss")
|
(prefix wx: "kernel.ss")
|
||||||
(prefix wx: "wxme/style.ss")
|
(prefix wx: racket/snip)
|
||||||
"helper.ss" "mrtop.ss" "mritem.ss" "mrpanel.ss" "mrtextfield.ss"
|
"helper.ss" "mrtop.ss" "mritem.ss" "mrpanel.ss" "mrtextfield.ss"
|
||||||
"messagebox.ss" "mrmenu.ss" (only scheme/base compose))
|
"messagebox.ss" "mrmenu.ss" (only scheme/base compose))
|
||||||
(provide path-dialog%)
|
(provide path-dialog%)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
(require mzlib/class
|
(require mzlib/class
|
||||||
mzlib/class100
|
mzlib/class100
|
||||||
(prefix wx: "kernel.ss")
|
(prefix wx: "kernel.ss")
|
||||||
(prefix wx: "wxme/style.ss")
|
(prefix wx: racket/snip)
|
||||||
"editor.ss"
|
"editor.ss"
|
||||||
"app.ss"
|
"app.ss"
|
||||||
"mrtop.ss"
|
"mrtop.ss"
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
(require scheme/class
|
(require scheme/class
|
||||||
scheme/file file/convertible
|
scheme/file file/convertible
|
||||||
"../syntax.ss"
|
"../syntax.ss"
|
||||||
racket/snip/private/snip-flags
|
|
||||||
"private.ss"
|
"private.ss"
|
||||||
|
racket/snip/private/snip-flags
|
||||||
racket/snip/private/private
|
racket/snip/private/private
|
||||||
"style.ss"
|
racket/snip/private/style
|
||||||
racket/snip/private/load-one
|
racket/snip/private/load-one
|
||||||
(only-in "cycle.ss"
|
(only-in "cycle.ss"
|
||||||
editor-stream-in% editor-stream-out%
|
editor-stream-in% editor-stream-out%
|
||||||
get-editor-data-class set-get-editor-data-class!)
|
get-editor-data-class set-get-editor-data-class!)
|
||||||
"../wx/common/event.rkt"
|
"../wx/common/event.rkt"
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
racket/snip/private/snip-flags
|
racket/snip/private/snip-flags
|
||||||
"private.ss"
|
"private.ss"
|
||||||
racket/snip/private/private
|
racket/snip/private/private
|
||||||
"style.ss"
|
|
||||||
racket/snip
|
racket/snip
|
||||||
(only-in "cycle.ss"
|
(only-in "cycle.ss"
|
||||||
editor-stream-in% editor-stream-out%
|
editor-stream-in% editor-stream-out%
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
scheme/file
|
scheme/file
|
||||||
"../syntax.ss"
|
"../syntax.ss"
|
||||||
"private.ss"
|
"private.ss"
|
||||||
racket/snip/private/private
|
|
||||||
"style.ss"
|
|
||||||
racket/snip
|
racket/snip
|
||||||
|
racket/snip/private/private
|
||||||
|
racket/snip/private/style
|
||||||
racket/snip/private/snip-flags
|
racket/snip/private/snip-flags
|
||||||
"editor-admin.ss"
|
"editor-admin.ss"
|
||||||
"stream.ss"
|
"stream.ss"
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
"editor.ss"
|
"editor.ss"
|
||||||
"editor-data.rkt"
|
"editor-data.rkt"
|
||||||
"undo.ss"
|
"undo.ss"
|
||||||
"style.ss"
|
|
||||||
racket/snip
|
racket/snip
|
||||||
racket/snip/private/snip-flags
|
racket/snip/private/snip-flags
|
||||||
"standard-snip-admin.rkt"
|
"standard-snip-admin.rkt"
|
||||||
|
|
|
@ -82,8 +82,7 @@
|
||||||
(define-local-member-name
|
(define-local-member-name
|
||||||
set-s-read-format
|
set-s-read-format
|
||||||
get-s-read-format
|
get-s-read-format
|
||||||
set-s-read-version
|
set-s-read-version)
|
||||||
get-wxme-version)
|
|
||||||
|
|
||||||
;; editor-snip%
|
;; editor-snip%
|
||||||
(define-local-member-name
|
(define-local-member-name
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
#lang racket/base
|
|
||||||
|
|
||||||
(provide (all-defined-out))
|
|
||||||
|
|
||||||
(define (family-symbol? s)
|
|
||||||
(memq s '(default decorative roman script
|
|
||||||
swiss modern symbol system)))
|
|
||||||
(define (style-symbol? s)
|
|
||||||
(memq s '(normal italic slant)))
|
|
||||||
(define (weight-symbol? s)
|
|
||||||
(memq s '(normal bold light)))
|
|
||||||
(define (smoothing-symbol? s)
|
|
||||||
(memq s '(default smoothed unsmoothed partly-smoothed)))
|
|
|
@ -11,7 +11,6 @@
|
||||||
"editor.ss"
|
"editor.ss"
|
||||||
"editor-data.rkt"
|
"editor-data.rkt"
|
||||||
"undo.ss"
|
"undo.ss"
|
||||||
"style.ss"
|
|
||||||
racket/snip
|
racket/snip
|
||||||
racket/snip/private/snip-flags
|
racket/snip/private/snip-flags
|
||||||
"standard-snip-admin.rkt"
|
"standard-snip-admin.rkt"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#lang scheme/base
|
#lang scheme/base
|
||||||
(require "../kernel.ss" "symbol-predicates.rkt")
|
(require "../kernel.ss" racket/draw/private/font-syms)
|
||||||
|
|
||||||
(define the-clipboard (get-the-clipboard))
|
(define the-clipboard (get-the-clipboard))
|
||||||
(define the-x-selection-clipboard (get-the-x-selection))
|
(define the-x-selection-clipboard (get-the-x-selection))
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
(define (size? v) (and (exact-positive-integer? v)
|
(define (size? v) (and (exact-positive-integer? v)
|
||||||
(byte? v)))
|
(byte? v)))
|
||||||
|
|
||||||
(provide (all-from-out "symbol-predicates.rkt")
|
(provide (all-from-out racket/draw/private/font-syms)
|
||||||
event%
|
event%
|
||||||
mouse-event%
|
mouse-event%
|
||||||
key-event%
|
key-event%
|
||||||
|
@ -39,10 +39,6 @@
|
||||||
hide-cursor
|
hide-cursor
|
||||||
run-printout
|
run-printout
|
||||||
current-ps-setup
|
current-ps-setup
|
||||||
family-symbol?
|
|
||||||
style-symbol?
|
|
||||||
weight-symbol?
|
|
||||||
smoothing-symbol?
|
|
||||||
get-highlight-background-color
|
get-highlight-background-color
|
||||||
get-highlight-text-color)
|
get-highlight-text-color)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#lang scheme/base
|
#lang scheme/base
|
||||||
|
|
||||||
(provide family-symbol? style-symbol? weight-symbol? )
|
(provide family-symbol? style-symbol? weight-symbol? smoothing-symbol?)
|
||||||
|
|
||||||
(define (family-symbol? s)
|
(define (family-symbol? s)
|
||||||
(memq s '(default decorative roman script
|
(memq s '(default decorative roman script
|
||||||
|
@ -12,3 +12,6 @@
|
||||||
(define (weight-symbol? s)
|
(define (weight-symbol? s)
|
||||||
(memq s '(normal bold light)))
|
(memq s '(normal bold light)))
|
||||||
|
|
||||||
|
(define (smoothing-symbol? s)
|
||||||
|
(memq s '(default smoothed unsmoothed partly-smoothed)))
|
||||||
|
|
||||||
|
|
|
@ -25,9 +25,6 @@
|
||||||
PANGO_UNDERLINE_SINGLE))
|
PANGO_UNDERLINE_SINGLE))
|
||||||
l))
|
l))
|
||||||
|
|
||||||
(define (smoothing-symbol? s)
|
|
||||||
(memq s '(default smoothed unsmoothed partly-smoothed)))
|
|
||||||
|
|
||||||
(define (size? v) (and (exact-positive-integer? v)
|
(define (size? v) (and (exact-positive-integer? v)
|
||||||
(byte? v)))
|
(byte? v)))
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
#lang racket/base
|
#lang racket/base
|
||||||
(require "snip/private/snip.rkt" "snip/private/snip-admin.rkt")
|
(require "snip/private/snip.rkt"
|
||||||
(provide (all-from-out "snip/private/snip.rkt" "snip/private/snip-admin.rkt"))
|
"snip/private/snip-admin.rkt"
|
||||||
|
"snip/private/style.rkt")
|
||||||
|
(provide mult-color<%>
|
||||||
|
add-color<%>
|
||||||
|
style-delta%
|
||||||
|
style<%>
|
||||||
|
style-list%
|
||||||
|
the-style-list
|
||||||
|
(all-from-out "snip/private/snip.rkt"
|
||||||
|
"snip/private/snip-admin.rkt"))
|
|
@ -53,4 +53,5 @@
|
||||||
do-reading-version
|
do-reading-version
|
||||||
do-map-position
|
do-map-position
|
||||||
do-get-header-flag
|
do-get-header-flag
|
||||||
do-set-header-flag)
|
do-set-header-flag
|
||||||
|
get-wxme-version)
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
scheme/file file/convertible
|
scheme/file file/convertible
|
||||||
"snip-flags.ss"
|
"snip-flags.ss"
|
||||||
"load-one.rkt"
|
"load-one.rkt"
|
||||||
racket/draw/private/syntax
|
"style.rkt"
|
||||||
mred/private/wxme/style
|
|
||||||
"private.rkt"
|
"private.rkt"
|
||||||
|
racket/draw/private/syntax
|
||||||
racket/draw)
|
racket/draw)
|
||||||
|
|
||||||
(provide snip%
|
(provide snip%
|
||||||
|
|
|
@ -3,11 +3,9 @@
|
||||||
scheme/file
|
scheme/file
|
||||||
(for-syntax scheme/base)
|
(for-syntax scheme/base)
|
||||||
racket/draw
|
racket/draw
|
||||||
"../syntax.ss"
|
racket/draw/private/syntax
|
||||||
"cycle.ss"
|
racket/draw/private/font-syms
|
||||||
"private.ss"
|
racket/snip/private/private)
|
||||||
racket/snip/private/private
|
|
||||||
"symbol-predicates.rkt")
|
|
||||||
|
|
||||||
(provide mult-color<%>
|
(provide mult-color<%>
|
||||||
add-color<%>
|
add-color<%>
|
||||||
|
@ -20,6 +18,9 @@
|
||||||
read-styles-from-file
|
read-styles-from-file
|
||||||
write-styles-to-file)
|
write-styles-to-file)
|
||||||
|
|
||||||
|
;; for contracts
|
||||||
|
(define editor-stream-out% object%)
|
||||||
|
|
||||||
(define default-size
|
(define default-size
|
||||||
(or (get-preference 'MrEd:default-font-size)
|
(or (get-preference 'MrEd:default-font-size)
|
||||||
(case (system-type)
|
(case (system-type)
|
|
@ -16,10 +16,6 @@ Displays, Administrators, and Mappings:
|
||||||
|
|
||||||
@diagram->table[editor-admin-diagram]
|
@diagram->table[editor-admin-diagram]
|
||||||
|
|
||||||
Styles:
|
|
||||||
|
|
||||||
@diagram->table[style-diagram]
|
|
||||||
|
|
||||||
Streams for Saving and Cut-and-Paste:
|
Streams for Saving and Cut-and-Paste:
|
||||||
|
|
||||||
@diagram->table[stream-diagram]
|
@diagram->table[stream-diagram]
|
||||||
|
@ -28,7 +24,6 @@ Alphabetical:
|
||||||
|
|
||||||
@local-table-of-contents[]
|
@local-table-of-contents[]
|
||||||
|
|
||||||
@include-section["add-color-intf.scrbl"]
|
|
||||||
@include-section["editor-intf.scrbl"]
|
@include-section["editor-intf.scrbl"]
|
||||||
@include-section["editor-admin-class.scrbl"]
|
@include-section["editor-admin-class.scrbl"]
|
||||||
@include-section["editor-canvas-class.scrbl"]
|
@include-section["editor-canvas-class.scrbl"]
|
||||||
|
@ -45,9 +40,5 @@ Alphabetical:
|
||||||
@include-section["editor-stream-out-bytes-base-class.scrbl"]
|
@include-section["editor-stream-out-bytes-base-class.scrbl"]
|
||||||
@include-section["editor-wordbreak-map-class.scrbl"]
|
@include-section["editor-wordbreak-map-class.scrbl"]
|
||||||
@include-section["keymap-class.scrbl"]
|
@include-section["keymap-class.scrbl"]
|
||||||
@include-section["mult-color-intf.scrbl"]
|
|
||||||
@include-section["pasteboard-class.scrbl"]
|
@include-section["pasteboard-class.scrbl"]
|
||||||
@include-section["style-intf.scrbl"]
|
|
||||||
@include-section["style-delta-class.scrbl"]
|
|
||||||
@include-section["style-list-class.scrbl"]
|
|
||||||
@include-section["text-class.scrbl"]
|
@include-section["text-class.scrbl"]
|
||||||
|
|
|
@ -18,15 +18,24 @@ Snip Lists:
|
||||||
|
|
||||||
@diagram->table[snip-list-diagram]
|
@diagram->table[snip-list-diagram]
|
||||||
|
|
||||||
|
Styles:
|
||||||
|
|
||||||
|
@diagram->table[style-diagram]
|
||||||
|
|
||||||
Alphabetical:
|
Alphabetical:
|
||||||
|
|
||||||
@local-table-of-contents[]
|
@local-table-of-contents[]
|
||||||
|
|
||||||
|
@include-section["add-color-intf.scrbl"]
|
||||||
@include-section["image-snip-class.scrbl"]
|
@include-section["image-snip-class.scrbl"]
|
||||||
|
@include-section["mult-color-intf.scrbl"]
|
||||||
@include-section["readable-snip-intf.scrbl"]
|
@include-section["readable-snip-intf.scrbl"]
|
||||||
@include-section["snip-class.scrbl"]
|
@include-section["snip-class.scrbl"]
|
||||||
@include-section["snip-admin-class.scrbl"]
|
@include-section["snip-admin-class.scrbl"]
|
||||||
@include-section["snip-class-class.scrbl"]
|
@include-section["snip-class-class.scrbl"]
|
||||||
@include-section["snip-class-list-intf.scrbl"]
|
@include-section["snip-class-list-intf.scrbl"]
|
||||||
@include-section["string-snip-class.scrbl"]
|
@include-section["string-snip-class.scrbl"]
|
||||||
|
@include-section["style-intf.scrbl"]
|
||||||
|
@include-section["style-delta-class.scrbl"]
|
||||||
|
@include-section["style-list-class.scrbl"]
|
||||||
@include-section["tab-snip-class.scrbl"]
|
@include-section["tab-snip-class.scrbl"]
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
mouse-event%)
|
mouse-event%)
|
||||||
racket/snip
|
racket/snip
|
||||||
mred/private/wxme/mline
|
mred/private/wxme/mline
|
||||||
mred/private/wxme/style
|
|
||||||
mred/private/wxme/editor
|
mred/private/wxme/editor
|
||||||
mred/private/wxme/text
|
mred/private/wxme/text
|
||||||
mred/private/wxme/pasteboard
|
mred/private/wxme/pasteboard
|
||||||
|
|
Loading…
Reference in New Issue
Block a user