Browse code
chore: minor tweaks
Ed Langley authored on 29/10/2020 22:06:22
Showing 2 changed files
Showing 2 changed files
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,17 @@ |
1 |
+(in-package :cl-user) |
|
2 |
+(setf *default-pathname-defaults* |
|
3 |
+ (make-pathname :directory (pathname-directory *load-pathname*))) |
|
4 |
+(format t "~&CURDIR: ~a~%" (truename ".")) |
|
5 |
+(load-all-patches) |
|
6 |
+(compile-file "fancy-listener.lisp" :load t) |
|
7 |
+ |
|
8 |
+(deliver 'fancy-listener:fancy-listener |
|
9 |
+ #+:cocoa |
|
10 |
+ (create-macos-application-bundle |
|
11 |
+ "~/desktop/FancyListener.app" |
|
12 |
+ :document-types nil |
|
13 |
+ :identifier "fwoar.FancyListener") |
|
14 |
+ #-:cocoa "~/fancy-listener" |
|
15 |
+ 0 |
|
16 |
+ :interface :capi |
|
17 |
+ :keep-modules t) |
|
0 | 18 |
\ No newline at end of file |
... | ... |
@@ -1,13 +1,12 @@ |
1 | 1 |
(defpackage :fancy-listener |
2 |
- (:use :cl :fl-user) |
|
3 |
- (:export :row :column :button :stream-disp)) |
|
2 |
+ (:use :cl ) |
|
3 |
+ (:export :row :column :button :stream-disp :fancy-listener *interface-layout*)) |
|
4 | 4 |
|
5 | 5 |
(defpackage :fl-user |
6 |
- (:use :cl :fancy-listener) |
|
7 |
- (:export *interface-layout*)) |
|
8 |
-(in-package :fl-user) |
|
6 |
+ (:use :cl :fancy-listener)) |
|
9 | 7 |
|
10 |
-(defvar *interface-layout* nil) |
|
8 |
+(in-package :fl-user) |
|
9 |
+(declaim (special fancy-listener:*interface-layout*)) |
|
11 | 10 |
|
12 | 11 |
(defmacro with-pp ((pane) &body body) |
13 | 12 |
`(capi:apply-in-pane-process ,pane |
... | ... |
@@ -24,9 +23,13 @@ |
24 | 23 |
(defun pop-widget () |
25 | 24 |
(when *interface-layout* |
26 | 25 |
(with-pp (*interface-layout*) |
27 |
- (pop (capi:layout-description *interface-layout*))))) |
|
26 |
+ (pop (capi:layout-description *interface-layout*)) |
|
27 |
+ (when (eql (first (capi:layout-description *interface-layout*)) |
|
28 |
+ :divider) |
|
29 |
+ (pop (capi:layout-description *interface-layout*)))))) |
|
28 | 30 |
|
29 | 31 |
(in-package :fancy-listener) |
32 |
+(defvar *interface-layout* nil) |
|
30 | 33 |
|
31 | 34 |
(defun row (&rest components) |
32 | 35 |
(make-instance 'capi:row-layout :children components)) |
... | ... |
@@ -57,3 +60,6 @@ |
57 | 60 |
*interface-layout*)))) |
58 | 61 |
(capi:interactive-pane-execute-command listener-pane "(in-package :fl-user)") |
59 | 62 |
result)) |
63 |
+ |
|
64 |
+(defun fancy-listener () |
|
65 |
+ (capi:display (interface))) |