Add initial filds to the builder
This commit is contained in:
4
examples/empty_omp.omp
Normal file
4
examples/empty_omp.omp
Normal file
@ -0,0 +1,4 @@
|
||||
; OM File Header - Saved 2022/12/29 14:43:16
|
||||
; (6.19 :patc (om-make-point 10 10) (om-make-point 50 50) (om-make-point 500 400) "" 183 0 "2022/12/29 14:43:16" "2022/12/29 14:43:16")
|
||||
; End File Header
|
||||
(in-package :om)(load-lib-for (quote nil))(setf *om-current-persistent* (om-load-patch1 "Patch" (quote nil) (quote nil) nil 6.19))
|
183
examples/simple_bpc.omp
Normal file
183
examples/simple_bpc.omp
Normal file
@ -0,0 +1,183 @@
|
||||
(
|
||||
in-package :om
|
||||
)
|
||||
|
||||
(
|
||||
load-lib-for
|
||||
(
|
||||
quote nil
|
||||
)
|
||||
)
|
||||
|
||||
(
|
||||
setf *om-current-persistent*
|
||||
(
|
||||
om-load-patch1 "Patch 2"
|
||||
(
|
||||
quote
|
||||
(
|
||||
(
|
||||
let
|
||||
(
|
||||
(
|
||||
box
|
||||
(
|
||||
om-load-editor-box1 "BPC"
|
||||
(
|
||||
quote bpc
|
||||
)
|
||||
(
|
||||
quote
|
||||
(
|
||||
(
|
||||
om-load-inputfun
|
||||
(
|
||||
quote input-funbox
|
||||
)
|
||||
"object" "self" nil
|
||||
)
|
||||
(
|
||||
om-load-inputfun
|
||||
(
|
||||
quote input-funbox
|
||||
)
|
||||
"X coordinates (list)" "x-points"
|
||||
(
|
||||
list 0 100
|
||||
)
|
||||
)
|
||||
(
|
||||
om-load-inputfun
|
||||
(
|
||||
quote input-funbox
|
||||
)
|
||||
"Y coordinates (list)" "y-points"
|
||||
(
|
||||
list 0 100
|
||||
)
|
||||
)
|
||||
(
|
||||
om-load-inputfun
|
||||
(
|
||||
quote input-funbox
|
||||
)
|
||||
"precision
|
||||
(
|
||||
integer
|
||||
) [0 - 10]" "decimals" 0
|
||||
)
|
||||
)
|
||||
)
|
||||
(
|
||||
om-make-point 151 96
|
||||
)
|
||||
(
|
||||
om-make-point 40 60
|
||||
)
|
||||
(
|
||||
let
|
||||
(
|
||||
(
|
||||
newobj
|
||||
(
|
||||
when
|
||||
(
|
||||
find-class
|
||||
(
|
||||
quote bpc
|
||||
)
|
||||
nil
|
||||
)
|
||||
(
|
||||
let
|
||||
(
|
||||
(
|
||||
newbpf
|
||||
(
|
||||
simple-bpf-from-list
|
||||
(
|
||||
quote
|
||||
(
|
||||
-1 99 70
|
||||
)
|
||||
)
|
||||
(
|
||||
quote
|
||||
(
|
||||
0 100 65
|
||||
)
|
||||
)
|
||||
(
|
||||
quote bpc
|
||||
)
|
||||
0
|
||||
)
|
||||
)
|
||||
)
|
||||
(
|
||||
setf
|
||||
(
|
||||
bpfcolor newbpf
|
||||
)
|
||||
(
|
||||
om-make-color 0 0 0
|
||||
)
|
||||
)
|
||||
(
|
||||
set-name newbpf "BPC"
|
||||
)
|
||||
newbpf
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(
|
||||
when newobj
|
||||
)
|
||||
newobj
|
||||
)
|
||||
"x" nil
|
||||
(
|
||||
pairlis
|
||||
(
|
||||
quote
|
||||
(
|
||||
picture winpos winsize
|
||||
)
|
||||
)
|
||||
(
|
||||
list nil
|
||||
(
|
||||
om-make-point 0 0
|
||||
)
|
||||
(
|
||||
om-make-point 1900 1006
|
||||
)
|
||||
)
|
||||
)
|
||||
nil nil nil nil
|
||||
)
|
||||
)
|
||||
)
|
||||
(
|
||||
when
|
||||
(
|
||||
fboundp
|
||||
(
|
||||
quote set-active
|
||||
)
|
||||
)
|
||||
(
|
||||
set-active box nil
|
||||
)
|
||||
)
|
||||
box
|
||||
)
|
||||
)
|
||||
)
|
||||
(
|
||||
quote nil
|
||||
)
|
||||
nil 6.19
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user