From a22dffcd627f59e51c54c5a0c5c86bbbceb66858 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Tue, 15 Feb 2005 23:05:28 +0000 Subject: [PATCH] UI fixes --- TODO.FACTOR.txt | 4 +- examples/gadget-test.factor | 4 +- library/bootstrap/boot-stage2.factor | 159 +++++++++++++++------------ library/ui/buttons.factor | 2 +- library/ui/hand.factor | 4 + library/ui/layouts.factor | 22 ++-- library/ui/shapes.factor | 15 ++- library/ui/world.factor | 4 +- native/unix/io.c | 4 + 9 files changed, 125 insertions(+), 93 deletions(-) diff --git a/TODO.FACTOR.txt b/TODO.FACTOR.txt index 6ada5d8e5e..3d4a59d61a 100644 --- a/TODO.FACTOR.txt +++ b/TODO.FACTOR.txt @@ -8,18 +8,18 @@ - support USING: - special completion for USE:/IN: - vectors: ensure its ok with bignum indices -- if gadgets are moved, added or deleted, update hand. - code gc - type inference fails with some assembler words; displaced, register and other predicates need to inherit from list not cons, and need stronger branch partial eval - print warning on null class - optimize away dispatch -- layouts with gaps - alignment of gadgets inside their bounding boxes needs thought - faster completion - ppc register decls +- begin-scan, next-object, end-scan primitives +- each-object, each-slot combinators - port leak - references primitive - ditch % for tuples? diff --git a/examples/gadget-test.factor b/examples/gadget-test.factor index dd53fab69b..7a46689dc9 100644 --- a/examples/gadget-test.factor +++ b/examples/gadget-test.factor @@ -66,8 +66,8 @@ USE: words : make-shapes ( -- ) f world get set-gadget-children - 100 20 0 0 "pile" set - 0 0 0 0 "shelf" set + default-gap "pile" set + default-gap "shelf" set "Close" [ "dialog" get world get remove-gadget ]