repos
/
qt.examples
/ annotate_shade
summary
|
shortlog
|
log
|
tree
|
commit
|
commitdiff
|
headdiff
|
annotate
|
headblob
|
headfilediff
|
filehistory
normal
|
plain
|
shade
|
zebra
License
Annotate for file src/i18n-hello-world.lisp
2009-04-14 tobias
1
;;; Copyright 2009 Tobias Rautenkranz
14:29:22 '
2
;;; License: X11 license
'
3
2009-04-05 tobias
4
(in-package :qt.examples)
15:36:46 '
5
'
6
(defun i18n-hello-world ()
'
7
"i18n hello world"
2009-07-01 tobias
8
(qt:with-app
2009-05-14 tobias
9
(qt:with-translator
12:27:03 '
10
;; ensures that the message catalogs are found regardless
'
11
;; of the current directory.
'
12
(concatenate 'string
2009-05-11 tobias
13
2009-05-14 tobias
14
(directory-namestring
12:27:03 '
15
(mb.sysdef:input-file
'
16
(mb.sysdef:find-component :qt.examples "src" "i18n-hello-world")))
'
17
"hello-world")
'
18
(let ((widget (make-instance 'qt:label)))
2009-05-11 tobias
19
(setf (qt:property widget 'window-title)
18:30:39 '
20
(qt:tr "Lisp Qt Example" "hello-world"))
'
21
(cxx:set-text widget
'
22
(format nil (qt:tr "<h1>Hello world</h1>
2009-04-05 tobias
23
15:36:46 '
24
You are running ~A version ~A on a ~A ~A")
2009-05-14 tobias
25
(lisp-implementation-type)
12:27:03 '
26
(lisp-implementation-version)
'
27
(software-type)
'
28
(software-version)))
'
29
(cxx:show widget)
'
30
(qt:exec widget)))))