;;;; CLOG Builder generated code - modify original .clog file and rerender
(in-package :clog-tools)
(defclass clog-builder-repl (clog:clog-panel)
((send-to-repl :reader send-to-repl) (status :reader status)
(playground :reader playground) (terminal :reader terminal)
(package-div :reader package-div)))
(defun create-clog-builder-repl
(clog-obj &key (hidden nil) (class nil) (html-id nil) (auto-place t))
(let ((panel
(change-class
(clog:create-div clog-obj :content
"
status
"
:hidden hidden :class class :html-id html-id
:auto-place auto-place)
'clog-builder-repl)))
(setf (slot-value panel 'send-to-repl)
(attach-as-child clog-obj "CLOGB39225198357" :clog-type
'clog:clog-button :new-id t))
(setf (slot-value panel 'status)
(attach-as-child clog-obj "CLOGB3922519803" :clog-type
'clog:clog-div :new-id t))
(setf (slot-value panel 'playground)
(attach-as-child clog-obj "CLOGB3922519802" :clog-type
'clog-ace:clog-ace-element :new-id t))
(setf (slot-value panel 'terminal)
(attach-as-child clog-obj "CLOGB3922519801" :clog-type
'clog-terminal:clog-terminal-element :new-id t))
(setf (slot-value panel 'package-div)
(attach-as-child clog-obj "CLOGB3922519800" :clog-type
'clog:clog-form-element :new-id t))
(let ((target (terminal panel)))
(declare (ignorable target))
(clog-terminal:attach-clog-terminal target :greetings
"CLOG Builder REPL - (clog-repl) or (clog-builder-repl) for GUI using *body*")
(clog-terminal:prompt target "> ")
(repl-on-create panel target))
(let ((target (playground panel)))
(declare (ignorable target))
(clog-ace:attach-clog-ace target)
(setf (clog-ace:theme target) "ace/theme/terminal")
(setf (clog-ace:mode target) "ace/mode/lisp")
(setf (clog-ace:tab-size target) 2))
(clog-terminal:set-on-command (terminal panel)
(lambda (target data)
(declare (ignorable target data))
(repl-on-commmand panel target data)))
(clog:set-on-click (send-to-repl panel)
(lambda (target)
(declare (ignorable target))
(repl-on-send-to-repl panel target)))
panel))