;;;; CLOG Builder generated code - modify original .clog file and rerender (in-package :clog-tools) (defclass panel-search (clog:clog-panel) ((status-bar :reader status-bar) (save-btn :reader save-btn) (eval-all-btn :reader eval-all-btn) (eval-sel-btn :reader eval-sel-btn) (eval-form-btn :reader eval-form-btn) (preview-buttons :reader preview-buttons) (preview-panel :reader preview-panel) (preview-ace :reader preview-ace) (preview-div :reader preview-div) (pac-line :reader pac-line) (preview-grid :reader preview-grid) (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 'status-bar) (attach-as-child clog-obj "CLOGB3930902009" :clog-type 'clog:clog-form-element :new-id t)) (setf (slot-value panel 'save-btn) (attach-as-child clog-obj "CLOGB3930902008" :clog-type 'clog:clog-button :new-id t)) (setf (slot-value panel 'eval-all-btn) (attach-as-child clog-obj "CLOGB3930902007" :clog-type 'clog:clog-button :new-id t)) (setf (slot-value panel 'eval-sel-btn) (attach-as-child clog-obj "CLOGB3930902006" :clog-type 'clog:clog-button :new-id t)) (setf (slot-value panel 'eval-form-btn) (attach-as-child clog-obj "CLOGB3930902005" :clog-type 'clog:clog-button :new-id t)) (setf (slot-value panel 'preview-buttons) (attach-as-child clog-obj "CLOGB3930902004" :clog-type 'clog:clog-div :new-id t)) (setf (slot-value panel 'preview-panel) (attach-as-child clog-obj "CLOGB3930902003" :clog-type 'clog:clog-div :new-id t)) (setf (slot-value panel 'preview-ace) (attach-as-child clog-obj "CLOGB3930902002" :clog-type 'clog-ace:clog-ace-element :new-id t)) (setf (slot-value panel 'preview-div) (attach-as-child clog-obj "CLOGB3930902001" :clog-type 'clog:clog-div :new-id t)) (setf (slot-value panel 'pac-line) (attach-as-child clog-obj "CLOGB393090238222" :clog-type 'clog:clog-form-element :new-id t)) (setf (slot-value panel 'preview-grid) (attach-as-child clog-obj "CLOGB393090262523" :clog-type 'clog:clog-div :new-id t)) (setf (slot-value panel 'search-button) (attach-as-child clog-obj "CLOGB3930902000" :clog-type 'clog:clog-form-element :new-id t)) (setf (slot-value panel 'subdir-label) (attach-as-child clog-obj "CLOGB3930901999" :clog-type 'clog:clog-label :new-id t)) (setf (slot-value panel 'subdir-check) (attach-as-child clog-obj "CLOGB3930901998" :clog-type 'clog:clog-form-element :new-id t)) (setf (slot-value panel 'name-regex-input) (attach-as-child clog-obj "CLOGB3930901997" :clog-type 'clog:clog-form-element :new-id t)) (setf (slot-value panel 'grep-input) (attach-as-child clog-obj "CLOGB3930901996" :clog-type 'clog:clog-form-element :new-id t)) (setf (slot-value panel 'dir-input) (attach-as-child clog-obj "CLOGB3930901995" :clog-type 'clog:clog-form-element :new-id t)) (setf (slot-value panel 'result-box) (attach-as-child clog-obj "CLOGB3930901994" :clog-type 'clog:clog-select :new-id t)) (setf (slot-value panel 'result-grid) (attach-as-child clog-obj "CLOGB3930901993" :clog-type 'clog:clog-div :new-id t)) (setf (slot-value panel 'search-form) (attach-as-child clog-obj "CLOGB3930901992" :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))