Christian Kamm
ce99372c63
QmlJS: Add variables and functions in a JS function to code model.
...
Allows completion of local variable and function names.
Task-number: QTCREATORBUG-942
Reviewed-by: Roberto Raggi
2010-04-20 15:20:52 +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
Christian Kamm
6a12c99bd1
QmlJSEditor: Improve indentation of square brackets.
...
Task-number: QTCREATORBUG-583
Reviewed-by: Roberto Raggi
2010-04-14 15:19:56 +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
Christian Kamm
9402fad726
QmlJSEditor: Build Snapshot by looking at imports of parsed files.
...
Previously we just scanned every directory containing a qml file for
other qml files.
This makes import ".." work.
Reviewed-by: Erik Verbruggen
2010-04-06 09:53:57 +02:00
Erik Verbruggen
b71d3eb145
Added defaultProperty attribute reading and storing.
2010-04-06 09:38:40 +02:00
Christian Kamm
8d70ab27dc
QmlJS: Clean paths in the Snapshot.
...
To solve import resolution issues on windows.
Reviewed-by: Roberto Raggi
2010-04-01 15:21:30 +02:00
Christian Kamm
9531e75188
Revert "QmlJS: Use the canonical paths for the Documents."
...
Using canonical paths breaks with symlinked components. Also the editor
filename isn't canonical, so comparing them breaks.
This reverts commit efcdadd2bb .
2010-04-01 12:43:15 +02:00
Christian Kamm
49416fe888
QmlJS: Add a path->document list hash to Snapshot.
...
Also change the filename->document map to a hash.
Reviewed-by: Roberto Raggi
2010-04-01 11:28:56 +02:00
Christian Kamm
efcdadd2bb
QmlJS: Use the canonical paths for the Documents.
...
Otherwise the paths may end up with ../ or /./ in them and confuse the
Qml import resolving.
Reviewed-by: Thomas Hartmann
2010-04-01 10:59:20 +02:00
Christian Kamm
811da6e31a
Remove debug output that slipped into 5ed718a002
2010-03-31 15:58:23 +02:00
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