Roberto Raggi
478907e5c3
Added method defaultValueForBuiltinType(typeName) to the QML/JS interpreter.
2010-01-26 11:15:21 +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
c65a028f74
Added the user components to the global completion and fixed completion for the `parent' property.
2010-01-26 09:54:02 +01:00
Roberto Raggi
0969f3b85f
Resolve the `import' directives.
...
Yet another quick and dirty hack while waiting for the real binding pass.
2010-01-25 17:14:23 +01:00
Roberto Raggi
c9b80ae370
Activate the function-like completion only when the character at the left of the text cursor is a `('.
2010-01-25 16:52:10 +01:00
Roberto Raggi
4d0502f414
Just a temporary hack to get completion for user-defined components. It should go away as soon as we have a decent binding pass.
2010-01-25 15:50:21 +01:00
Roberto Raggi
c9efafcb98
Introduced ranges and versioning of QML/JS documents.
2010-01-25 14:18:53 +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
b4a901aa1e
Initial work on global completion for QML/JS files.
2010-01-25 09:31:35 +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
2d2ec2b785
Cleanup
2010-01-25 09:31:34 +01:00
Thorbjørn Lindeijer
d3acff747c
Don't try to read the next start element after the root element
...
There can only be one root element in an XML document, and when we try
to read another one we get a premature end of document error.
2010-01-22 15:54:03 +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
f837d49ca4
Show the function arguments hint.
2010-01-22 10:58:32 +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
Roberto Raggi
68a8b6a663
Show in the completion box only the visible IDs.
2010-01-22 09:37:44 +01:00
Roberto Raggi
33bc7d7708
Disabled the code completion of QML components.
2010-01-22 09:23:58 +01:00
Roberto Raggi
f0e69db452
Evaluate simple JS expressions.
2010-01-21 17:08:42 +01:00
Roberto Raggi
24876bfa73
Don't remove snippets.
2010-01-21 12:15:28 +01:00
Roberto Raggi
34545eeaca
Add the QML user types to the completion box.
2010-01-21 11:36:53 +01:00
Roberto Raggi
e20d5a8289
Some cleanup in the QML/JS code completion engine.
2010-01-21 11:36:53 +01:00
Thorbjørn Lindeijer
da82934da3
Fixed automatic activation of snippet completion
...
The automatic activation of snippets can be rather unexpected. Also
provided some ad-hoc icons for snippets and QML completion items.
Done-with: Roberto Raggi <roberto.raggi@nokia.com >
2010-01-21 10:59:04 +01:00
mae
5b8a678672
first iteration of snippet support for qml
...
Done with Thorbjorn and Roberto
2010-01-19 18:50:50 +01:00
Roberto Raggi
f0b1c33ba4
Added a few more snippets
2010-01-19 17:41:02 +01:00
Roberto Raggi
51a33a9f0a
Create completion items for the builtin snippets
2010-01-19 16:36:48 +01:00
Roberto Raggi
c943d8e4f1
Renamed classes and files to use the QmlJS prefix.
2010-01-18 16:59:20 +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
96e31c2a0f
Started merging the JS and QML editor plug-ins.
2010-01-15 17:20:19 +01:00