Christian Kamm
f48df24737
QmlJS: Improve property and Type completion in Qml object members.
...
Done-with: Erik Verbruggen
2010-04-29 16:05:24 +02:00
Christian Kamm
9af4f2c64f
QmlJS: Remove unused function environment from binder.
...
This used to contain all functions declared in Script blocks. With them
gone, there's no reason to keep it.
2010-04-28 10:01:36 +02:00
Christian Kamm
3286f48504
QmlJS: Remove Link::scopeChainAt, initialize scope chain in constructor.
...
Use ScopeBuilder.push(...) for the same functionality.
Reviewed-by: Erik Verbruggen
2010-04-22 16:36:43 +02:00
Christian Kamm
f47135c919
QmlJS: Fix code model for QSize and QSizeF.
...
Means their members are now completed correctly.
Task-number: QTCREATORBUG-1132
Reviewed-by: Erik Verbruggen
2010-04-15 11:41:24 +02:00
Yann Bodson
9218e261b0
Fix 'capitalization' typo.
2010-04-12 15:18:21 +10:00
Friedemann Kleint
98e6eac6c2
Windows Compile fix.
2010-04-07 12:09:46 +02:00
Christian Kamm
db2f91ef8f
QmlJS: Don't produce Qml type errors if plugins are imported.
...
Task-number: QTCREATORBUG-1021
Reviewed-by: Erik Verbruggen
2010-04-07 11:09:27 +02:00
Erik Verbruggen
4ba9a1b0c2
Fixed qualified-enum handling.
...
Done-with: ckamm
2010-04-06 15:41:06 +02:00
Erik Verbruggen
e615cf82a5
Fixed regression when assigning an object binding to an array property.
2010-04-06 12:57:02 +02:00
Erik Verbruggen
491bf79d5f
Changed QML reading in QML designer to use the interpreter for property types.
2010-04-06 11:46:36 +02:00
Erik Verbruggen
b71d3eb145
Added defaultProperty attribute reading and storing.
2010-04-06 09:38:40 +02:00
Christian Kamm
285e2ffbb2
QmlJS: Only collect linker errors for the current file being checked.
...
Avoids bug where import errors would show up in all files.
Reviewed-by: Roberto Raggi
2010-03-29 11:33:25 +02:00
Christian Kamm
81f7fc2e70
QmlJS: Fix reading enumerators from Qml type description.
...
Previously, the actual enumerator values weren't read correctly.
2010-03-26 14:17:08 +01:00
Christian Kamm
c1c155f5bb
Fix code model for nested Qml packages like Qt.labs.particles.
...
Task-number: QTCREATORBUG-926
Reviewed-by: Erik Verbruggen
2010-03-25 15:31:24 +01:00
Friedemann Kleint
5dd8dfba30
tr()-Fixes
2010-03-23 17:24:59 +01:00
Christian Kamm
9ea01cf5fb
Improve Qml code model import handling.
...
* Fill the snapshot with files that could be imported.
* Implement package imports.
* The qmldir file is not parsed yet.
Reviewed-by: Erik Verbruggen
2010-03-18 11:25:37 +01:00
hjk
9595504bda
Long live the king!
2010-03-05 11:28:13 +01:00
Christian Kamm
fe13a9faec
Default initialize FakeMetaMethod correctly.
...
Reviewed-by: Erik Verbruggen
2010-03-03 15:33:36 +01:00
Christian Kamm
6a49483cff
Add read signals to the FakeMetaObject.
...
Reviewed-by: Erik Verbruggen
2010-03-03 15:33:36 +01:00
Erik Verbruggen
d7ac47da15
Changed field class names.
2010-03-01 14:34:29 +01:00
Lasse Holmstedt
532952b5a0
Compile fix and moved Design mode icon to coreplugin
2010-03-01 13:32:30 +01:00
Thomas Hartmann
a01ff0cc6e
compile fix
2010-03-01 13:23:05 +01:00
Erik Verbruggen
13d7612f09
Removed private header dependencies and introduced loading QML types from XML file.
2010-03-01 13:13:02 +01:00
Kai Koehne
318fee6f5c
QmlJS: Fix compilation with latest changes of QDeclarative
...
All files have been renamed from Qml to QDeclarative
2010-02-26 14:43:39 +01:00
Christian Kamm
f0674aa7e9
Add check for anchor line, changed value assignment checks into visitor.
...
Done-with: Erik Verbruggen
2010-02-23 17:03:05 +01:00
Christian Kamm
0e2685332c
Add check for correct color string in Qml.
2010-02-23 14:57:19 +01:00
Christian Kamm
b1522ba5c8
Fix semantic checks not being applied to the Qml root object.
...
By always setting the scope object, even if it is identical to the root
object.
Done-with: Erik Verbruggen
2010-02-23 12:36:48 +01:00
Christian Kamm
b8a73d1e18
Fix compile error with msvc.
2010-02-22 12:01:55 +01:00
Christian Kamm
fcb6c4984e
Fix a memory leak with the QmlJS scope chain.
2010-02-22 11:21:25 +01:00
Tobias Hunger
28e348ace6
Fix compile on windows
2010-02-22 11:06:05 +01:00
Christian Kamm
8d14f18ec0
Add an accessor to get the flat scope list from ScopeChain.
...
Done-with: Erik Verbruggen
2010-02-22 10:22:23 +01:00
Christian Kamm
08cfc8f28c
Pass in the whole AST path for scope creation.
...
Just the declaring member isn't enough.
2010-02-22 10:22:23 +01:00
Christian Kamm
c289897351
Make QmlJS scope building more flexible.
...
Instead of only maintaining a flat list of scopes, actually store the
global, component chain, root object, scope object, function, id and js
scopes separately.
2010-02-22 10:22:23 +01:00
Erik Verbruggen
78b3145477
Semantic checking for easing curve names.
...
Done-with: Christian Kamm
2010-02-19 15:11:03 +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
265118eb5e
Add the onNameChanged signals that Qml properties generate implicitly.
2010-02-17 09:17:29 +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
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