Commit Graph

1464 Commits

Author SHA1 Message Date
Christian Kamm
3f505e9982 QmlJS: Add initial 'Find Usages' support. 2010-09-24 14:11:06 +02:00
Erik Verbruggen
5ad1b35a76 Editor: cleanup special cases for snippets. 2010-09-24 13:02:44 +02:00
Erik Verbruggen
f6a99f6163 Editor: don't leave snippet mode when user pasts/completes. 2010-09-24 11:35:53 +02:00
Friedemann Kleint
19a1210376 L10n: tr()-fixes. 2010-09-23 15:18:07 +02:00
Christian Kamm
f8c5001382 Remove the QmlJSEditor dependency from Qt4ProjectManager.
The Qt4ProjectManager now uses metacalls to inform the QmlJSModelManager
about the project data.

Done-with: hjk
2010-09-23 14:16:46 +02:00
Tobias Hunger
f5c044fe48 Move ProjectExplorer::Environment to Utils::Environment
Reviewed-by: dt
2010-09-23 13:40:26 +02:00
Erik Verbruggen
6622947c15 QML editor: also check for objectName property when guessing the name. 2010-09-23 13:28:15 +02:00
Erik Verbruggen
825562eb74 QML Editor: changed extract-component to ask for a name if there is no id. 2010-09-23 13:28:14 +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
Erik Verbruggen
0c98d830b8 QML: brought context menu in sync with C++ editor. 2010-09-16 12:57:45 +02:00
Friedemann Kleint
d207c8cdcb L10n: tr()-fixes, message strings, compiler warnings.
Rename 'QML standalone application' to 'QML application'
and the 'old-style' QML applications to
'QML Viewer based applications'.

For the QML renaming:
Rubber-stamped-by: Alessandro Portale <alessandro.portale@nokia.com>
2010-09-15 15:16:13 +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
dt
08ccda5862 EditorManager: Change openEditor/activateEditor to not do mode switching
Also introduce a indirection, modes have now types, edit and debug have
the same type, and editors do have a prefered type of modes instead of a
prefered mode.

