repos
/
qt.examples
/ annotate_shade
summary
|
shortlog
|
log
|
tree
|
commit
|
commitdiff
|
headdiff
|
annotate
|
headblob
|
headfilediff
|
filehistory
normal
|
plain
|
shade
|
zebra
use (setf instead of setter methods.
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
'
13
(directory-namestring
'
14
(mb.sysdef:input-file
'
15
(mb.sysdef:find-component :qt.examples "src" "i18n-hello-world")))
'
16
"hello-world")
'
17
(let ((widget (make-instance 'qt:label)))
2009-05-11 tobias
18
(setf (cxx:window-title widget) (qt:tr "Lisp Qt Example" "hello-world")
18:30:39 '
19
(cxx:text widget) (format nil (qt:tr "<h1>Hello world</h1>
2009-04-05 tobias
20
15:36:46 '
21
You are running ~A version ~A on a ~A ~A")
2009-05-14 tobias
22
(lisp-implementation-type)
12:27:03 '
23
(lisp-implementation-version)
'
24
(software-type)
'
25
(software-version)))
'
26
(cxx:show widget)
'
27
(qt:exec widget)))))