source: release/1.10/cocoa-ide-contrib/krueger/InterfaceProjects/Utilities/interface-packages.lisp

Last change on this file was 16179, checked in by R. Matthew Emerson, 10 years ago

Merge from trunk.

File size: 12.0 KB
RevLine 
[15808]1;; interface-packages.lisp
2
3#|
4The MIT license.
5
6Copyright (c) 2013 Paul L. Krueger
7
8Permission is hereby granted, free of charge, to any person obtaining a copy of this software
9and associated documentation files (the "Software"), to deal in the Software without restriction,
10including without limitation the rights to use, copy, modify, merge, publish, distribute,
11sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
12furnished to do so, subject to the following conditions:
13
14The above copyright notice and this permission notice shall be included in all copies or substantial
15portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
18LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23|#
24
25#|
26
27Defines all interface packages so this can be loaded once before everything
28else and keep names straight. This also makes the code more portable to other
29Lisp implementations that do not do package redefinitions when the same
30package is defined in multiple files.
31
32|#
33
34;; so we can use symbols for export/import without having them interned in :common-lisp-user
35(defpackage :package-def-package)
36(in-package :package-def-package)
37
38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
39;; :interface-utilities
40
41(defpackage :interface-utilities
42 (:nicknames :iu)
43 (:use :ccl :common-lisp)
44 (:import-from :gui
45 cgfloat)
46 (:export
47
48 ;; alert.lisp
49 alert
50 with-errors-alerted
51
52 ;; app-kit-version.lisp
53 app-kit-version
54 satisfies-app-kit-version
55
56 ;; assoc-array.lisp
57 assoc-array
58 assoc-aref
59 mapcar-assoc-array
60 mapcar-hash-keys
61
62 ;; attributed-strings.lisp
63 add-attribute
64 add-attributes
65 all-font-names
66 append-string
67 apply-font-traits
68 att-ns-str
69 attribute-at-index
70 attributed-string-equal
71 attributed-substring
72 attributes-at-index
73 format-attributes
74 insert-attributed-string-at-index
75 lisp-str
76 print-all-font-names
77 remove-attribute
78 replace-chars-in-range
79 set-attributed-string
80 set-attributes
81 subscript-range
82 superscript-range
83 unscript-range
84 url-at-index
85
86 ;; binding-utils.lisp
87 *log-bindings*
88 bind
89 bound-slot-modified
90 bound-slot-will-be-modified
91 bound-to
92 did-change-value-for-key
93 link-path-components
94 linking-views
95 lisp-to-objc-keypathname
96 log-bindings
97 make-ptr-wrapper
98 objc-to-lisp-keypathname
99 valid-binding-p
100 valid-bindings
101 when-observed
102 will-change-value-for-key
103 wrapper-for
104
105 ;; class-convert.lisp
106 class-actions
107 class-outlets
108 dot-h-to-lisp
109 lisp-to-dot-h
110 save-dot-h
111 save-lisp-from-dot-h
112 scan-file-for-classes
113 scan-file-for-module
114
115 ;; coder.lisp
116 decode-lisp-object-for-key
117 encode-lisp-object-for-key
118
119 ;; coerce-obj.lisp
120 assoc-list
121 coerce-obj
122 lisp-date
123 on-error-return
124
125 ;; combo-box-source.lisp
126 combo-box-source-items
127
128 ;; date.lisp
129 +days
130 abbrev-day-of-wk
131 add-day
132 date-list
133 date-string
134 day-char
135 day-of-wk
136 day-set
137 day-set-bit
138 days-between
139 days-from
140 days-to-sec
141 do-dates
142 do-interval-dates
143 do-months
144 dt
145 dt-diff
146 dt-yr
147 has-day-p
148 in-dayset-p
149 inc-date
150 inc-months
151 inc-years
152 intl-string-dt
153 last-dt-of-month
154 lisp-to-ns-date
155 mmdd-string
156 mmddyy-list
157 mmyy-string
158 months-between
159 next-day
160 next-month
161 next-year
162 now
163 ns-to-lisp-date
164 num-days-in-dayset
165 prev-day
166 prev-month
167 prev-year
168 random-date
169 remove-day
170 same-day-p
171 short-date-string
172 short-time-string
173 string-to-date
174 string-to-ns-date
175 time-string
[16077]176 today-date
[15808]177 years-between
178 yr-string
179
180 ;; decimal.lisp
181 lisp-from-ns-decimal
182 lisp-to-ns-decimal
183
184 ;; dev-tools.lisp
185 add-key-info
186 added-class-key-values
187 added-class-keywords
188 init-keys
189 key-doc-string
190 key-name
191 key-values
192 recursive-find-if
193 reload-documentation
194
195 ;; doc-controller-hash.lisp
196 doc-controller-for-class
197 ensure-class-name
198 set-doc-controller-for-class
199
200 ;; file-directory-utils.lisp
201 find-in-ccl
202 find-in-contrib
203 find-in-krueger-contrib
204
205 ;; file-monitor.lisp
206 monitor-file
207 resume-monitoring
208 suspend-monitoring
209 unmonitor-file
210
211 ;; install-executable
212 with-errors-reported
213
214 ;; interactive-app.lisp
215 ccl-result
216 eval-in-subordinate-ccl
217 in-subordinate-ccl
218 make-ccl-stream
219 pop-error
220 print-from-app
221 process-close
222 remote-let
223 shell-command
224 start-trace
225 stop-trace
226 trace-output
227 with-ccl-stream
228 write-line-to-app
229
230 ;; iu-classes.lisp
231 app-stream
232 attributed-string
233 combo-box-source
234 kvo-observer
235 lisp-bundle
236 lisp-doc-controller
237 lisp-document
238 lisp-menu-target
239 lisp-ptr-wrapper
240 lpw-depth
241 lpw-lisp-ptr
242 lpw-parent
243 nib-link
244 ns-func
245 ns-misc
246 ns-sym
247 ts-qnode
248 ts-queue
249
250 ;; lisp-bundle.lisp
251 bundle-for-class
252 bundle-loaded
253 bundle-logical-host
254 lisp-bundle-with-path
255 load-bundle
256
257 ;; lisp-doc-controller.lisp
258 close-document
259 close-open-documents
260 doc-controller-for-doc-type
261 doc-controller-for-menu-item
262 docs-of-type
263 make-doc-controller
264 open-documents
265
266 ;; lisp-document.lisp
267 document-did-open
268 document-is-nib-file-owner
269 document-window-controller-classes
270 font-name
271 font-size
272 print-graphic
273 print-lines
274 print-view-class
275 window-build-funcs
276 window-nib-names
277
278 ;; list-utils.lisp
279 add-to-list-at
280 columnize
281 delete-from-list
282 every-n-sublists
283 find-cdr
284 sequential-sublists
285 sort-list-in-place
286
287 ;; menu-utils.lisp
288 *app-name-for-menus*
289 add-to-main-menu
290 app-menu
291 clear-key
292 clear-saved-menus
293 delete-menu
294 find-menu-item-with-name
295 install-menuitems-after
296 key-for-menuitem
297 make-and-install-menu
298 make-and-install-menuitems-after
299 make-menu
300 make-popup-button
301 make-simple-menu
302 menu-item-for-key
303 merge-simple-menu-items
304 pop-up-select
305 remove-all-but
306 remove-from-main-menu
307 remove-menuitems
308 restore-starting-menu
309 save-main-menu
310 save-mi-list-with-key
311 set-app-menu
312 set-sub-menu
313 set-windows-menu
314 standard-app-menu
315 standard-edit-menu
316 standard-file-menu
317 standard-format-menu
318 standard-help-menu
319 standard-main-menu
320 standard-view-menu
321 standard-window-menu
322 starting-menu
323 uninstall-menu
324
325 ;; nib.lisp
326 compile-xib
327 load-nibfile
328
329 ;; nib-link.lisp
330 *nib-links*
331 find-link-to
332 find-nib
333 find-nib-in-ccl
334 find-nib-in-contrib
335 find-nib-in-krueger-contrib
336 is-link-to
337 unlink
338
339 ;; notification.lisp
340 notification-handler
341 received-notification
342
343 ;; ns-object-utils.lisp
344 archive-slots
345 class-conforms-to-protocol
346 class-name-string
347 do-objc-array
348 equal-size-p
349 find-ns-classes
350 lisp-to-ns-array
351 lisp-to-ns-dict
352 lisp-to-ns-func
353 lisp-to-ns-object
354 lisp-to-ns-misc
[16179]355 lisp-to-ns-plist-dict
[15808]356 lisp-to-ns-sym
357 ns-to-lisp-array
358 ns-to-lisp-assoc
359 ns-to-lisp-classname
360 ns-to-lisp-hash-table
361 ns-to-lisp-list
362 ns-to-lisp-object
363 obj-if-not-null
364 objc-displayable
365 objc-to-std-instance
366 on-main-thread
367 print-ns-object
368 recursive-map
369 std-instance-to-objc
370 while-converting
371 while-unconverting
372
373 ;; ns-string-utils.lisp
374 find-func
375 find-substring
376 internable-string-p
377 lisp-object-to-ns-data
378 lisp-str-to-ns-data
379 lisp-to-temp-nsstring
380 non-empty-string
381 ns-data-to-lisp-object
382 ns-data-to-lisp-str
383 ns-to-lisp-string
384 nsstring-to-class
385 nsstring-to-func
386 nsstring-to-sym
387 read-from-nsstring
388
389 ;; nslog-utils.lisp
390 interleave
391 log-4floats
392 log-float
393 log-rect
394 log-size
395 ns-error
396 ns-log
397 ns-log-format
398
399 ;; objc-initialize.lisp
400
401 ;;open-panel.lisp
402 open-panel
403
404 ;; preferences.lisp
405 set-user-default
406 user-default
407
408 ;; quick-window.lisp
409 make-quick-window
410
411 ;; save-panel.lisp
412 save-panel
413
414 ;; selector-utils.lisp
415 find-selector-match
416 get-selector
417 responds-to-selector
418
419 ;; thread-safe-queue.lisp
420 empty-ts-queue-p
421 pop-ts-queue
422 push-ts-queue
423
424 ;; undo.lisp
425 set-undo
426 undo-target
427 update-with-undo
428
429 ;; utility.lisp
430 delete-from-seq
431 do-sequence
432
433 ;; window-controller.lisp
434 close-window
435 lisp-window-controller
436 load-window
437 show-window
438 update-window
439
440 ;; window-utils.lisp
441 show-window-in-controller
442 window-frame-size
443 window-titled
444 with-stream-window
445
446 ;; words.lisp
447 replace-substr
448 words))
449
450;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
451;; :lisp-controller
452
453(defpackage :lisp-controller
454 (:nicknames :lc)
455 (:use :ccl :common-lisp :iu)
456 (:import-from :gui
457 cgfloat)
458 (:export
459
460 ;; lisp-controller.lisp
461 added-func
462 add-child-func
463 can-add-child
464 can-insert
465 can-remove
466 children-func
467 content-class
468 count-func
469 current-selection
470 delete-func
471 edited-func
472 func-owner
473 gen-root
474 ht-key
475 ht-value
476 lisp-controller
477 lisp-controller-changed
478 modified-bound-value
479 objects
480 reader-func
481 removed-func
482 root
483 root-type
484 select-func
485 selection
486 undo-doc
487 undo-name
488 view
489 writer-func))
490
491;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
492;; :lisp-views
493
494(defpackage :lisp-views
495 (:nicknames :lv)
496 (:use :ccl :common-lisp :lc :iu)
497 (:import-from :gui
498 cgfloat)
499 (:export
500
501 ;; button.lisp
502 button-box-view
503 button-controller
504 lisp-button
505
506 ;; constraint-layout.lisp
507 *border-space*
508 *default-space*
509 *no-space*
510 align-views
511 analyze-constraints
512 anchor
513 anchor-window
514 attribute-convert
515 center-in-view
516 center-relative-to
517 compression-resistance-priority
518 constrain
519 constrain-size
520 constrain-size-relative-to
521 constrain-to-array
522 constrain-to-natural-height
523 constrain-to-natural-size
524 constrain-to-natural-width
525 constraints
526 constraints-affecting-layout
527 distribute-relative-to
528 distribute-views
529 expansion-resistance-priority
530 flip-rel
531 log-constraints
532 make-constraint
533 make-constraints-for
534 make-invisible-spacer
535 order-views
536 orientation-convert
537 prioritize-expansion-resistance
538 prioritize-compression-resistance
539 priority-convert
540 relation-convert
541 remove-constraints
542 visualize-constraints
543
544 ;; lisp-app-pr-view.lisp
545
546 ;; lv-classes.list
547 label-view
548 labeled-text-field
549 lisp-app-doc-print-view
550 text-field
551 vscrolled-text-view
552
553 ;; organized-box-view.lisp
554 add-box-subviews
555 organized-box-view
556 resizable-box-view
557
558 ;; radio-button.lisp
559 radio-button-array-view
560 radio-button-box-view
561 radio-button-controller
562
563 ;; scroll-view.lisp
564 make-scroll-view
565
566 ;; table-utils.lisp
567 table-controller
568 table-scroll-view
569 table-width
570
571 ;; text-views.lisp
572 form-view
573 label-view
574 make-text-field
575 make-text-view
576 make-vscrolled-text-view
577 text-field-of
578
579 ;; view-utils.lisp
580 add-subviews
581 common-superview
582 joint-superview
583 natural-size
584 natural-view-height
585 natural-view-width
586 superview
587 view-height
588 view-p
589 view-tree
590 view-width
591 zero-size-p))
592
593;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
594;; :app-dev
595
596(defpackage :app-dev
597 (:nicknames :ad)
598 (:use :iu :lc :ccl :lv :common-lisp)
599 (:export
600
601 ;; lisp-app-delegate.lisp
602 application-will-finish-launching
603 lisp-IDE-app-delegate
604 simple-lisp-app-delegate
605
606 ;; lisp-app-doc.lisp
607 lisp-app-doc
608
609 ;; lisp-app-win-controller
610 lisp-app-win-controller))
611
612;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
613;; :ogl
614
615(defpackage :ogl
616 (:use :iu :ccl :common-lisp)
617 (:export
618
619 ;; lisp-open-gl-view.lisp
620 data-source
621 draw-in-view-rect
622 is-flipped
623 lisp-open-gl-view
624
625 ;; opengl-utils.lisp
626 do-foreign-array
627 ogl-vector))
628
629;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
630;; :dev
631
632(defpackage :dev
633 (:use :iu :ccl :lv :lc :common-lisp)
634 (:export
635
636 ;; dev-tools-interface.lisp
637 *dev-tools-window-controller*
638 reload-doc-window))
639
640(provide :interface-packages)
641
Note: See TracBrowser for help on using the repository browser.