repos
/
qt.gui
/ annotate_shade
summary
|
shortlog
|
log
|
tree
|
commit
|
commitdiff
|
headdiff
|
annotate
|
filehistory
normal
|
plain
|
shade
|
zebra
Rework QObject parent ownership transfer
Annotate for file src/signal-slot/signal-slot.lisp
2009-06-11 tobias
1
(in-package :qt)
2010-01-10 tobias
2
08:52:49 '
3
'
4
(defclass funcallable-smoke-class (closer-mop:funcallable-standard-class
2009-05-31 tobias
5
cxx:class)
2010-01-10 tobias
6
())
08:52:49 '
7
'
8
(defmethod closer-mop:validate-superclass ((class funcallable-smoke-class)
'
9
(superclass closer-mop:funcallable-standard-class))
'
10
t)
'
11
'
12
(defgeneric id (method))
'
13
'
14
(defun munged-name-p (name)
'
15
"Returns true when NAME is a METHOD, SLOT or SIGNAL."
'
16
(and (> (length name) 0)
'
17
(case (aref name 0)
'
18
((#\0 #\1 #\2) t)
'
19
(t nil))))
'
20
2009-06-11 tobias
21
(defun qmethod (name)
2010-01-10 tobias
22
"Equivalent of the METHOD(a) CPP macro."
08:52:49 '
23
(assert (not (munged-name-p name)))
'
24
(format nil "0~A" name))
'
25
2009-06-11 tobias
26
(defun qslot (name)
2010-01-10 tobias
27
"Equivalent of the SLOT(a) CPP macro."
08:52:49 '
28
(assert (not (munged-name-p name)))
'
29
(format nil "1~A" name))
'
30
2009-06-11 tobias
31
(defun qsignal (name)
2010-01-10 tobias
32
"Equivalent of the SIGNAL(a) CPP macro."
08:52:49 '
33
(assert (not (munged-name-p name)))
'
34
(format nil "2~A" name))
'
35