Christian Kamm
2440bfc5dc
Don't try to look up members of attached properties.
2010-02-18 15:01:26 +01:00
Christian Kamm
e8565890fb
Teach QmlJS editor about QVector2D and QVector3D.
...
Used, for instance, in Rotation.axis or Rotation.origin.
2010-02-18 14:54:40 +01:00
Christian Kamm
2ce1592a14
Error when binding to nonexistant member of property in Qml.
...
This now errors for:
anchors.undefinedAnchor: foo
x.undefinedAnchor
2010-02-18 14:24:24 +01:00
Christian Kamm
4d5e1a9a0c
Fix possible crash in QmlJS semantic checker.
2010-02-18 10:42:15 +01:00
Christian Kamm
499f7780e4
Fix possible crash in QmlJS semantic checker.
2010-02-18 10:39:18 +01:00
Christian Kamm
3035733415
Workaround for not erroring on anchors { ... } in Qml for now.
2010-02-17 09:29:13 +01:00
Christian Kamm
265118eb5e
Add the onNameChanged signals that Qml properties generate implicitly.
2010-02-17 09:17:29 +01:00
Christian Kamm
a0431f0563
Don't error for unknown property names inside ListElement for now.
2010-02-17 09:01:39 +01:00
Christian Kamm
4ab2272a89
Remove unused parameter.
2010-02-17 08:58:33 +01:00
Christian Kamm
669b9c4552
Add signals defined in Qml and their generated slots to the code model.
2010-02-17 08:45:39 +01:00
ck
69e141c32f
QML stuff: Fix compilation for namespaced Qt.
2010-02-16 15:14:49 +01:00
Christian Kamm
45efd5b5b1
Don't show 'invalid property name' errors if we can't resolve the type.
...
The idea is that it may be a plugin-provided type. We don't want user
code to be riddled with error markers in that case.
Reviewed-by: Roberto Raggi
2010-02-16 13:30:40 +01:00
Christian Kamm
e6d9d9e387
Fix incorrect 'invalid property' errors for PropertyChanges.
...
Reviewed-by: Roberto Raggi
2010-02-16 11:55:41 +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
Roberto Raggi
fd26a8c8ec
Get rid of the QmlJS prefix.
2010-02-15 12:56:03 +01:00
Roberto Raggi
8fb82ef792
Merge qmljshighlighter.* with qmlhighlighter.*.
2010-02-15 12:39:30 +01:00
Christian Kamm
cb3001b621
Remove unused forward declaration.
2010-02-15 11:56:05 +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
hjk
a029a6c68a
compile fix with namespaces
2010-02-12 11:00:12 +01:00
Roberto Raggi
221fc011b8
Compile.
2010-02-12 10:43:33 +01:00
Christian Kamm
9245c7bab5
Removed unnecessary includes of qmljslink.h
2010-02-12 10:10:20 +01:00
Christian Kamm
42959f8fef
Remove the lookup into including Qml files in the root scope of a JS file.
2010-02-12 10:05:13 +01:00
Christian Kamm
2b1adbf610
Improve building of the Qml/JS scope chain.
...
* For JS files: Add each Qml component that sources the file in a Script
tag to the scope chain.
* For Qml components: Add each component that instantiates the component
to the scope chain.
* Generate the full list of documents required for completion in a
given file. Previously, files that included the file were missing.
2010-02-11 19:08:33 +01:00
Roberto Raggi
7a65191306
Moved the code in the source file.
2010-02-11 10:19:41 +01:00
Roberto Raggi
bdf8c94809
Get rid off the friend QmlJS::Link declaration.
2010-02-10 17:06:32 +01:00
Roberto Raggi
56df4e29ce
Fixed possible crash when trying to link invalid documents.
2010-02-10 16:24:22 +01:00
Roberto Raggi
220f6b43c2
Register the Qt' and the console' object.
2010-02-10 15:51:53 +01:00
Roberto Raggi
978c89f506
Get rid of obsolete README.
2010-02-09 14:03:35 +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
0567adbc32
Removed useless qDebug.
2010-02-09 12:16:19 +01:00
Roberto Raggi
3d44c5621d
Improved completion of JavaScript expressions.
2010-02-09 11:37:58 +01:00
Roberto Raggi
967ed09c29
Initial support of `Follow symbol under cursor' for QML/JS.
2010-02-09 11:37:58 +01:00
Erik Verbruggen
09cae866e5
Synced changes with Qt.
2010-02-08 14:29:43 +01:00
Oswald Buddenhagen
d4ac9c9f8e
re-enable QT_USE_FAST_CONCATENATION
...
includes workaround for breakage with old g++
2010-02-08 13:00:57 +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
14f483c67b
Remove unused friend of QmlJS::Bind.
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
fcf81b22ed
Get rid of BindPtr.
...
There is no reason to store the Bind object in a QSharedPointer because the `binder' has the same
lifetime of its document.
2010-02-03 15:59:15 +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
95849cb0bd
Store bindings and definitions in one single table.
2010-02-03 09:34:28 +01:00
Roberto Raggi
14ffb1e465
Some refactoring needed to create ranges for JavaScript functions.
2010-02-02 16:36:14 +01:00
Christian Kamm
03fa188b41
Bind each QML document after parsing. Link them before use.
...
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2010-02-02 16:03:43 +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
fac977a5bd
Try to get the type from a qualified-id.
2010-02-02 15:02:21 +01:00
Christian Kamm
c0506785bf
Drop snapshot argument from Bind constructor.
2010-02-02 11:51:10 +01:00