1
0
Fork 0
tinmop/src/gui/client/menu-command.lisp

35 lines
1.1 KiB
Common Lisp
Raw Normal View History

(in-package :client-menu-command)
(defun help-about ()
2023-02-17 15:05:09 +01:00
(let ((master gui-goodies:*toplevel*))
(gui:with-toplevel (toplevel :master master :title (_ "About"))
2023-02-17 15:05:09 +01:00
(gui:transient toplevel master)
(let* ((editor (make-instance 'gui:scrolled-text
:master toplevel
:cursor gui:+standard-cursor+
:use-horizontal-scrolling-p nil
:read-only t)))
(setf (gui:text editor) (format nil +help-about-message+))
(gui:pack editor :fill :both)))))
(defun quit ()
(gui:break-mainloop)
(client-events:stop-events-loop)
(comm:close-server))
(defun show-certificates ()
(let ((master gui-goodies:*toplevel*))
(client-certificates-window:init-window master)))
(defun show-streams ()
(let ((master gui-goodies:*toplevel*))
(client-stream-window:init-window master)))
(defun show-bookmarks-clsr (main-window)
(lambda ()
(client-main-window:show-bookmarks-page main-window)))
(defun manage-bookmarks-clsr (main-window)
(lambda ()
(client-bookmark-window:manage-bookmarks main-window)))