bug fix in js-arg, small revisions
This commit is contained in:
parent
69a094b6f8
commit
322b737e7b
10 changed files with 44 additions and 20 deletions
|
|
@ -62,8 +62,11 @@
|
||||||
(when (rest list)
|
(when (rest list)
|
||||||
(write-char #\,))))
|
(write-char #\,))))
|
||||||
(float
|
(float
|
||||||
;; cut off Lisp specific notations
|
;; JS can't read 'd0' 'l0'
|
||||||
(princ (string-right-trim "dl0" (princ-to-string object))))
|
(let ((str (princ-to-string object)))
|
||||||
|
(x:when-it (position-if (lambda (ch) (find ch "dl")) str)
|
||||||
|
(setf (char str x:it) #\e))
|
||||||
|
(princ str)))
|
||||||
(t
|
(t
|
||||||
(cond ((eql 't object)
|
(cond ((eql 't object)
|
||||||
(princ "true"))
|
(princ "true"))
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ Rectangle {
|
||||||
ctx.reset()
|
ctx.reset()
|
||||||
ctx.strokeStyle = "blue"
|
ctx.strokeStyle = "blue"
|
||||||
ctx.lineWidth = 10
|
ctx.lineWidth = 10
|
||||||
|
ctx.lineCap = "round"
|
||||||
ctx.translate(110, 160)
|
ctx.translate(110, 160)
|
||||||
|
|
||||||
Lisp.call("eql-user:paint")
|
Lisp.call("eql-user:paint")
|
||||||
|
|
@ -40,7 +41,6 @@ Rectangle {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
horizontalAlignment: Qt.AlignHCenter
|
horizontalAlignment: Qt.AlignHCenter
|
||||||
maximumLength: 4
|
|
||||||
text: "0000"
|
text: "0000"
|
||||||
inputMask: "9999"
|
inputMask: "9999"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,11 @@
|
||||||
(when (rest list)
|
(when (rest list)
|
||||||
(write-char #\,))))
|
(write-char #\,))))
|
||||||
(float
|
(float
|
||||||
;; cut off Lisp specific notations
|
;; JS can't read 'd0' 'l0'
|
||||||
(princ (string-right-trim "dl0" (princ-to-string object))))
|
(let ((str (princ-to-string object)))
|
||||||
|
(x:when-it (position-if (lambda (ch) (find ch "dl")) str)
|
||||||
|
(setf (char str x:it) #\e))
|
||||||
|
(princ str)))
|
||||||
(t
|
(t
|
||||||
(cond ((eql 't object)
|
(cond ((eql 't object)
|
||||||
(princ "true"))
|
(princ "true"))
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,11 @@
|
||||||
(when (rest list)
|
(when (rest list)
|
||||||
(write-char #\,))))
|
(write-char #\,))))
|
||||||
(float
|
(float
|
||||||
;; cut off Lisp specific notations
|
;; JS can't read 'd0' 'l0'
|
||||||
(princ (string-right-trim "dl0" (princ-to-string object))))
|
(let ((str (princ-to-string object)))
|
||||||
|
(x:when-it (position-if (lambda (ch) (find ch "dl")) str)
|
||||||
|
(setf (char str x:it) #\e))
|
||||||
|
(princ str)))
|
||||||
(t
|
(t
|
||||||
(cond ((eql 't object)
|
(cond ((eql 't object)
|
||||||
(princ "true"))
|
(princ "true"))
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,11 @@
|
||||||
(when (rest list)
|
(when (rest list)
|
||||||
(write-char #\,))))
|
(write-char #\,))))
|
||||||
(float
|
(float
|
||||||
;; cut off Lisp specific notations
|
;; JS can't read 'd0' 'l0'
|
||||||
(princ (string-right-trim "dl0" (princ-to-string object))))
|
(let ((str (princ-to-string object)))
|
||||||
|
(x:when-it (position-if (lambda (ch) (find ch "dl")) str)
|
||||||
|
(setf (char str x:it) #\e))
|
||||||
|
(princ str)))
|
||||||
(t
|
(t
|
||||||
(cond ((eql 't object)
|
(cond ((eql 't object)
|
||||||
(princ "true"))
|
(princ "true"))
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,11 @@
|
||||||
(when (rest list)
|
(when (rest list)
|
||||||
(write-char #\,))))
|
(write-char #\,))))
|
||||||
(float
|
(float
|
||||||
;; cut off Lisp specific notations
|
;; JS can't read 'd0' 'l0'
|
||||||
(princ (string-right-trim "dl0" (princ-to-string object))))
|
(let ((str (princ-to-string object)))
|
||||||
|
(x:when-it (position-if (lambda (ch) (find ch "dl")) str)
|
||||||
|
(setf (char str x:it) #\e))
|
||||||
|
(princ str)))
|
||||||
(t
|
(t
|
||||||
(cond ((eql 't object)
|
(cond ((eql 't object)
|
||||||
(princ "true"))
|
(princ "true"))
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,11 @@
|
||||||
(when (rest list)
|
(when (rest list)
|
||||||
(write-char #\,))))
|
(write-char #\,))))
|
||||||
(float
|
(float
|
||||||
;; cut off Lisp specific notations
|
;; JS can't read 'd0' 'l0'
|
||||||
(princ (string-right-trim "dl0" (princ-to-string object))))
|
(let ((str (princ-to-string object)))
|
||||||
|
(x:when-it (position-if (lambda (ch) (find ch "dl")) str)
|
||||||
|
(setf (char str x:it) #\e))
|
||||||
|
(princ str)))
|
||||||
(t
|
(t
|
||||||
(cond ((eql 't object)
|
(cond ((eql 't object)
|
||||||
(princ "true"))
|
(princ "true"))
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,11 @@
|
||||||
(when (rest list)
|
(when (rest list)
|
||||||
(write-char #\,))))
|
(write-char #\,))))
|
||||||
(float
|
(float
|
||||||
;; cut off Lisp specific notations
|
;; JS can't read 'd0' 'l0'
|
||||||
(princ (string-right-trim "dl0" (princ-to-string object))))
|
(let ((str (princ-to-string object)))
|
||||||
|
(x:when-it (position-if (lambda (ch) (find ch "dl")) str)
|
||||||
|
(setf (char str x:it) #\e))
|
||||||
|
(princ str)))
|
||||||
(t
|
(t
|
||||||
(cond ((eql 't object)
|
(cond ((eql 't object)
|
||||||
(princ "true"))
|
(princ "true"))
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,11 @@
|
||||||
(when (rest list)
|
(when (rest list)
|
||||||
(write-char #\,))))
|
(write-char #\,))))
|
||||||
(float
|
(float
|
||||||
;; cut off Lisp specific notations
|
;; JS can't read 'd0' 'l0'
|
||||||
(princ (string-right-trim "dl0" (princ-to-string object))))
|
(let ((str (princ-to-string object)))
|
||||||
|
(x:when-it (position-if (lambda (ch) (find ch "dl")) str)
|
||||||
|
(setf (char str x:it) #\e))
|
||||||
|
(princ str)))
|
||||||
(t
|
(t
|
||||||
(cond ((eql 't object)
|
(cond ((eql 't object)
|
||||||
(princ "true"))
|
(princ "true"))
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,8 @@
|
||||||
|
|
||||||
(in-package :qml-ui-variables)
|
(in-package :qml-ui-variables)
|
||||||
|
|
||||||
(defparameter *qml-items* (qfind-children qml:*quick-view*))
|
(defparameter *qml-items* (qfind-children #+sailfish (qml:root-item)
|
||||||
|
#-sailfish qml:*quick-view*))
|
||||||
|
|
||||||
(defun class-name* (item)
|
(defun class-name* (item)
|
||||||
(let ((name (|className| (|metaObject| item))))
|
(let ((name (|className| (|metaObject| item))))
|
||||||
|
|
@ -46,8 +47,7 @@
|
||||||
(flet ((one-space (s)
|
(flet ((one-space (s)
|
||||||
(x:join (remove-if 'x:empty-string (x:split s)))))
|
(x:join (remove-if 'x:empty-string (x:split s)))))
|
||||||
(let ((s (ext:run-program "grep" (list "-rn"
|
(let ((s (ext:run-program "grep" (list "-rn"
|
||||||
"--include"
|
#-sailfish "--include" #-sailfish "*.qml"
|
||||||
"*.qml"
|
|
||||||
(format nil "objectName:[[:space:]]*~S" name)
|
(format nil "objectName:[[:space:]]*~S" name)
|
||||||
"qml/"))))
|
"qml/"))))
|
||||||
(loop :for line = (read-line s nil nil)
|
(loop :for line = (read-line s nil nil)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue