Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
(defpackage #:rcswa
|
||||
(:use #:clim #:clim-lisp))
|
||||
(in-package #:rcswa)
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
(define-application-frame simple-windowed-application ()
|
||||
((clicks :initform 0
|
||||
:accessor clicks-of))
|
||||
(:menu-bar t)
|
||||
(:pane
|
||||
(make-pane 'application-pane
|
||||
:width '(40 :character)
|
||||
:height '(3 :character)
|
||||
:display-time :command-loop
|
||||
:display-function
|
||||
(lambda (pane stream)
|
||||
(declare (ignore pane))
|
||||
(format stream "~[There have been no clicks yet.~
|
||||
~:;~:*There ~[have~;has~:;have~]~:* been ~R click~:P.~]"
|
||||
(clicks-of *application-frame*))))))
|
||||
|
||||
(define-simple-windowed-application-command (com-click-me :menu t)
|
||||
()
|
||||
(incf (clicks-of *application-frame*)))
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
(define-application-frame simple-windowed-application ()
|
||||
((clicks :initform 0
|
||||
:accessor clicks-of))
|
||||
(:panes
|
||||
(the-label :application
|
||||
:width '(40 :character)
|
||||
:height '(3 :character)
|
||||
:display-time t
|
||||
:display-function
|
||||
(lambda (pane stream)
|
||||
(declare (ignore pane))
|
||||
(format stream "~[There have been no clicks yet.~
|
||||
~:;~:*There ~[have~;has~:;have~]~:* been ~R click~:P.~]"
|
||||
(clicks-of *application-frame*))))
|
||||
(the-button :push-button
|
||||
:label "Click Me"
|
||||
:activate-callback
|
||||
(lambda (button)
|
||||
(declare (ignore button))
|
||||
(incf (clicks-of *application-frame*))
|
||||
(redisplay-frame-pane *application-frame*
|
||||
(find-pane-named *application-frame* 'the-label)
|
||||
:force-p t))))
|
||||
(:layouts (default
|
||||
(vertically (:equalize-width nil :align-x :center)
|
||||
the-label
|
||||
(spacing (:thickness 10) the-button)))))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(run-frame-top-level (make-application-frame 'simple-windowed-application))
|
||||
Loading…
Add table
Add a link
Reference in a new issue