|
|
@ -3,6 +3,7 @@ |
|
|
|
(in-package #:cl-bible.clog) |
|
|
|
(in-package #:cl-bible.clog) |
|
|
|
|
|
|
|
|
|
|
|
(defvar *body*) |
|
|
|
(defvar *body*) |
|
|
|
|
|
|
|
(defvar *text* nil) |
|
|
|
|
|
|
|
|
|
|
|
(defun lift-search-window (body search) |
|
|
|
(defun lift-search-window (body search) |
|
|
|
(let ((result (mapcar #'car (l:lift-search search)))) |
|
|
|
(let ((result (mapcar #'car (l:lift-search search)))) |
|
|
@ -32,10 +33,12 @@ |
|
|
|
(v:verse-to-string verse))) |
|
|
|
(v:verse-to-string verse))) |
|
|
|
(lambda (obj) |
|
|
|
(lambda (obj) |
|
|
|
(declare (ignore obj)) |
|
|
|
(declare (ignore obj)) |
|
|
|
(ch:load-chapter canvas |
|
|
|
(when *text* (destroy *text*)) |
|
|
|
|
|
|
|
(setf *text* (ch:load-chapter canvas |
|
|
|
(v:bname verse) |
|
|
|
(v:bname verse) |
|
|
|
(v:chapter verse))))) |
|
|
|
(v:chapter verse)))))) |
|
|
|
results))) |
|
|
|
results) |
|
|
|
|
|
|
|
content)) |
|
|
|
|
|
|
|
|
|
|
|
(defun reload (window) |
|
|
|
(defun reload (window) |
|
|
|
(lambda (obj) |
|
|
|
(lambda (obj) |
|
|
@ -85,12 +88,14 @@ |
|
|
|
(set-on-submit form1 |
|
|
|
(set-on-submit form1 |
|
|
|
(lambda (obj) |
|
|
|
(lambda (obj) |
|
|
|
(declare (ignore obj)) |
|
|
|
(declare (ignore obj)) |
|
|
|
(ch:load-position body (value passage)))) |
|
|
|
(when *text* (destroy *text*)) |
|
|
|
|
|
|
|
(setf *text* (ch:load-position body (value passage))))) |
|
|
|
(create-form-element form3 :submit :value "Search phrase") |
|
|
|
(create-form-element form3 :submit :value "Search phrase") |
|
|
|
(set-on-submit form3 |
|
|
|
(set-on-submit form3 |
|
|
|
(lambda (obj) |
|
|
|
(lambda (obj) |
|
|
|
(declare (ignore obj)) |
|
|
|
(declare (ignore obj)) |
|
|
|
(search-in-bible (value search) d:*bible* body))))) |
|
|
|
(when *text* (destroy *text*)) |
|
|
|
|
|
|
|
(setf *text* (search-in-bible (value search) d:*bible* body)))))) |
|
|
|
|
|
|
|
|
|
|
|
(defun on-new-window (body) |
|
|
|
(defun on-new-window (body) |
|
|
|
(setf *body* body) |
|
|
|
(setf *body* body) |
|
|
|