Commit Graph

37 Commits

Author SHA1 Message Date
Christian Kamm
c6b688d4e6 QmlJS: Fix code model update when project filelist changes.
Task-number: QTCREATORBUG-2986
Reviewed-by: Roberto Raggi
2010-11-09 14:31:36 +01:00
Friedemann Kleint
f1fb0bddb1 Debugger/JS Code model: Set environment for QML tools correctly.
Set complete build environment (MinGW).

Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>

Task-number: QTCREATORBUG-2883
2010-10-26 15:39:37 +02:00
Christian Kamm
a9b4a25a68 QmlJS: Simplify document and library updating.
It is now guaranteed that the ModelManager's snapshot will be updated
before the documentChanged/libraryInfoChanged signals are emitted.
Whether the updated document/library is already in the snapshot or not
was undefined before.

Task-number: QTCREATORBUG-2640
Reviewed-by: Roberto Raggi
2010-10-15 10:06:59 +02:00
Christian Kamm
ef96363560 QmlJS: Fix plugin dumpers running all the time if dump fails.
Task-number: QTCREATORBUG-2733
Reviewed-by: Kai Koehne
2010-10-14 15:15:44 +02:00
Lasse Holmstedt
96d991bbdc QML Observer: Build together on runtime with debugging tools
Moved qmljsdebugger to a dir under qml/, made qmlobserver compile
without creator dependencies and made it compile with debugging
helpers.

Reviewed-by: hjk
2010-09-29 09:39:30 +02:00
Lasse Holmstedt
5d9858129a Compile qmldump with debugging helpers
Must be compiled during runtime - otherwise, the app may not work
with Qt that is compiled with another compiler.

Reviewed-by: hjk
2010-09-29 09:39:18 +02:00
Christian Kamm
3f505e9982 QmlJS: Add initial 'Find Usages' support. 2010-09-24 14:11:06 +02:00
Christian Kamm
c7b3e3c81c QmlJS: Speed up Link significantly, provide more info on imports.
Link now caches imports. That means importing the same library (say, Qt)
from more than one file no longer creates an importing namespace for
each one. Instead, a single one is created for the instance of Link.

To make this work, the type environment in ScopeChain has been given its
own type: Interpreter::TypeEnvironment. That has the added benefit of
being able to carry meta-information about imports. You can use
TypeEnvironment::importInfo(qmlComponentName) to get information about
the import node that caused the import of the component.
2010-09-16 15:51:21 +02:00
Christian Kamm
97c07292aa Qml: Make import classification in Bind less verbose. 2010-09-16 15:51:21 +02:00
Christian Kamm
0fa0d00fcd Qml: Write qmldump errors to 'General messages'.
This should make it easier to debug problems with Qml plugin type
dumping.

Reviewed-by: Roberto Raggi
2010-09-15 14:15:45 +02:00
Leandro Melo
463488f7d7 MIME database: Add support for attribut weight; Add magic matcher for byte patterns.
This affects how files are identified by the MIME database.
Although this is a general improvement, it was triggered by the following bug report.

Task-number: QTCREATORBUG-1793
Reviewed-by: Friedemann Kleint
2010-09-13 16:45:21 +02:00
Christian Kamm
0a33abf094 QmlJS: Fix import path list growing over time.
Reviewed-by: Roberto Raggi
2010-09-08 16:53:03 +02:00
Roberto Raggi
ba03239749 Concate strings instead of using the QDir API to speed up the linking phase.
Reviewed-by: Christian Kamm
2010-09-08 15:13:12 +02:00
Roberto Raggi
e33767205b Introduced SemanticInfo::isValid(). 2010-09-08 11:39:24 +02:00
Christian Kamm
36e8b65d59 QmlJS: Fix running qmldump on plugins that require a specific uri.
The builtin QML plugins require to be imported with the full uri, i.e.
import Qt.labs.particles 1.0
so setting the import path to imports/Qt/labs and doing
import particles 1.0
is not supposed to work. (see QTBUG-11139)

This change adjusts qmldump to take an import path *and* the import uri,
so it will be able to dump the type information for these plugins.

Reviewed-by: Erik Verbruggen
2010-08-25 14:19:44 +02:00
Erik Verbruggen
ef11c4e7ac Truned qmldump into an .app, and suppress its dock icon. 2010-08-24 17:09:57 +02:00
Roberto Raggi
ef5aaa0368 Renamed QmlJS::Document::documentRevision(). 2010-07-07 17:52:46 +02:00
Christian Kamm
16b4e4e91f QmlJS: Fix import path handling in the model manager.
Previously, the model manager always had exactly one import path - but
you can open more than one Qml project at once. Now, we store the union
of all import paths in the model manager.

Reviewed-by: Roberto Raggi
2010-06-22 13:25:22 +02:00
Christian Kamm
acbf3925f5 QmlJS: Revert to supplying a xml file for builtin type information.
It'll be much saver to move to the qmldump based functionality once
it has been moved into Qt.

Essentially reverts: 45415783e7

Reviewed-by: Erik Verbruggen
2010-06-21 15:12:20 +02:00
Christian Kamm
45415783e7 QmlJS: Get rid of xml file describing qml builtin types.
The type information is now generated at runtime.
2010-06-10 11:33:04 +02:00
Christian Kamm
e307bc2506 QmlJS: Store plugin metatypes in LibraryInfo. Rework type loading. 2010-06-09 14:36:54 +02:00
Christian Kamm
822520c304 QmlJS: Get at types defined in plugins by running qmldump on them.
Task-number: QTCREATORBUG-1021
Reviewed-by: Roberto Raggi
2010-06-09 14:36:53 +02:00
Christian Kamm
0d5d6344bd QmlJS: Collect import version numbers in Bind. 2010-06-09 14:36:53 +02:00
Erik Verbruggen
eb9e7866f2 Fixed QTCREATORBUG-1397.
When adding a new file, refreshing semantic errors in the open editor should
have worked. It now also works for removing existing files.

Done-with: Christian Kamm
2010-05-18 15:29:11 +02:00
Christian Kamm
71b9057b0b QmlJS: The qml document's path is no longer an implicit import path. 2010-04-26 10:43:59 +02:00
Christian Kamm
3096b2a06f QmlJS: Set importing scopes for scripts correctly.
They had not yet been updated to the new way of importing javascript.

Reviewed-by: Erik Verbruggen
2010-04-22 16:36:43 +02:00
Erik Verbruggen
124bb7aad7 Emit extra signals to have the task manager show issues on project-load. 2010-04-16 13:09:44 +02:00
Erik Verbruggen
d88eaff481 Hooked up the QML task manager again.
The QML task manager behaviour is to show warnings/errors for _saved_ files
only.
2010-04-16 12:55:00 +02:00
Christian Kamm
eae88f02ba QmlJSEditor: When looking for qml libraries scan the current doc's path.
Reviewed-by: Erik Verbruggen
2010-04-07 11:09:27 +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
Christian Kamm
9408378a24 QmlJSEditor: Fix file/directory imports for qml files not in a project.
Reviewed-by: Roberto Raggi
2010-03-31 14:55:35 +02: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
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
Erik Verbruggen
13d7612f09 Removed private header dependencies and introduced loading QML types from XML file. 2010-03-01 13:13:02 +01:00
Roberto Raggi
33b4b15a60 Check the file's mimetype before creating QML/JS documents. 2010-02-15 14:07:35 +01:00
Roberto Raggi
2a63387085 Renamed qmlmodelmanager. 2010-02-15 13:49:00 +01:00