| 1 |
;;; |
| 2 |
;;; Classes for eusview |
| 3 |
;;; 1988.11.13 M.Inaba |
| 4 |
;;; propertied-object |
| 5 |
;;; sunview-mouse |
| 6 |
;;; sunview-object |
| 7 |
;;; sunview-widget |
| 8 |
;;; sunview-window |
| 9 |
;;; sunview-frame |
| 10 |
;;; sunview-canvas |
| 11 |
;;; sunview-panel |
| 12 |
;;; sunview-textsw |
| 13 |
;;; sunview-tty |
| 14 |
;;; panel-item |
| 15 |
;;; panel-button-item |
| 16 |
;;; panel-text-item |
| 17 |
;;; panel-slider-item |
| 18 |
;;; panel-selectable-item |
| 19 |
;;; panel-choice-item |
| 20 |
;;; panel-cycle-item |
| 21 |
;;; panel-toggle-item |
| 22 |
;;; panel-message-item |
| 23 |
;;; sunview-menu |
| 24 |
;;; |
| 25 |
(defclass sunview-mouse |
| 26 |
:super object |
| 27 |
:slots |
| 28 |
(current-button ;;; left, middle, right, nil |
| 29 |
current-movement ;;; move, up, down, drag, still, |
| 30 |
;;; winenter, winexit, rgnenter, rgnexit, nil |
| 31 |
last-button |
| 32 |
last-movement)) |
| 33 |
(defclass sunview-object |
| 34 |
:super propertied-object |
| 35 |
:slots |
| 36 |
(system-cadr)) |
| 37 |
(defclass sunview-widget |
| 38 |
:super sunview-object |
| 39 |
:slots |
| 40 |
(parent |
| 41 |
font |
| 42 |
menu |
| 43 |
mouse |
| 44 |
event-handler-list ;; (mouse-status . handler) |
| 45 |
)) |
| 46 |
(defclass sunview-window |
| 47 |
:super sunview-widget |
| 48 |
:slots |
| 49 |
(subwindows |
| 50 |
itimer-handler |
| 51 |
)) |
| 52 |
(defclass sunview-frame |
| 53 |
:super sunview-window |
| 54 |
:slots |
| 55 |
(name |
| 56 |
icon)) |
| 57 |
(defclass sunview-panel |
| 58 |
:super sunview-window |
| 59 |
:slots |
| 60 |
(item-object-list ;; (item-cadr . item-object) |
| 61 |
item-size |
| 62 |
col-max |
| 63 |
item-col |
| 64 |
item-row |
| 65 |
)) |
| 66 |
(defclass sunview-canvas |
| 67 |
:super sunview-window |
| 68 |
:slots |
| 69 |
(resize-handler |
| 70 |
repaint-handler |
| 71 |
)) |
| 72 |
(defclass sunview-textsw |
| 73 |
:super sunview-window |
| 74 |
:slots ()) |
| 75 |
(defclass sunview-tty |
| 76 |
:super sunview-window |
| 77 |
:slots ()) |
| 78 |
(defclass panel-item |
| 79 |
:super sunview-widget |
| 80 |
:slots |
| 81 |
(name |
| 82 |
col row |
| 83 |
notify-handler ;; function or method |
| 84 |
)) |
| 85 |
(defclass panel-button-item |
| 86 |
:super panel-item |
| 87 |
:slots ()) |
| 88 |
(defclass panel-text-item |
| 89 |
:super panel-item |
| 90 |
:slots ()) |
| 91 |
(defclass panel-slider-item |
| 92 |
:super panel-item |
| 93 |
:slots ()) |
| 94 |
(defclass panel-selectable-item |
| 95 |
:super panel-item |
| 96 |
:slots (choices strings)) |
| 97 |
(defclass panel-choice-item |
| 98 |
:super panel-selectable-item |
| 99 |
:slots ()) |
| 100 |
(defclass panel-cycle-item |
| 101 |
:super panel-selectable-item |
| 102 |
:slots ()) |
| 103 |
(defclass panel-toggle-item |
| 104 |
:super panel-selectable-item |
| 105 |
:slots ()) |
| 106 |
(defclass panel-message-item |
| 107 |
:super panel-item |
| 108 |
:slots ()) |
| 109 |
(defclass sunview-menu |
| 110 |
:super sunview-object |
| 111 |
:slots |
| 112 |
(choices |
| 113 |
strings)) |
| 114 |
;;; |
| 115 |
(defclass canvas-viewsurface |
| 116 |
:super viewsurface |
| 117 |
:slots |
| 118 |
(color |
| 119 |
frame |
| 120 |
(canvas :forward (:cmsname |
| 121 |
:set-cmap-type |
| 122 |
:put-colormap :get-colormap |
| 123 |
:drawline :drawimage :drawtext :imagemove |
| 124 |
:pixwin :width :height |
| 125 |
)) |
| 126 |
pixwindow |
| 127 |
rasterop |
| 128 |
back-pixwindow |
| 129 |
buffer-mode)) |