;;;; CLOG Builder generated code - modify original .clog file and rerender
(in-package :clog-tools)
(defclass asdf-systems (clog:clog-panel)
((dir-button :reader dir-button)
(remove-button :reader remove-button)
(reload-button :reader reload-button)
(load-new-button :reader load-new-button)
(reset-list-button :reader reset-list-button)
(button-panel :reader button-panel)
(source-file :reader source-file)
(pop-open-clog-label :reader pop-open-clog-label)
(pop-open-clog :reader pop-open-clog)
(ext-open-source-label :reader ext-open-source-label)
(ext-open-source :reader ext-open-source)
(check-grid :reader check-grid) (asd-label :reader asd-label)
(files :reader files) (files-label :reader files-label)
(deps :reader deps) (deps-label :reader deps-label)
(loaded-systems :reader loaded-systems)
(sys-label :reader sys-label) (sysgrid :reader sysgrid)))
(defun create-asdf-systems
(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)
'asdf-systems)))
(setf (slot-value panel 'dir-button)
(attach-as-child clog-obj "CLOG97042" :clog-type 'clog:clog-button
:new-id t))
(setf (slot-value panel 'remove-button)
(attach-as-child clog-obj "CLOG97043" :clog-type 'clog:clog-button
:new-id t))
(setf (slot-value panel 'reload-button)
(attach-as-child clog-obj "CLOG97044" :clog-type 'clog:clog-button
:new-id t))
(setf (slot-value panel 'load-new-button)
(attach-as-child clog-obj "CLOG97045" :clog-type 'clog:clog-button
:new-id t))
(setf (slot-value panel 'reset-list-button)
(attach-as-child clog-obj "CLOG97046" :clog-type 'clog:clog-button
:new-id t))
(setf (slot-value panel 'button-panel)
(attach-as-child clog-obj "CLOG97047" :clog-type 'clog:clog-div
:new-id t))
(setf (slot-value panel 'source-file)
(attach-as-child clog-obj "CLOG97048" :clog-type
'clog:clog-form-element :new-id t))
(setf (slot-value panel 'pop-open-clog-label)
(attach-as-child clog-obj "CLOG97049" :clog-type 'clog:clog-label
:new-id t))
(setf (slot-value panel 'pop-open-clog)
(attach-as-child clog-obj "CLOG97050" :clog-type
'clog:clog-form-element :new-id t))
(setf (slot-value panel 'ext-open-source-label)
(attach-as-child clog-obj "CLOG97051" :clog-type 'clog:clog-label
:new-id t))
(setf (slot-value panel 'ext-open-source)
(attach-as-child clog-obj "CLOG97052" :clog-type
'clog:clog-form-element :new-id t))
(setf (slot-value panel 'check-grid)
(attach-as-child clog-obj "CLOG97053" :clog-type 'clog:clog-div
:new-id t))
(setf (slot-value panel 'asd-label)
(attach-as-child clog-obj "CLOG97054" :clog-type 'clog:clog-label
:new-id t))
(setf (slot-value panel 'files)
(attach-as-child clog-obj "CLOG97055" :clog-type 'clog:clog-select
:new-id t))
(setf (slot-value panel 'files-label)
(attach-as-child clog-obj "CLOG97056" :clog-type 'clog:clog-label
:new-id t))
(setf (slot-value panel 'deps)
(attach-as-child clog-obj "CLOG97057" :clog-type 'clog:clog-select
:new-id t))
(setf (slot-value panel 'deps-label)
(attach-as-child clog-obj "CLOG97058" :clog-type 'clog:clog-label
:new-id t))
(setf (slot-value panel 'loaded-systems)
(attach-as-child clog-obj "CLOG97059" :clog-type 'clog:clog-select
:new-id t))
(setf (slot-value panel 'sys-label)
(attach-as-child clog-obj "CLOG97060" :clog-type 'clog:clog-label
:new-id t))
(setf (slot-value panel 'sysgrid)
(attach-as-child clog-obj "CLOG97061" :clog-type 'clog:clog-div
:new-id t))
(let ((target (sys-label panel)))
(declare (ignorable target))
(setf (attribute target "for")
(clog:js-query target
"$('[data-clog-name=\\'loaded-systems\\']').attr('id')")))
(let ((target (loaded-systems panel)))
(declare (ignorable target))
(asdf-browser-reset panel))
(let ((target (deps-label panel)))
(declare (ignorable target))
(setf (attribute target "for")
(clog:js-query target
"$('[data-clog-name=\\'deps\\']').attr('id')")))
(let ((target (files-label panel)))
(declare (ignorable target))
nil)
(let ((target (asd-label panel)))
(declare (ignorable target))
nil)
(let ((target (ext-open-source-label panel)))
(declare (ignorable target))
(setf (attribute target "for")
(clog:js-query target
"$('[data-clog-name=\\'ext-open-source\\']').attr('id')")))
(let ((target (pop-open-clog-label panel)))
(declare (ignorable target))
(setf (attribute target "for")
(clog:js-query target
"$('[data-clog-name=\\'pop-open-clog-label\\']').attr('id')")))
(clog:set-on-change (loaded-systems panel)
(lambda (target)
(declare (ignorable target))
(asdf-browser-populate panel)))
(clog:set-on-double-click (deps panel)
(lambda (target)
(declare (ignorable target))
(setf (text-value (loaded-systems panel))
(text-value target))
(asdf-browser-populate panel)))
(clog:set-on-double-click (files panel)
(lambda (target)
(declare (ignorable target))
(asdf-files-double-click panel target)))
(clog:set-on-double-click (source-file panel)
(lambda (target)
(declare (ignorable target))
(on-open-file panel :open-file
(text-value target))))
(clog:set-on-click (reset-list-button panel)
(lambda (target)
(declare (ignorable target))
(asdf-browser-reset panel)))
(clog:set-on-click (load-new-button panel)
(lambda (target)
(declare (ignorable target))
(clog-gui:input-dialog panel "Load New System:"
(lambda (fname)
(projects-load fname)
(asdf-browser-reset panel)
(setf (text-value
(loaded-systems
panel))
fname)
(asdf-browser-populate
panel))
:title "Quickload")))
(clog:set-on-click (reload-button panel)
(lambda (target)
(declare (ignorable target))
(let ((fname (text-value (loaded-systems panel))))
(projects-load fname)
(setf (text-value (loaded-systems panel)) fname)
(asdf-browser-populate panel))))
(clog:set-on-click (dir-button panel)
(lambda (target)
(declare (ignorable target))
(on-dir-tree panel :dir
(asdf/system:system-source-directory
(text-value (loaded-systems panel))))))
panel))