2023-02-05 14:07:13 +01:00
|
|
|
(in-package :client-menu-command)
|
|
|
|
|
|
|
|
(defun help-about ()
|
2023-02-17 15:05:09 +01:00
|
|
|
(let ((master gui-goodies:*toplevel*))
|
2023-04-09 10:05:59 +02:00
|
|
|
(gui:with-toplevel (toplevel :master master :title (_ "About"))
|
2023-02-17 15:05:09 +01:00
|
|
|
(gui:transient toplevel master)
|
2023-04-15 14:09:23 +02:00
|
|
|
(let* ((font (gui-goodies:make-font "sans" 12 nil nil nil))
|
|
|
|
(link-font (gui-goodies:make-font "sans" 12 :bold nil t))
|
|
|
|
(text-widget (make-instance 'gui:scrolled-text
|
|
|
|
:font font
|
|
|
|
:master toplevel
|
|
|
|
:cursor gui:+standard-cursor+
|
|
|
|
:use-horizontal-scrolling-p nil
|
|
|
|
:read-only t))
|
|
|
|
(button-frame (make-instance 'gui:frame :master toplevel))
|
|
|
|
(close-button (make-instance 'gui:button
|
|
|
|
:image icons:*cross*
|
|
|
|
:master button-frame
|
|
|
|
:command (lambda ()
|
|
|
|
(gui:exit-from-toplevel toplevel)))))
|
|
|
|
(setf (gui:text text-widget) (format nil +help-about-message-no-uri+))
|
|
|
|
(gui:make-link-button text-widget
|
|
|
|
`(:line 1 :char 0)
|
|
|
|
`(:line 1 :char :end)
|
|
|
|
link-font
|
|
|
|
(gui-goodies:parse-color "blue")
|
|
|
|
(gui-goodies:parse-color "white")
|
|
|
|
(lambda ()
|
|
|
|
(os-utils:xdg-open +package-url+)))
|
|
|
|
(gui:append-line text-widget "For bug report please point your browser to:")
|
|
|
|
(gui:append-line text-widget "")
|
|
|
|
(gui:append-text text-widget +issue-tracker+)
|
|
|
|
(let ((last-line (gui:maximum-lines-number text-widget)))
|
|
|
|
(gui:make-link-button text-widget
|
|
|
|
`(:line ,last-line :char 0)
|
|
|
|
(gui:make-indices-end)
|
|
|
|
link-font
|
|
|
|
(gui-goodies:parse-color "blue")
|
|
|
|
(gui-goodies:parse-color "white")
|
|
|
|
(lambda ()
|
|
|
|
(os-utils:xdg-open +issue-tracker+))))
|
|
|
|
(gui-goodies:attach-tooltips (close-button (_ "Close")))
|
|
|
|
(gui:grid text-widget 0 0 :sticky :news)
|
|
|
|
(gui:grid button-frame 1 0 :sticky :s)
|
|
|
|
(gui:grid close-button 0 0 :sticky :n)
|
|
|
|
(gui:wait-complete-redraw)))))
|
2023-02-05 14:07:13 +01:00
|
|
|
|
|
|
|
(defun quit ()
|
2023-05-03 16:12:23 +02:00
|
|
|
(gui:exit-nodgui)
|
2023-02-09 16:28:53 +01:00
|
|
|
(client-events:stop-events-loop)
|
2023-02-19 12:57:10 +01:00
|
|
|
(comm:close-server))
|
2023-03-21 17:49:58 +01:00
|
|
|
|
|
|
|
(defun show-certificates ()
|
2023-03-24 10:46:54 +01:00
|
|
|
(let ((master gui-goodies:*toplevel*))
|
|
|
|
(client-certificates-window:init-window master)))
|
2023-03-29 18:13:46 +02:00
|
|
|
|
|
|
|
(defun show-streams ()
|
|
|
|
(let ((master gui-goodies:*toplevel*))
|
|
|
|
(client-stream-window:init-window master)))
|
2023-04-09 11:29:01 +02:00
|
|
|
|
|
|
|
(defun show-bookmarks-clsr (main-window)
|
|
|
|
(lambda ()
|
2023-04-09 11:47:41 +02:00
|
|
|
(client-main-window:show-bookmarks-page main-window)))
|
2023-04-09 14:00:15 +02:00
|
|
|
|
|
|
|
(defun manage-bookmarks-clsr (main-window)
|
|
|
|
(lambda ()
|
|
|
|
(client-bookmark-window:manage-bookmarks main-window)))
|
2023-04-10 18:29:17 +02:00
|
|
|
|
|
|
|
(defun show-search-frame-clsr (main-window)
|
|
|
|
(lambda ()
|
2023-05-19 21:34:01 +02:00
|
|
|
(gui:grid (client-main-window::search-frame main-window) 2 0 :sticky :news)
|
2023-05-13 21:20:49 +02:00
|
|
|
(gui:focus (client-search-frame::entry (client-main-window::search-frame main-window)))))
|
2023-04-13 15:03:57 +02:00
|
|
|
|
|
|
|
(defun show-tour ()
|
|
|
|
(let ((master gui-goodies:*toplevel*))
|
|
|
|
(client-tour-window:init-window master)))
|
2023-05-06 12:48:01 +02:00
|
|
|
|
|
|
|
(defun manage-gemlogs ()
|
|
|
|
(let ((master gui-goodies:*toplevel*)
|
|
|
|
(main-window gui-goodies:*main-frame*))
|
|
|
|
(client-gemlog-window:init-window master main-window)))
|