mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-28 04:41:48 -08:00
custom boot page export
This commit is contained in:
parent
b17bfe1036
commit
67cee3fa86
2 changed files with 20 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;; CLOG - The Common Lisp Omnificent GUI ;;;;
|
||||
;;;; (c) 2020-2021 David Botton ;;;;
|
||||
;;;; (c) 2020-2022 David Botton ;;;;
|
||||
;;;; License BSD 3 Clause ;;;;
|
||||
;;;; ;;;;
|
||||
;;;; clog-utilities.lisp ;;;;
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
(defun create-group ()
|
||||
"Return a new CLOG-GROUP object for storing CLOG-OBJs. They are indexed by
|
||||
their HTML-ID."
|
||||
their HTML-ID or an arbitrary NAME."
|
||||
(make-instance 'clog-group))
|
||||
|
||||
(defgeneric add (clog-group clog-obj &key name)
|
||||
|
|
@ -181,7 +181,7 @@ alpha 0.0 - 1.0"
|
|||
;; linear-gradient(direction, color-stop1, color-stop2, ...);
|
||||
;; radial-gradient(shape size at position, start-color, ..., last-color);
|
||||
;; repeating-linear-gradient(angle | to side-or-corner, color-stop1, color-stop2, ...);
|
||||
;; epeating-radial-gradient(shape size at position, start-color, ..., last-color);
|
||||
;; repeating-radial-gradient(shape size at position, start-color, ..., last-color);
|
||||
;;
|
||||
;;
|
||||
;; The following list are the best web safe fonts for HTML and CSS:
|
||||
|
|
|
|||
|
|
@ -1121,11 +1121,28 @@ of controls and double click to select control."
|
|||
(btn-rndr (create-button tool-bar :content "Rndr"))
|
||||
(btn-save (create-button tool-bar :content "Save"))
|
||||
(btn-load (create-button tool-bar :content "Load"))
|
||||
(btn-exp (create-button tool-bar :content "Export"))
|
||||
(wcontent (center-panel pbox)))
|
||||
(create-div wcontent :content
|
||||
"<br><center>Drop and work with controls on it's window.</center>")
|
||||
(setf (background-color tool-bar) :silver)
|
||||
;; setup tool bar events
|
||||
(set-on-click btn-exp (lambda (obj)
|
||||
(server-file-dialog obj "Export as Boot HTML" "./"
|
||||
(lambda (filename)
|
||||
(when filename
|
||||
(maphash
|
||||
(lambda (html-id control)
|
||||
(declare (ignore html-id))
|
||||
(place-inside-bottom-of (bottom-panel box)
|
||||
(get-placer control)))
|
||||
(get-control-list app panel-id))
|
||||
(save-body-to-file filename :body body :if-exists :rename)
|
||||
(maphash
|
||||
(lambda (html-id control)
|
||||
(declare (ignore html-id))
|
||||
(place-after control (get-placer control)))
|
||||
(get-control-list app panel-id)))))))
|
||||
(set-on-click btn-copy (lambda (obj)
|
||||
(declare (ignore obj))
|
||||
(when (current-control app)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue