From 84a2ad091e2f26e9ae84cefcb00917d024ef36b1 Mon Sep 17 00:00:00 2001 From: Daniel Ehrenberg Date: Fri, 30 Jan 2009 09:51:59 -0600 Subject: [PATCH] Fixing ui.gadgets.slate docs --- extra/ui/gadgets/slate/slate-docs.factor | 13 ++++++++++++ extra/ui/gadgets/slate/slate.factor | 27 +++--------------------- 2 files changed, 16 insertions(+), 24 deletions(-) create mode 100644 extra/ui/gadgets/slate/slate-docs.factor diff --git a/extra/ui/gadgets/slate/slate-docs.factor b/extra/ui/gadgets/slate/slate-docs.factor new file mode 100644 index 0000000000..0225c20a1e --- /dev/null +++ b/extra/ui/gadgets/slate/slate-docs.factor @@ -0,0 +1,13 @@ +! Copyright (C) 2009 Eduardo Cavazos +! See http://factorcode.org/license.txt for BSD license. +USING: help.markup help.syntax multiline ; +IN: ui.gadgets.slate + +ARTICLE: "ui.gadgets.slate" "Slate gadget" +{ $description "A gadget with an 'action' slot which should be set to a callable."} +{ $heading "Example" } +{ $code <" USING: processing.shapes ui.gadgets.slate ui.gadgets.panes ; +[ { { 10 10 } { 50 30 } { 10 50 } } polygon fill-mode ] +gadget."> } ; + +ABOUT: "ui.gadgets.slate" diff --git a/extra/ui/gadgets/slate/slate.factor b/extra/ui/gadgets/slate/slate.factor index af2dfcccc2..6813388afc 100644 --- a/extra/ui/gadgets/slate/slate.factor +++ b/extra/ui/gadgets/slate/slate.factor @@ -1,32 +1,11 @@ - -USING: kernel namespaces opengl ui.render ui.gadgets accessors - help.syntax - easy-help ; +! Copyright (C) 2009 Eduardo Cavazos +! See http://factorcode.org/license.txt for BSD license. +USING: kernel namespaces opengl ui.render ui.gadgets accessors ; IN: ui.gadgets.slate ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -ARTICLE: "slate" "Slate Gadget" - -Summary: - - A gadget with an 'action' slot which should be set to a callable. .. - -Example: - - ! Load the right vocabs for the examples - - USING: processing.shapes ui.gadgets.slate ; .. - -Example: - - [ { { 10 10 } { 50 30 } { 10 50 } } polygon fill-mode ] - gadget. .. - -; - -ABOUT: "slate" ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!