summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/qmljsmodelmanagerinterface.h
Commit message (Collapse)AuthorAgeFilesLines
* qmljs: new import/dep trackingFawzi Mohamed2013-11-201-1/+8
| | | | | Change-Id: I9f4de2a06aad3afb80372a4b80e56db658683575 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
* qmljs: adding qrc supportFawzi Mohamed2013-06-031-0/+15
| | | | | | | | | | | | | | | | | | | | | Qmljs now keeps a cache of parsed qrc files, and can resolve "qrc:" links. This breaks the assumption that the name that the qml files has on the filesystem is the one that qml sees, and that contents of directories can be found just looking at file whose path starts with the directory path. Currently the first file is used when multiple qrc files contain the same path, but support for strict and weak path resolving is already there. At the moment only qrc files for projects that call updateQmljsCodeModel are updated. ChangeLog: QmljsSupport: Imports using qrc links are resolved. Task-number: QTCREATORBUG-8953 Change-Id: I695fac2692af2417d49c192c580a1c2e7b4873f4 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
* qmljs: add explicit -relocatable flag to qmlplugindumper and use itFawzi Mohamed2013-04-251-2/+3
| | | | | | | This will allow changing the default to nonrelocatable. Change-Id: I80746a3e70f94040a407cc25cec9ad6fac8b6fec Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* qmljs: add infrastructure handling qml dialects betterFawzi Mohamed2013-02-211-0/+8
| | | | | | | | | | | | | | | | | | QmlBundles enables us to treat the different qml dialects differently. Add imports completion. Change-log: [Qml/JS Support] Corrected handling of QtQuick2 only features. Change-log: [Qml/JS Support] Added import completion in editor. Task-number: QTCREATORBUG-8750 Task-number: QTCREATORBUG-8624 Task-number: QTCREATORBUG-8584 Task-number: QTCREATORBUG-8583 Task-number: QTCREATORBUG-8429 Change-Id: I1384b1b23136a85b4d077895ea86f92960da9e71 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* qmljs: add qt5 qmlpath to code model pathsFawzi Mohamed2012-12-121-0/+1
| | | | | Change-Id: Ie0fd6f74818def859ab5bcb6fa104c4eec1b67fb Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Adjust license headershjk2012-10-051-21/+20
| | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* QmlJS: Initialize variable properlyKai Koehne2012-03-141-0/+1
| | | | | Change-Id: Ie9447e040c228b42766969ed8d80b33f67cccc46 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* Removed module names from #include directives.Erik Verbruggen2012-02-151-3/+3
| | | | | | | | Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* Merge remote-tracking branch 'origin/2.4'Eike Ziller2011-11-111-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/libs/qmljs/qmljsinterpreter.cpp src/libs/qmljs/qmljsinterpreter.h src/plugins/debugger/qml/scriptconsole.cpp src/plugins/git/gitplugin.cpp src/plugins/qmlprofiler/canvas/qdeclarativetiledcanvas.cpp src/plugins/qmlprofiler/canvas/qdeclarativetiledcanvas_p.h Change-Id: Iad59c8d87c72a21c79c047e374c0ab689998af39
| * all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-031-2/+2
| | | | | | | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* | QmlJS: Documentation.Christian Kamm2011-11-071-4/+0
| | | | | | | | | | | | Change-Id: I2a095e38b7d79a5fb39a16d8f32b48c8e28132f6 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@nokia.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* | QmlJS: Move commonly used functions to qmlutils.h.Christian Kamm2011-10-101-1/+1
|/ | | | | | | Change-Id: I22376d96fe575bc00a55094c06af80e32a5587e6 Reviewed-on: http://codereview.qt-project.org/6238 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
* QmlJS: Only try qmldump on Desktop and Simulator Qt.Christian Kamm2011-09-211-0/+5
| | | | | | | | | | In particular, don't complain about a missing qmldump binary on other platforms. Change-Id: Ie2e96bcb67e609aa5aed31510b06139d2d9ce77e Reviewed-on: http://codereview.qt-project.org/5327 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
* QmlJS: Change from QMap to QHash for QString keys.Christian Kamm2011-09-191-1/+1
| | | | | | | | | Tests indicate that lookup in QHash<QString, ...> is more performant even for short strings. Change-Id: I8e5a73d0f1a72e202522f397b16901887f9c3591 Reviewed-on: http://codereview.qt-project.org/5070 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
* QmlJS: Find setContextProperty calls in C++ and expose to QML.Christian Kamm2011-09-081-2/+9
| | | | | | | | Task-number: QTCREATORBUG-3199 Change-Id: I591490ceafadc0f5a07c63ec063f1bdfa7055f47 Reviewed-on: http://codereview.qt-project.org/4074 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* QmlJS: Ensure project infos are removed when a project closes.Christian Kamm2011-08-301-0/+1
| | | | | | | | | As a side effect, this removes parse errors of QML files that are no longer in any project from the "Build Issues" list. Change-Id: I7aef8850a207ac060648dc92e2dd759108b71731 Reviewed-on: http://codereview.qt.nokia.com/3668 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* QmlJS: Improve ModelManagerInterface API, add docs.Christian Kamm2011-08-301-1/+3
| | | | | | Change-Id: Ic65d767cbad85de89dffaac66d9e80d8d467f04a Reviewed-on: http://codereview.qt.nokia.com/3851 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
* QmlJS: Fix semantic and non-semantic QML error reporting.Christian Kamm2011-08-181-1/+1
| | | | | | | | | | | | | The QML snapshot only ever contains valid Documents; to compile a list of parser problems we need to get at the invalid documents. To do that, the model manager now provides a Snapshot with up to date, but potentially invalid documents. That should also be useful for other things. Change-Id: I67892f63771c221bf2fe2c2bf0240a0f4e523227 Reviewed-on: http://codereview.qt.nokia.com/3012 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* QmlJS: Fix basic code model test.Christian Kamm2011-07-121-0/+3
| | | | | | | | Change-Id: If62153e9db56e65e10d008d49f0945d3ea77c4f4 Reviewed-on: http://codereview.qt.nokia.com/1502 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com> Reviewed-by: Bill King <bill.king@nokia.com>
* QmlJS: Dump builtins per Qt version.Christian Kamm2011-07-111-2/+4
| | | | | | | Change-Id: I7b5179c4b33c24e83baf0536d158dd48d277637f Reviewed-on: http://codereview.qt.nokia.com/1305 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* QmlJS: Add 'reset code model' action.Christian Kamm2011-06-231-0/+3
| | | | | | | | | | Having to restart Creator should be a thing of the past. Task-number: QTCREATORBUG-4813 Change-Id: Ide242ee299b5d34aecba4823032e27741dde4a86 Reviewed-on: http://codereview.qt.nokia.com/668 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* Fix/add copyright headersTobias Hunger2011-05-061-1/+1
| | | | Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
* QmlJS: Add semantic errors to task window.Christian Kamm2011-04-211-0/+1
| | | | | Task-number: QTCREATORBUG-4103 Reviewed-by: Leandro Melo
* Update license.hjk2011-04-131-14/+13
|
* QmlJS: Don't warn user about imports if static info is availableKai Koehne2011-04-121-0/+2
| | | | | | | | Don't underline the import if a qmldump fails, but the typeinfo is available via a .qmltypes file. That should allow users to 'fix' qmldump issues by shipping a .qmltypes file. Reviewed-by: Erik Verbruggen
* qmldump: Use the new qmldump correctly.Christian Kamm2011-02-091-1/+2
|
* Exported header cleanup.Friedemann Kleint2011-01-201-4/+3
|
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* Qml/C++: Fix performance problem with type extraction.Christian Kamm2011-01-061-0/+4
| | | | | | By moving the offending code into a background thread. Reviewed-by: Erik Verbruggen
* License headers.con2010-12-171-7/+11
|
* Debugger/JS Code model: Set environment for QML tools correctly.Friedemann Kleint2010-10-261-0/+3
| | | | | | | | | 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
* QmlJS: Force a semantic check when library information changes.Christian Kamm2010-10-151-0/+1
| | | | | Task-number: QTCREATORBUG-2640 Reviewed-by: Roberto Raggi
* QML Observer: Build together on runtime with debugging toolsLasse Holmstedt2010-09-291-0/+1
| | | | | | | | Moved qmljsdebugger to a dir under qml/, made qmlobserver compile without creator dependencies and made it compile with debugging helpers. Reviewed-by: hjk
* Revert "Remove the QmlJSEditor dependency from Qt4ProjectManager."dt2010-09-271-4/+2
| | | | This reverts commit f8c50013822bcf4119b88dada985c6d58fe27999.
* QmlJS: Add initial 'Find Usages' support.Christian Kamm2010-09-241-0/+26
|
* compilation fix with namespaceshjk2010-09-231-0/+4
|
* Remove the QmlJSEditor dependency from Qt4ProjectManager.Christian Kamm2010-09-231-2/+4
| | | | | | | The Qt4ProjectManager now uses metacalls to inform the QmlJSModelManager about the project data. Done-with: hjk
* QmlJS: Fix running qmldump on plugins that require a specific uri.Christian Kamm2010-08-251-0/+2
| | | | | | | | | | | | | 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
* Introduced QmlJS::LookupContext.Roberto Raggi2010-07-081-0/+2
|
* QmlJS: Fix import path handling in the model manager.Christian Kamm2010-06-221-1/+35
| | | | | | | | 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
* Moved qmljsmodelmanagerinterface.hRoberto Raggi2010-06-101-0/+69