(in-package "CLOG-TOOLS") (defclass clog-templates (clog:clog-panel) ((fill-button :reader fill-button) (template-box :reader template-box) (win :accessor win))) (defun create-clog-templates (clog-obj &key (hidden nil) (class nil) (html-id nil) (auto-place t)) (let ((panel (change-class (clog:create-div clog-obj :content "
" :hidden hidden :class class :html-id html-id :auto-place auto-place) 'clog-templates))) (setf (slot-value panel 'fill-button) (attach-as-child clog-obj "CLOGB3868051557" :clog-type 'clog:clog-button :new-id t)) (setf (slot-value panel 'template-box) (attach-as-child clog-obj "CLOGB3868051556" :clog-type 'clog:clog-select :new-id t)) (clog:set-on-click (fill-button panel) (lambda (target) (declare (ignorable target)) (fill-button-clicked panel))) panel))