Module: environment-debugger Author: Jason Trenouth, 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 define variable $notifier-dialog-width :: = 500; define variable $notifier-dialog-height :: = 350; define sealed frame () sealed slot notifier-abort-restart :: false-or() = #f; sealed constant slot notifier-project :: , required-init-keyword: project:; sealed constant slot notifier-thread :: false-or(), required-init-keyword: remote-thread:; pane notifier-context-pane (dialog) make(, lines: 2, read-only?: #t, tab-stop?: #t, scroll-bars: #"none"); pane notifier-restarts-pane (dialog) make(, activate-callback: exit-dialog, label-key: curry(application-restart-message, dialog.notifier-project)); pane notifier-abort-button (dialog) make-notifier-button (dialog, #"abort", "Abort the current operation and continue %s"); pane notifier-continue-button (dialog) make-notifier-button (dialog, #"continue", "Continue %s using the selected restart"); pane notifier-debug-button (dialog) make-notifier-button (dialog, #"debug" "Debug %s"); pane notifier-exit-button (dialog) make-notifier-button (dialog, #"exit", "Exit %s"); pane notifier-button-box (dialog) make(, child: begin let project = dialog.notifier-project; let name = project.project-application-short-name; vertically (spacing: 5) dialog.notifier-abort-button; vertically (spacing: 5) dialog.notifier-continue-button; horizontally (spacing: 0) make(, width: 18, fixed-width?: #t); dialog.notifier-restarts-pane; end end; dialog.notifier-debug-button; dialog.notifier-exit-button; end end, value-changed-callback: method (gadget) gadget-enabled?(dialog.notifier-restarts-pane) := gadget-value(gadget) == #"continue" end); layout (dialog) horizontally (spacing: 8, y-alignment: #"top") make(