Module: environment-framework Synopsis: Environment Framework Author: Andy Armstrong Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: Functional Objects Library Public License Version 1.0 Dual-license: GNU Lesser General Public License Warranty: Distributed WITHOUT WARRANTY OF ANY KIND /// Undo protocols define open abstract class () end class ; define method initialize (frame :: , #key) => () next-method(); command-enabled?(, frame) := #f; command-enabled?(, frame) := #f; end method initialize; /// Undo commands define class () end class ; define class () end class ; define method command-available-for-focus? (sheet :: , command == ) => (available? :: ) #f end method command-available-for-focus?; define method command-available-for-focus? (sheet :: , command == ) => (available? :: ) #f end method command-available-for-focus?; /// Undo command table define variable $undo-bitmap :: = "Undo"; define variable $redo-bitmap :: = "Redo"; define constant $undo-doc = "Undoes the last action."; define constant $redo-doc = "Undoes the last Undo operation."; define command-table *undo-command-table* (*global-command-table*) menu-item "Undo" = , documentation: $undo-doc; menu-item "Redo" = , documentation: $redo-doc; end command-table *undo-command-table*; define method make-undo-tool-bar-buttons (frame :: ) => (buttons :: ) vector(make(