diff --git a/TODO.FACTOR.txt b/TODO.FACTOR.txt index e940bc69c5..a569c731b6 100644 --- a/TODO.FACTOR.txt +++ b/TODO.FACTOR.txt @@ -1,6 +1,5 @@ + 0.84: -- default font should not be monospaced - new browser: - show currently selected vocab & words - scroll to existing won't work diff --git a/library/ui/cocoa/menu-bar.factor b/library/ui/cocoa/menu-bar.factor index ae0f136fa1..c48234bf82 100644 --- a/library/ui/cocoa/menu-bar.factor +++ b/library/ui/cocoa/menu-bar.factor @@ -1,8 +1,8 @@ ! Copyright (C) 2005, 2006 Kevin Reid. ! See http://factorcode.org/license.txt for BSD license. -USING: cocoa compiler gadgets gadgets-browser +USING: cocoa compiler gadgets gadgets-browser gadgets-help gadgets-listener gadgets-search kernel memory objc objc-classes -sequences strings words ; +sequences strings words io ; IN: cocoa ! ------------------------------------------------------------------------- diff --git a/library/ui/gadgets/buttons.factor b/library/ui/gadgets/buttons.factor index 9f7b3cb1bc..87ee558a4c 100644 --- a/library/ui/gadgets/buttons.factor +++ b/library/ui/gadgets/buttons.factor @@ -93,4 +93,5 @@ M: button-paint draw-boundary swap [ swap >r = r> set-button-selected? ] curry ; : ( model assoc -- gadget ) - [ first2 ] map-with make-shelf ; + [ first2 ] map-with + make-shelf dup highlight-theme ; diff --git a/library/ui/tools/browser.factor b/library/ui/tools/browser.factor index 156359e54d..8b5083c360 100644 --- a/library/ui/tools/browser.factor +++ b/library/ui/tools/browser.factor @@ -1,6 +1,6 @@ ! Copyright (C) 2006 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. -IN: new-browser +IN: gadgets-browser USING: arrays sequences kernel gadgets-panes definitions prettyprint gadgets-tiles gadgets-theme gadgets-borders gadgets generic gadgets-scrolling math io words models styles @@ -88,6 +88,5 @@ M: browser gadget-title drop "Browser" ; : browser-tool [ browser? ] [ ] [ browse ] ; -M: word show browser-tool call-tool ; - -M: vocab-link show browser-tool call-tool ; +\ word 1 "Browse" [ browser-tool call-tool ] define-operation +vocab-link 1 "Browse" [ browser-tool call-tool ] define-operation diff --git a/library/ui/tools/help.factor b/library/ui/tools/help.factor index 02bd8ceea4..d8dd33c5a7 100644 --- a/library/ui/tools/help.factor +++ b/library/ui/tools/help.factor @@ -23,7 +23,8 @@ help-gadget { gadget get help-gadget-history [ help ] ; C: help-gadget ( -- gadget ) - f over set-help-gadget-history { + T{ link f "handbook" } + over set-help-gadget-history { { [ gadget get ] f f @top } { [ ] f f @center } } make-frame* ; diff --git a/library/ui/tools/workspace.factor b/library/ui/tools/workspace.factor index 3be3089b9a..350d47e195 100644 --- a/library/ui/tools/workspace.factor +++ b/library/ui/tools/workspace.factor @@ -1,22 +1,23 @@ ! Copyright (C) 2006 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. IN: gadgets-workspace -USING: gadgets-listener gadgets-walker gadgets-help -gadgets-walker ; +USING: arrays gadgets gadgets-listener gadgets-buttons +gadgets-walker gadgets-help gadgets-walker sequences +gadgets-books gadgets-frames kernel models namespaces ; TUPLE: workspace model ; : workspace-tabs { - { "Listener" [ ] } - { "Walker" [ ] } - { "Dictionary" [ "Hello"