Kai Koehne
5ed718a002
Fix imported qml component names under Windows
...
Reviewed-by: ckamm
2010-03-31 15:50:02 +02:00
Roberto Raggi
fe46a750ed
Updated the QML/JS front-end.
2010-03-31 15:40:28 +02:00
Christian Kamm
3191cfe832
QmlJS: Fix invalid errors inside qmlproject files.
...
The Document thought it was a JS file as it doesn't have the .qml
extension.
2010-03-31 13:43:40 +02:00
Erik Verbruggen
21e1db4b5b
Exported classes to use in the QML designer.
2010-03-31 10:03:18 +02:00
Roberto Raggi
0b12111d6e
Regenerated the qml/js front-end.
2010-03-29 17:21:05 +02:00
Roberto Raggi
4ee8a199af
Introduced Document::isQmlDocument() and Document::isJSDocument().
2010-03-29 12:56:25 +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
b2bb919e45
QmlJSEditor: Add completion for JS keywords and Qml reserved words.
...
Task-number: QTCREATORBUG-919
Reviewed-by: Roberto Raggi
2010-03-26 13:51:46 +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
Christian Kamm
dab558d4fe
Add errors for incorrect imports in Qml.
...
Task-number: QTCREATORBUG-874
Reviewed-by: Erik Verbruggen
2010-03-25 14:55:44 +01:00
Christian Kamm
0423169bd4
Update Qml parser.
2010-03-25 14:55:44 +01:00
Friedemann Kleint
5dd8dfba30
tr()-Fixes
2010-03-23 17:24:59 +01:00
Tobias Hunger
16567649d5
Fix build on windows
2010-03-19 15:37:02 +01:00
Christian Kamm
6eadfa3ac0
Read qmldir files in a thread and cache them in Snapshot.
...
Reviewed-by: Erik Verbruggen
2010-03-18 16:47:21 +01:00
Christian Kamm
4261aca7b0
Make the Qml code model read qmldir files for import resolving.
...
However, it still re-reads for each use of Link. Needs to be optimized.
Reviewed-by: Roberto Raggi
2010-03-18 16:47:16 +01:00
Erik Verbruggen
68a463cf36
Switched QML designer to use the ast for loading.
2010-03-18 12:50:29 +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
Roberto Raggi
5b9d6614f2
Updated the QML/JS parser.
2010-03-15 15:29:37 +01:00
Christian Kamm
4722c6cf84
Fix the scope chain not being set up correctly for the outermost scope.
...
This bug manifested itself as not getting a tooltip and correct context
help for the type of the root object in a Qml file.
2010-03-10 14:52:34 +01:00
hjk
9595504bda
Long live the king!
2010-03-05 11:28:13 +01:00
Erik Verbruggen
9539a8dcb0
Changed error to warning when using a string literal for an ID.
2010-03-04 16:41:08 +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
Roberto Raggi
26e4672bc6
Updated the QML/JS front-end.
2010-03-03 11:39:21 +01:00
Christian Kamm
08b9323f0c
Fix completion and checking for Script elements. Update Qml type xml.
...
* The "Script" type is now implicitly available without imports.
* No errors for bindings inside a Connections element.
Reviewed-by: Roberto Raggi
2010-03-03 11:38:17 +01:00
ck
7058367556
Silence silly gcc warning.
...
Reviewed-by: Erik Verbruggen
2010-03-02 11:00:14 +01:00
Erik Verbruggen
3b2c2c2253
Changed color name checks to use new QColor::isValidColor method.
2010-03-02 10:37:04 +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
Erik Verbruggen
912a1b95a9
Fixed crash when putting a second root item into a QML file.
2010-02-25 12:57:17 +01:00
Erik Verbruggen
8fbf0dd08f
Fixed possible crash when error recovery yielded a partially correct AST.
2010-02-24 17:14:51 +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
feacbf8a2a
Check that the id property is a plain lowercase identifier.
2010-02-23 14:57:19 +01:00
Christian Kamm
0e2685332c
Add check for correct color string in Qml.
2010-02-23 14:57:19 +01:00
Christian Kamm
f717a7df30
Add Qml type checks for assigning literals to properties.
...
Done-with: Erik Verbruggen
2010-02-23 12:36:48 +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
e9039db984
Move the scope building logic into QmlJS::ScopeBuilder.
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
Erik Verbruggen
b17fc90310
Made the warnings/errors translatable.
2010-02-19 15:11:03 +01:00
Erik Verbruggen
7ee1bc5242
Suppress 'unknown property' warning after finding an unknown type.
...
And made the warnings/errors translatable.
2010-02-19 15:11:03 +01:00