That fixes the bug that if the prefered qml editing mode was set to
design, then in switching between qml editors would
- in Edit Mode: stay in edit mode
- in Debug Mode: switch to debug mode
2010-09-14 15:23:11 +02:00
Kai Koehne
9caecbaeff QmlOutline: Prevent warnings about invalid offset for 'setPosition'
Check in advance whether position is still valid. This can be false if
the text has already changed, but the outline hasn't been yet updated.
2010-09-14 11:58:06 +02:00
Kai Koehne
b8f6156b83 QmlOutline: Fix QTC_ASSERTs (finally)
Make sure all internal hashes for an item are initialized before
inserting it into the tree.
2010-09-14 10:09:43 +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
Christiaan Janssen
1c702357a6 QmlInspector: tooltips in qmldebug mode
Reviewed by: Lasse Holmstedt
2010-09-08 16:53:44 +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
Leandro Melo
f7532a02d0 Do not force a specific editor for a file created from a wizard.
The wizards already provide a default suffix for file creation.
But since the user is still free to specify something else it's better to leave it to Creator to decide which one is the proper editor.
After all, this reflects how the file will be treated by Creator (including the next time it's opened).

Task-number: QTCREATORBUG-2006
2010-09-08 16:39:26 +02:00
Thomas Hartmann
edebca70ed QmlJSEditor: changing behaivour of text markers
The delay was increased to 500 ms and the marker only
appears now, if the cursor is directly on the type name.

This way the text marker creates less visual noise.
2010-09-08 16:36:19 +02:00
Thomas Hartmann
e788d9f062 QmlDesigner: fix warnings 2010-09-08 16:36:17 +02:00
Christian Kamm
81b96e474d QmlJS: Offer completion for words prefixed with +, -, *, /.
Task-number: QTCREATORBUG-2285
Reviewed-by: Roberto Raggi
2010-09-08 15:56:44 +02:00
Christian Kamm
34f37fb5e3 QmlJS indenter: Fix one-line object declarations in array bindings.
Task-number: QTCREATORBUG-2295
2010-09-08 15:50:07 +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
7df679c019 Increased the interval to update QML/JS documents to 100ms. 2010-09-08 12:53:22 +02:00
Roberto Raggi
e33767205b Introduced SemanticInfo::isValid(). 2010-09-08 11:39:24 +02:00
Friedemann Kleint
444e2fd4ce Quieten gcc compiler warnings. 2010-09-07 14:34:38 +02:00
Kai Koehne
55b6cb0a96 QmlOutline: Show annotation in filtered mode
Fixes a regression.
2010-09-03 15:26:34 +02:00
Roberto Raggi
23a5f173b1 Check the traling text before inserting closing braces. 2010-09-03 14:54:52 +02:00
Kai Koehne
2bbc9643ff Fixes crash when opening a .qml file from command line
Hopefully fixes crash when opening a .qml file from the command line
(mac os x).
2010-09-03 14:37:52 +02:00
Kai Koehne
68f6d162f0 QmlOutline: Update selection if filter is toggled 2010-09-03 12:49:05 +02:00
Kai Koehne
7c365061a4 QmlOutline: Ensure that element is always selected
Select parent element if the property isn't shown in outline (due to
filter).
2010-09-03 12:41:22 +02:00
Thomas Hartmann
70e658680b QuickToolBar: bugfix
If we stay inside the node we keep the text marker
2010-09-01 11:55:04 +02:00
Thomas Hartmann
36a955fa1e QuickToolbar: unifies naming to Quick ToolBar and clarifies tooltips 2010-09-01 11:55:03 +02:00
Leandro Melo
ba12a3390e Refactor how base hover handler manipulates the help items (qt docs interaction). 2010-08-31 19:04:52 +02:00
Kai Koehne
1019d38944 QmlOutline: Fix QTC_ASSERTs
Initialize e.g. m_itemToNode before the view calls back to the model.
2010-08-31 10:58:08 +02:00
Christian Kamm
f3f3b96c85 QmlJS: Improve performance by avoiding two links in SemanticHighlighter.
Reviewed-by: Roberto Raggi
2010-08-31 10:39:07 +02:00
Christian Kamm
8de03ac2dd QmlJS: Fix code completion when no semantic info is available. 2010-08-30 14:49:58 +02:00
Christian Kamm
f49a85953b QmlJS: Compute link in SemanticHightlighter thread instead of lazily.
It's used very often, so lazy computation (potentially in the gui
thread) was too expensive.

Reviewed-by: Kai Koehne
2010-08-30 13:49:23 +02:00
Christian Kamm
32bb7bffc0 QmlJS: Add missing null checks before using scopeChain().qmlTypes. 2010-08-30 13:35:35 +02:00
Christian Kamm
654d94a8c1 QmlJS: Fix uses of ids not being updated correctly.
updateUses() has to be called for cursor position changes.

Done-with: Kai Koehne
2010-08-30 12:11:22 +02:00
hjk
63bc8a0050 replace version 2.1.80 by 2.0.90 2010-08-30 10:38:38 +02:00
Lasse Holmstedt
1f1dcfdec1 QML Observer: Fixed updating of selected items 2010-08-27 13:12:05 +02:00
Lasse Holmstedt
2fe7317981 Fixed typo 2010-08-27 13:12:05 +02:00
Tobias Hunger
715796b48a Fix krazy issues: Use explicit constructors
* Fix all warnings about non-explicit constructors except for those
   in 3rdparty code.
2010-08-27 12:10:29 +02:00
Kai Koehne
12feb86975 Don't update uses highlight in when updating outline
updateUses() is already called after each text change.
2010-08-26 13:44:37 +02:00
Christian Kamm
87e04df257 QmlJS: Refactor LookupContext creation for speed.
* If possible, create LookupContexts through SemanticInfo; it caches the
  linked Context and will be faster.
* Contexts now own their Engine.

Reviewed-by: Lasse Holmstedt
2010-08-26 11:34:29 +02:00
Kai Koehne
3a87261193 QmlOutline: Don't scroll to (horizontal) center when auto-selecting 2010-08-25 15:32:02 +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