summaryrefslogtreecommitdiff
path: root/Apps/Scigraph
diff options
context:
space:
mode:
authorCyrus Harmon <cyrus@bobobeach.com>2017-06-10 08:15:51 -0700
committerCyrus Harmon <cyrus@bobobeach.com>2017-06-12 17:15:53 -0700
commitdf5bc4dd518121fdcf2c8abc44a59d37c3be9746 (patch)
tree9baa39ee43164bb82fce4f34c02bdbcdb13db0bd /Apps/Scigraph
parent3dac99d7e7e8320a0242b9dbc87d52248df3d53e (diff)
remove dwim formatting stuff
Diffstat (limited to 'Apps/Scigraph')
-rw-r--r--Apps/Scigraph/dwim/package.lisp14
-rw-r--r--Apps/Scigraph/dwim/present.lisp56
-rw-r--r--Apps/Scigraph/scigraph/package.lisp7
3 files changed, 10 insertions, 67 deletions
diff --git a/Apps/Scigraph/dwim/package.lisp b/Apps/Scigraph/dwim/package.lisp
index 824d7842..a87dd7aa 100644
--- a/Apps/Scigraph/dwim/package.lisp
+++ b/Apps/Scigraph/dwim/package.lisp
@@ -59,13 +59,6 @@ advised of the possiblity of such damages.
#:accept-values
#:accept-variable-values
#:menu-choose
- #:formatting-table
- #:formatting-row
- #:formatting-column
- #:formatting-column-headings
- #:formatting-cell
- #:formatting-item-list
- #:format-item-list
#:read-token
#:input-position
#:insertion-pointer
@@ -175,13 +168,6 @@ advised of the possiblity of such damages.
#:accept-values
#:accept-variable-values
#:menu-choose
- #:formatting-table
- #:formatting-row
- #:formatting-column
- #:formatting-column-headings
- #:formatting-cell
- #:formatting-item-list
- #:format-item-list
#:read-token
#:input-position
#:insertion-pointer
diff --git a/Apps/Scigraph/dwim/present.lisp b/Apps/Scigraph/dwim/present.lisp
index 0674efcf..8d0f7fcb 100644
--- a/Apps/Scigraph/dwim/present.lisp
+++ b/Apps/Scigraph/dwim/present.lisp
@@ -131,41 +131,6 @@ advised of the possiblity of such damages.
:label prompt :default-item default-choice))
;;;
-;;; formatting table etc.
-;;;
-
-(defmacro formatting-table ((stream &key (inter-column-spacing 8)) &body body)
- `(clim:formatting-table
- (,stream :x-spacing ,inter-column-spacing)
- ,@body))
-
-(defmacro formatting-row ((stream) &body body)
- `(clim:formatting-row (,stream) ,@body))
-
-(defmacro formatting-column ((stream) &body body)
- `(clim:formatting-column (,stream) ,@body))
-
-(defmacro formatting-column-headings ((stream &key (underline-p nil)) &body body)
- (if underline-p
- `(formatting-row (,stream) (with-underlining (,stream) ,@body))
- `(formatting-row (,stream) ,@body)))
-
-(defmacro formatting-cell ((stream &key (align-x :left) align-y) &body body)
- `(clim:formatting-cell (,stream ,@(if align-x `(:align-x ,align-x))
- ,@(if align-y `(:align-y ,align-y)))
- ,@body))
-
-(defmacro formatting-item-list ((stream &rest options) &body body)
- `(clim:formatting-item-list (,stream ,@options) ,@body))
-
-(defmacro format-item-list (list &rest keys)
- (let ((stream (or (second (member :stream keys)) t)))
- `(formatting-item-list (,stream)
- (dolist (item ,list)
- (formatting-cell (,stream)
- (format ,stream "~A" item))))))
-
-;;;
;;; Presentation parser primitives
;;;
@@ -385,10 +350,10 @@ advised of the possiblity of such damages.
(setq drawer
#'(lambda (str obj name selected)
(declare (ignore obj))
- (formatting-cell (str)
- (if selected
- (with-text-face (:bold str) (write-string name str))
- (write-string name str))))))
+ (clim:formatting-cell (str)
+ (if selected
+ (with-text-face (:bold str) (write-string name str))
+ (write-string name str))))))
(when (not select-action)
(setq select-action
#'(lambda (choice default-val)
@@ -411,8 +376,8 @@ advised of the possiblity of such damages.
:documentation pretty-name)
:single-box t)
(clim:with-room-for-graphics (stream)
- (formatting-cell (stream)
- (funcall drawer stream value pretty-name selected-p)))))
+ (clim:formatting-cell (stream)
+ (funcall drawer stream value pretty-name selected-p)))))
(draw-all (sequence stream)
(dolist (item sequence)
(let* ((value (funcall value-key item))
@@ -420,11 +385,10 @@ advised of the possiblity of such damages.
(selected-p (funcall selection-test value selected-value)))
(draw-one item value pretty-name selected-p stream)))))
(with-output-as-presentation (:stream stream :single-box t)
- (formatting-item-list
- (stream :n-columns n-columns
- :n-rows n-rows
- :x-spacing
- '(2 :character))
+ (clim:formatting-item-list
+ (stream :n-columns n-columns
+ :n-rows n-rows
+ :x-spacing '(2 :character))
(draw-all sequence stream))))))
(define-presentation-type alist-subset (&key alist)
diff --git a/Apps/Scigraph/scigraph/package.lisp b/Apps/Scigraph/scigraph/package.lisp
index 1830b05d..e940d93c 100644
--- a/Apps/Scigraph/scigraph/package.lisp
+++ b/Apps/Scigraph/scigraph/package.lisp
@@ -239,13 +239,6 @@ advised of the possiblity of such damages.
#:accept-values
#:accept-variable-values
#:menu-choose
- #:formatting-table
- #:formatting-row
- #:formatting-column
- #:formatting-column-headings
- #:formatting-cell
- #:formatting-item-list
- #:format-item-list
#:read-token
#:input-position
#:insertion-pointer