USING: help.markup help.syntax ui.gadgets.buttons ui.gadgets.menus models ui.operations summary kernel ui.gadgets.worlds ui.gadgets ui.gadgets.status-bar ; IN: ui.gadgets.presentations HELP: presentation { $class-description "A presentation is a " { $link button } " which represents an object. Left-clicking a presentation invokes the default " { $link operation } ", and right-clicking displays a menu of possible operations output by " { $link object-operations } "." $nl "Presentations are created by calling " { $link } "." $nl "Presentations have two slots:" { $list { { $snippet "object" } " - the object being presented." } { { $snippet "hook" } " - " { $quotation ( presentation -- ) } ". The default value is " { $snippet "[ drop ]" } "." } } } ; HELP: invoke-presentation { $values { "presentation" presentation } { "command" "a command" } } { $description "Calls the " { $snippet "hook" } " and then invokes the command on the " { $snippet "object" } "." } ; { invoke-presentation invoke-primary invoke-secondary } related-words HELP: invoke-primary { $values { "presentation" presentation } } { $description "Invokes the " { $link primary-operation } " associated to the " { $snippet "object" } ". This word is executed when the presentation is clicked with the left mouse button." } ; HELP: invoke-secondary { $values { "presentation" presentation } } { $description "Invokes the " { $link secondary-operation } " associated to the " { $snippet "object" } ". This word is executed when a list receives a " { $snippet "RET" } " key press." } ; HELP: { $values { "label" "a label" } { "object" object } { "button" "a new " { $link button } } } { $description "Creates a new " { $link presentation } " derived from " { $link } "." } { $see-also "presentations" } ; {