From 14778affb684e32c8b4119eb416c8b9d25bf878c Mon Sep 17 00:00:00 2001 From: slava Date: Thu, 14 Dec 2006 06:30:50 +0000 Subject: [PATCH] Finish documenting ui/gadgets: scrolling sliders tracks viewports --- TODO.txt | 1 - core/io/stream.facts | 1 - core/test/math/integer.factor | 1 + core/ui/gadgets/books.facts | 2 +- core/ui/gadgets/presentations.facts | 2 +- core/ui/gadgets/scrolling.factor | 18 +++----- core/ui/gadgets/scrolling.facts | 44 ++++++++++++++++++ core/ui/gadgets/sliders.factor | 15 ++++--- core/ui/gadgets/sliders.facts | 70 +++++++++++++++++++++++++++++ core/ui/gadgets/tracks.factor | 3 -- core/ui/gadgets/tracks.facts | 26 +++++++++++ core/ui/gadgets/viewports.facts | 10 +++++ core/ui/hierarchy.facts | 4 +- core/ui/load.factor | 6 ++- 14 files changed, 175 insertions(+), 28 deletions(-) create mode 100644 core/ui/gadgets/scrolling.facts create mode 100644 core/ui/gadgets/sliders.facts create mode 100644 core/ui/gadgets/tracks.facts create mode 100644 core/ui/gadgets/viewports.facts diff --git a/TODO.txt b/TODO.txt index 219b0c0e35..4c1135462b 100644 --- a/TODO.txt +++ b/TODO.txt @@ -9,7 +9,6 @@ - poorly documented vocabs: - alien - - assembler - cocoa - command-line - compiler diff --git a/core/io/stream.facts b/core/io/stream.facts index b4586bf52a..d96b5197e3 100644 --- a/core/io/stream.facts +++ b/core/io/stream.facts @@ -75,7 +75,6 @@ HELP: with-stream-style { $description "Calls the quotation in a new dynamic scope where calls to " { $link write } ", " { $link format } " and other stream output words automatically inherit style settings from " { $snippet "style" } "." $terpri "Unlike " { $link with-nested-stream } ", the quotation's output is inline, and not nested in a paragraph block." } -{ $notes "Details are in the documentation for " { $link with-stream-style } "." } $io-error ; HELP: stream-print diff --git a/core/test/math/integer.factor b/core/test/math/integer.factor index f62ef9a0f2..e8c42243c7 100644 --- a/core/test/math/integer.factor +++ b/core/test/math/integer.factor @@ -117,3 +117,4 @@ unit-test ! We don't care if this fails or returns 0 (its CPU-specific) ! as long as it doesn't crash [ ] [ [ 0 0 /i ] catch clear ] unit-test +[ ] [ [ 100000000000000000 0 /i ] catch clear ] unit-test diff --git a/core/ui/gadgets/books.facts b/core/ui/gadgets/books.facts index 11f7831161..b7d32ad6c1 100644 --- a/core/ui/gadgets/books.facts +++ b/core/ui/gadgets/books.facts @@ -4,7 +4,7 @@ USING: help gadgets ; HELP: book { $class-description "A book is a " { $link control } " containing one or more children. The " { $link control-value } " is the index of exactly one child to be visible at any one time, the rest being hidden by having their " { $link gadget-visible? } " slots set to " { $link f } ". The sole visible child assumes the dimensions of the book gadget." $terpri -"Books are created with " { $link } "." } ; +"Books are created by calling " { $link } "." } ; HELP: { $values { "pages" "a sequence of gadgets" } { "book" book } } diff --git a/core/ui/gadgets/presentations.facts b/core/ui/gadgets/presentations.facts index 20a589e8a1..a7f4b8bdff 100644 --- a/core/ui/gadgets/presentations.facts +++ b/core/ui/gadgets/presentations.facts @@ -45,7 +45,7 @@ HELP: { $see-also "presentations" } ; HELP: -{ $values { "target" object } { "command" command } { "button" "a new " button } } +{ $values { "target" object } { "command" command } { "button" "a new " { $link button } } } { $description "Creates a " { $link } " which invokes the command on " { $snippet "target" } " when clicked." } { $see-also