;;;; CLOG Builder generated code - modify original .clog file and rerender (in-package :clog-tools) (defclass panel-search (clog:clog-panel) ((preview-ace :reader preview-ace) (preview-div :reader preview-div) (search-button :reader search-button) (subdir-label :reader subdir-label) (subdir-check :reader subdir-check) (name-regex-input :reader name-regex-input) (grep-input :reader grep-input) (dir-input :reader dir-input) (result-box :reader result-box) (result-grid :reader result-grid) (search-form :reader search-form))) (defun create-panel-search (clog-obj &key hidden class style html-id (auto-place t)) (let ((panel (change-class (clog:create-div clog-obj :content "
" :hidden hidden :class class :style style :html-id html-id :auto-place auto-place) 'panel-search))) (setf (slot-value panel 'preview-ace) (attach-as-child clog-obj "CLOGB392931441513" :clog-type 'clog-ace:clog-ace-element :new-id t)) (setf (slot-value panel 'preview-div) (attach-as-child clog-obj "CLOGB392931430312" :clog-type 'clog:clog-div :new-id t)) (setf (slot-value panel 'search-button) (attach-as-child clog-obj "CLOGB3929313694" :clog-type 'clog:clog-form-element :new-id t)) (setf (slot-value panel 'subdir-label) (attach-as-child clog-obj "CLOGB3929313693" :clog-type 'clog:clog-label :new-id t)) (setf (slot-value panel 'subdir-check) (attach-as-child clog-obj "CLOGB3929313692" :clog-type 'clog:clog-form-element :new-id t)) (setf (slot-value panel 'name-regex-input) (attach-as-child clog-obj "CLOGB3929313691" :clog-type 'clog:clog-form-element :new-id t)) (setf (slot-value panel 'grep-input) (attach-as-child clog-obj "CLOGB3929313690" :clog-type 'clog:clog-form-element :new-id t)) (setf (slot-value panel 'dir-input) (attach-as-child clog-obj "CLOGB3929313689" :clog-type 'clog:clog-form-element :new-id t)) (setf (slot-value panel 'result-box) (attach-as-child clog-obj "CLOGB3929313688" :clog-type 'clog:clog-select :new-id t)) (setf (slot-value panel 'result-grid) (attach-as-child clog-obj "CLOGB3929313687" :clog-type 'clog:clog-div :new-id t)) (setf (slot-value panel 'search-form) (attach-as-child clog-obj "CLOGB3929313686" :clog-type 'clog:clog-form :new-id t)) (let ((target (grep-input panel))) (declare (ignorable target)) (setf (attribute target "autofocus") "true") (focus target)) (let ((target (subdir-label panel))) (declare (ignorable target)) (setf (attribute target "for") (clog:js-query target "$('[data-clog-name=\\'subdir-check\\']').attr('id')"))) (let ((target (preview-ace panel))) (declare (ignorable target)) (clog-ace:attach-clog-ace target) (setf (clog-ace:theme target) "ace/theme/iplastic") (setf (clog-ace:mode target) "ace/mode/lisp") (setf (clog-ace:tab-size target) 2)) (clog:set-on-change (dir-input panel) (lambda (target) (declare (ignorable target)) (panel-search-dir-change panel target))) (clog:set-on-click (search-button panel) (lambda (target) (declare (ignorable target)) (panel-search-on-click panel target))) panel))