Christian Kamm
669b9c4552
Add signals defined in Qml and their generated slots to the code model.
2010-02-17 08:45:39 +01:00
Christian Kamm
da3679066e
Add QmlJS semantic checker.
...
* Add SemanticHighlighter to QmlJSTextEditor to update the semantic info
in a background thread.
* Add QmlJS::Check to run semantic checks on qml and js documents.
* Add a check for incorrect property names.
* Fix hoverhandler to show tool tips from extra selections over help
tooltips.
2010-02-16 10:38:56 +01:00
Christian Kamm
b23fc0c572
Rename QmlJS::Check -> QmlJS::Evaluate.
...
It is used to evaluate expressions to values.
Done to make room for a real 'check' pass.
2010-02-15 11:52:39 +01:00
Roberto Raggi
221fc011b8
Compile.
2010-02-12 10:43:33 +01:00
Roberto Raggi
bdf8c94809
Get rid off the friend QmlJS::Link declaration.
2010-02-10 17:06:32 +01:00
Roberto Raggi
220f6b43c2
Register the Qt' and the
console' object.
2010-02-10 15:51:53 +01:00
Alessandro Portale
2117d6af90
Compile fix for MSVC
...
Reviewed-by: Roberto Raggi <qtc-committer@nokia.com >
modified: src/libs/qmljs/qmljsinterpreter.cpp
2010-02-09 12:29:10 +01:00
Roberto Raggi
967ed09c29
Initial support of `Follow symbol under cursor' for QML/JS.
2010-02-09 11:37:58 +01:00
Tobias Hunger
0ae3f86c3a
Fix building in windows
...
Reviewed-by: Roberto Raggi
2010-02-04 11:08:57 +01:00
Christian Kamm
25e04d8ef1
Make QmlJS::Link private. Use Context::build to set up a context.
2010-02-04 10:34:49 +01:00
Christian Kamm
e984691fe6
Fix prototype reference resolution for Qml objects.
2010-02-04 10:34:49 +01:00
Roberto Raggi
85ff8c2259
Compile.
2010-02-03 16:34:56 +01:00
Roberto Raggi
976d74ca73
Add support for lazy prototypes.
...
Done-with: ckamm
2010-02-03 15:42:32 +01:00
Roberto Raggi
1f0b717ad2
Completion for global variables in JS.
...
* Support for lookup JS vs Qml
* Bind global variables.
Done-with: ckamm
2010-02-03 14:34:06 +01:00
Christian Kamm
49c43aaab1
Get rid of Environment, introduce external ScopeChain in Link.
...
Done-with: Roberto
2010-02-03 10:59:52 +01:00
Roberto Raggi
ba18e70034
Introduced QML/JS references.
...
Done with ckamm
2010-02-03 10:24:25 +01:00
Roberto Raggi
e7a330f92a
Fixed the member lookup.
...
We should never look at the scope chain of the base object when performing a dependant lookup.
2010-02-02 15:54:38 +01:00
Roberto Raggi
0f6551c43f
Introduced ASTObjectValue.
2010-02-01 13:54:59 +01:00
Roberto Raggi
0cf48cb45d
Introduced ASTFunctionValue.
2010-02-01 13:54:59 +01:00
Roberto Raggi
da81d59e24
Look at the enumerators when populating the completion box.
2010-01-28 15:51:16 +01:00
Roberto Raggi
b4ccdab483
Removed obsolete code.
2010-01-28 15:51:16 +01:00
Roberto Raggi
98474002ad
Store all the object-based values in the QML/JS interpreter.
2010-01-28 14:20:57 +01:00
Erik Verbruggen
8ecc80ec4c
Generalized ExpressionUnderCursor and got rid of duplicate code.
...
Done-with: Roberto Raggi
2010-01-27 12:41:01 +01:00
Erik Verbruggen
cf35a0249b
Implemented the binding phase for QML.
...
Done-with: Christian Kamm
2010-01-26 15:20:18 +01:00
Roberto Raggi
aa92c84e08
Group the members of ConvertToString and ConvertToNumber.
2010-01-26 15:12:47 +01:00
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
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
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
Roberto Raggi
099f2072a2
Added a simple scanner to get the expression under cursor.
2010-01-22 14:42:59 +01:00
Roberto Raggi
60af1681c2
Initial work on the QML/JS expression evaluator.
2010-01-21 15:54:36 +01:00