mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
move more functionality out of panel code
This commit is contained in:
parent
4af2cf6a0e
commit
ca8d13352b
3 changed files with 65 additions and 63 deletions
|
|
@ -47,6 +47,27 @@
|
|||
(setf (text-value (project-list panel)) "None")
|
||||
(projects-populate panel)))))
|
||||
|
||||
(defun projects-edit-asd (panel target)
|
||||
(declare (ignore target))
|
||||
(let ((sel (text-value (project-list panel))))
|
||||
(on-open-file panel :open-file (asdf:system-source-file
|
||||
(asdf:find-system sel)))))
|
||||
|
||||
(defun projects-unload (panel target)
|
||||
(declare (ignore target))
|
||||
(let ((sel (text-value (project-list panel))))
|
||||
(unless (equal sel "None")
|
||||
(asdf:clear-system sel)
|
||||
(setf (text-value (project-list panel)) "None")
|
||||
(projects-populate panel))))
|
||||
|
||||
(defun projects-reload (panel target)
|
||||
(declare (ignore target))
|
||||
(let ((sel (text-value (project-list panel))))
|
||||
(unless (equal sel "None")
|
||||
(asdf:clear-system sel)
|
||||
(projects-populate panel))))
|
||||
|
||||
(defun projects-view-dir (panel)
|
||||
(let* ((sel (text-value (project-list panel))))
|
||||
(if (equal sel "None")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue