From 24d55cc6a679988c4249ed4858a1ece64c30b084 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Tue, 6 Jan 2009 13:56:14 -0600 Subject: [PATCH] Browser tool is now its own window; update help-window usages to open browser instead --- basis/ui/tools/browser/browser.factor | 90 +++++++++++++++-------- basis/ui/tools/deploy/deploy.factor | 15 ++-- basis/ui/tools/inspector/inspector.factor | 9 ++- basis/ui/tools/listener/listener.factor | 9 +-- basis/ui/tools/profiler/profiler.factor | 4 +- basis/ui/tools/tools-docs.factor | 1 + basis/ui/tools/tools.factor | 12 +-- basis/ui/tools/walker/walker.factor | 6 +- basis/ui/tools/workspace/workspace.factor | 23 +----- 9 files changed, 86 insertions(+), 83 deletions(-) diff --git a/basis/ui/tools/browser/browser.factor b/basis/ui/tools/browser/browser.factor index 2018d5b622..094739e8c3 100644 --- a/basis/ui/tools/browser/browser.factor +++ b/basis/ui/tools/browser/browser.factor @@ -1,49 +1,50 @@ -! Copyright (C) 2006, 2008 Slava Pestov. +! Copyright (C) 2006, 2009 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. -USING: debugger ui.tools.workspace help help.topics kernel -models models.history tools.apropos ui.commands ui.gadgets -ui.gadgets.panes ui.gadgets.scrollers ui.gadgets.tracks -ui.gestures ui.gadgets.buttons ui.gadgets.packs -ui.gadgets.editors ui.gadgets.labels models compiler.units -assocs words vocabs accessors fry combinators.short-circuit ; +USING: debugger help help.topics kernel models compiler.units +assocs words vocabs accessors fry combinators.short-circuit +models models.history tools.apropos ui.tools.workspace +ui.commands ui.gadgets ui.gadgets.panes ui.gadgets.scrollers +ui.gadgets.tracks ui.gestures ui.gadgets.buttons ui.gadgets.packs +ui.gadgets.editors ui.gadgets.labels ui ; IN: ui.tools.browser -TUPLE: browser-gadget < track pane history ; +TUPLE: browser-gadget < track pane scroller search-field ; : show-help ( link browser-gadget -- ) - history>> dup add-history + model>> dup add-history [ >link ] dip set-model ; : ( browser-gadget -- gadget ) - history>> [ '[ _ print-topic ] try ] ; - -: init-history ( browser-gadget -- ) - "handbook" >link >>history drop ; + model>> [ '[ _ print-topic ] try ] ; : search-browser ( string browser -- ) [ ] dip show-help ; : ( browser -- field ) - '[ _ search-browser ] 10 >>min-width 10 >>max-width ; + '[ _ search-browser ] + 10 >>min-width + 10 >>max-width ; : ( browser -- toolbar ) { 5 5 } >>gap over add-gadget "Search:"