Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
clim-tos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alastair Bridgewater
clim-tos
Commits
f1593148
Commit
f1593148
authored
7 years ago
by
Jacek Złydach
Browse files
Options
Downloads
Patches
Plain Diff
Getting a few of the demos to compile.
+ introduced bordeaux-thread as a replacement for Allegro's mp module.
parent
6d958624
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
demo/demo-driver.lisp
+15
-10
15 additions, 10 deletions
demo/demo-driver.lisp
demo/graphics-demos.lisp
+3
-3
3 additions, 3 deletions
demo/graphics-demos.lisp
demo/listener.lisp
+1
-1
1 addition, 1 deletion
demo/listener.lisp
gramps-clim2.asd
+12
-10
12 additions, 10 deletions
gramps-clim2.asd
with
31 additions
and
24 deletions
demo/demo-driver.lisp
+
15
−
10
View file @
f1593148
...
...
@@ -8,6 +8,8 @@
(
defvar
*demos*
nil
)
(
define-presentation-type
demo
())
;<-- ?? It seems to help though. - jacek.zlydach, 2017-05-04.
(
defclass
demo
()
((
name
:reader
demo-name
:initarg
:name
)
(
class
:reader
demo-class
:initarg
:class
)
...
...
@@ -47,7 +49,7 @@
;; In particular, this can occur when listing
;; the Japanese graphics-editor when the correct
;; Japanese fonts are not accessible.
(
let
((
result
(
catch
'excl::printer-error
(
let
((
result
(
catch
#-
allegro
'error
#+
Allegro
'excl::printer-error
(
with-output-as-presentation
(
stream
demo
'demo
)
(
format
stream
"~A~%"
name
))
nil
)))
...
...
@@ -84,25 +86,28 @@
(
when
(
or
force
(
null
frame
))
(
setq
frame
(
apply
(
if
activity-p
#'
make-instance
#'
make-application-frame
)
#'
make-application-frame
)
(
demo-class
demo
)
:frame-manager
(
find-frame-manager
:port
port
)
(
demo-initargs
demo
))))
(
if
entry
(
setf
(
cdr
entry
)
frame
)
(
push
(
cons
port
frame
)
(
demo-frames
demo
)))
(
push
(
cons
port
frame
)
(
demo-frames
demo
)))
(
if
(
slot-value
frame
'clim-internals::top-level-process
)
(
unless
activity-p
(
when
(
eq
(
frame-state
frame
)
:shrunk
)
(
note-frame-deiconified
(
frame-manager
frame
)
frame
))
(
raise-frame
frame
))
(
run-frame-top-level
frame
)))))
(
if
background
(
mp:process-run-function
`
(
:name
,
(
demo-name
demo
)
:initial-bindings
((
*package*
.
',*package*
)))
#'
do-it
)
(
do-it
))))
(
run-frame-top-level
frame
)))))
(
if
background
(
let
((
bt:*default-special-bindings*
`
((
*package*
.
',*package*
))))
(
bt:make-thread
#'
do-it
:name
(
demo-name
demo
)))
(
do-it
))))
;; (mp:process-run-function
;; `(:name ,(demo-name demo)
;; :initial-bindings ((*package* . ',*package*)))
;; #'do-it)
(
defvar
*demo-frame*
nil
)
...
...
This diff is collapsed.
Click to expand it.
demo/graphics-demos.lisp
+
3
−
3
View file @
f1593148
...
...
@@ -180,9 +180,9 @@ rotation and scaling."
:ink
(
if
(
oddp
i
)
+background-ink+
+foreground-ink+
))))
(
demo-sleep
stream
2
))))))
(
def
constant
*random-ink-list*
(
list
+red+
+green+
+blue+
+cyan+
+magenta+
+yellow+
+black+
))
(
def
parameter
*random-ink-list*
(
list
+red+
+green+
+blue+
+cyan+
+magenta+
+yellow+
+black+
))
(
defun
random-ink
()
(
nth
(
random
(
length
*random-ink-list*
))
*random-ink-list*
))
...
...
This diff is collapsed.
Click to expand it.
demo/listener.lisp
+
1
−
1
View file @
f1593148
...
...
@@ -656,5 +656,5 @@
#+
Genera
(
define-genera-application
lisp-listener
:pretty-name
"CLIM Lisp Listener"
:select-key
#\
:select-key
#
\
[FIXME
insert
character
210]
:width
+fill+
:height
+fill+
)
This diff is collapsed.
Click to expand it.
gramps-clim2.asd
+
12
−
10
View file @
f1593148
...
...
@@ -198,7 +198,8 @@
;;; based on `clim-demo' in demo/sysdcl.lisp
(
defsystem
#:gramps-clim2/examples
:description
"Applications bundled in gramps-clim2 repository."
:depends-on
(
#:gramps-clim2/core
)
:depends-on
(
#:gramps-clim2/core
#:bordeaux-threads
)
:components
((
:module
"demo"
...
...
@@ -207,12 +208,13 @@
(
:file
"demo-driver"
:depends-on
(
"packages"
))
(
:file
"listener"
:depends-on
(
"demo-driver"
))
(
:file
"graphics-demos"
:depends-on
(
"demo-driver"
))
(
:file
"cad-demo"
:depends-on
(
"demo-driver"
))
(
:file
"navdata"
:depends-on
(
"packages"
))
(
:file
"navfun"
:depends-on
(
"navdata"
))
(
:file
"puzzle"
:depends-on
(
"demo-driver"
))
(
:file
"address-book"
:depends-on
(
"demo-driver"
))
(
:file
"thinkadot"
:depends-on
(
"demo-driver"
))
(
:file
"plot"
:depends-on
(
"demo-driver"
))
(
:file
"color-editor"
:depends-on
(
"demo-driver"
))
(
:file
"graphics-editor"
:depends-on
(
"demo-driver"
))))))
;(:file "cad-demo" :depends-on ("demo-driver"))
;(:file "navdata" :depends-on ("packages"))
;(:file "navfun" :depends-on ("navdata"))
;(:file "puzzle" :depends-on ("demo-driver"))
;(:file "address-book" :depends-on ("demo-driver"))
;(:file "thinkadot" :depends-on ("demo-driver"))
;(:file "plot" :depends-on ("demo-driver"))
;(:file "color-editor" :depends-on ("demo-driver"))
;(:file "graphics-editor" :depends-on ("demo-driver"))
))))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment