Commit Graph

789 Commits

Author SHA1 Message Date
Roberto Raggi
3bb70c1c49 Fixed String.prototype.split. The property `length' should be 1 and not 2. 2010-01-26 12:38:52 +01:00
Roberto Raggi
34751f4af8 Added family to the QML font object. 2010-01-26 12:31:01 +01:00
Simon Hausmann
521c69a744 Fix compilation without declarative backend 2010-01-26 12:06:58 +01:00
Roberto Raggi
e722570f06 Inserted a fake semicolon at the end of the trimmed line. 2010-01-26 11:58:20 +01:00
Roberto Raggi
478907e5c3 Added method defaultValueForBuiltinType(typeName) to the QML/JS interpreter. 2010-01-26 11:15:21 +01:00
Roberto Raggi
84d721078e Added some basic support for the attached Keys property. 2010-01-26 11:06:28 +01:00
Roberto Raggi
2512a684d5 Show the argument names from the method's signature. 2010-01-26 10:50:55 +01:00
Roberto Raggi
bf8c0b8a22 Complete signals, slots and generate slots of QML items. 2010-01-26 10:19:42 +01:00
Roberto Raggi
2a5506b1d0 Show auto generated slots (e.g. onClicked) only when performing a global completion. 2010-01-26 10:10:11 +01:00
Roberto Raggi
6c9dd09587 Added support for QFont based properties. 2010-01-25 16:43:23 +01:00
Roberto Raggi
327893d7fd Call the base implementation of ObjectValue::process() 2010-01-25 15:50:21 +01:00
Roberto Raggi
cca9910287 Added support for properties of type point, rect, and borders. 2010-01-25 15:06:23 +01:00
Roberto Raggi
a8f0971a0b Show the auto-created slots in the completion box (e.g. MouseRegion's onClicked). 2010-01-25 14:48:44 +01:00
Roberto Raggi
c9efafcb98 Introduced ranges and versioning of QML/JS documents. 2010-01-25 14:18:53 +01:00
Roberto Raggi
971e4b596c Return a normal plain Object value when Qt/Declaritive is not available. 2010-01-25 09:40:37 +01:00
Roberto Raggi
6db71d185b Try to get the item under cursor. 2010-01-25 09:31:36 +01:00
Roberto Raggi
24f5a9c0e4 Set up the scope chain. 2010-01-25 09:31:36 +01:00
Roberto Raggi
feab07de81 Refactored the QML/JS completer 2010-01-25 09:31:35 +01:00
Roberto Raggi
659b2a7ee3 Complete QML properties. 2010-01-25 09:31:35 +01:00
Roberto Raggi
3c37eaa577 Simulate the call stack. 2010-01-25 09:31:34 +01:00
Roberto Raggi
2d2ec2b785 Cleanup 2010-01-25 09:31:34 +01:00
Tobias Hunger
b832bc3d6e Replace "sth */* text */" with "sth * /* text */"
*  Fixes a warning in windows.
2010-01-22 14:54:26 +01:00
Roberto Raggi
099f2072a2 Added a simple scanner to get the expression under cursor. 2010-01-22 14:42:59 +01:00
Roberto Raggi
ba3e68fcbb Try to get the type of the qualified name id under cursor 2010-01-22 10:26:52 +01:00
Erik Verbruggen
2395ec51a6 Incorporated commit 38c0ed9870fc6bd8ba759c283eaf2bffb61c2e3f from kinetic-declarativeui.
Fixed possible array index-out-of-bounds crash in error reporting.
2010-01-21 16:47:46 +01:00
Roberto Raggi
60af1681c2 Initial work on the QML/JS expression evaluator. 2010-01-21 15:54:36 +01:00
Roberto Raggi
e87cd6d1a8 Fixed indentation of QML/JS for-statements. 2010-01-19 13:57:59 +01:00
Roberto Raggi
6b6b827d9b Added helper method QmlJSIndenter::tokenText(). 2010-01-19 12:59:31 +01:00
Roberto Raggi
60ad6c478c Moved QmlJSScanner::Token in the QmlJS namespace. 2010-01-19 12:54:17 +01:00
Roberto Raggi
1bc838fd2b Handle comments at the end of braceless control statements. 2010-01-19 12:50:48 +01:00
ck
4fb2a9fd5f QmlJS: Fix compile for namespaced Qt.
Reviewed-by: Roberto Raggi
2010-01-19 11:31:24 +01:00
Christian Kamm
419bc3005e Add QmlJS::Document::ast() for when the type of the AST doesn't matter.
Ideally most of our visitors won't need to make the QML vs JS
distinction. For these cases it'll be handy to be able to access the AST
no matter whether it's a Program or UiProgram.
2010-01-19 10:16:57 +01:00
Roberto Raggi
669c2de681 Implemented token-based version of QmlJSIndenter::matchBracelessControlStatement(). 2010-01-18 18:31:17 +01:00
Roberto Raggi
c943d8e4f1 Renamed classes and files to use the QmlJS prefix. 2010-01-18 16:59:20 +01:00
Erik Verbruggen
ed4118628d Changed the QScriptHighlighter & QScriptIndenter namespaces. 2010-01-18 14:12:45 +01:00
Erik Verbruggen
bedb5d936b Moved the QScriptHighlighter & friends into the QmlJS library. 2010-01-18 14:12:44 +01:00
Erik Verbruggen
205c9b3f9a Moved the qmljs shared folder into the shared library. 2010-01-18 14:12:44 +01:00
Erik Verbruggen
0f8126f62d Changed the QML/JS editor to treat .qs/.js files as JavaScript, and invoke the appropriate parser for it.
Reviewed-by: Christian Kamm
2010-01-18 13:40:47 +01:00
Erik Verbruggen
8e11f81d96 Gotten rid of dulplicate files, and fixed includes. 2010-01-15 13:39:54 +01:00