Commit Graph

1464 Commits

Author SHA1 Message Date
Christian Kamm
4f6dc35af8 QmlJS: Make ordering in the completion list simpler to change. 2010-06-10 11:33:04 +02:00
Christian Kamm
02cc2177a3 QmlJS: Add completion for "id:". 2010-06-10 11:33:04 +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
Roberto Raggi
881d8ef6db Fixed a typo in the check() method.
The check() method returns the priority of the refactoring operation
and not a boolean.
2010-06-08 16:43:31 +02:00
Christian Kamm
019ff9d06b QmlJS: Don't append colons when completing namespaced types.
Task-number: QTCREATORBUG-1604
2010-06-08 15:43:08 +02:00
Christian Kamm
d7747fe849 QmlJS: Trigger another completion if a completion ends with a dot. 2010-06-07 17:37:45 +02:00
Christian Kamm
3b8b6e89cc QmlJS: Autocomplete dot and colon for properties.
Reviewed-by: Roberto Raggi
2010-06-07 17:37:45 +02:00
Kai Koehne
b7ae49161a Revert disabling of qml support (2.0.0 branch)
This reverts commit 5234c775f7 and 210652912b.
2010-06-07 17:30:18 +02:00
con
d326c16747 Version bump. 2010-06-07 13:45:49 +02:00
Roberto Raggi
c6b8e52053 Introduced a quickfix refactoring operation to split QML initializers. 2010-06-07 12:20:07 +02:00
Roberto Raggi
f5dae8bc9f Refactored the quickfix engine. 2010-06-07 12:16:45 +02:00
hjk
0ee6115998 qmljshighlighter: un-templatize setFormats()
This is used excatly once.

ReviewedBy: Kai Koehne
2010-06-04 11:17:55 +02:00
Roberto Raggi
2ede9773bb Introduced token-based operations for QML/JS quick-fixes. 2010-06-04 11:02:33 +02:00
Roberto Raggi
21073563a4 Introduced quickfix support for QML/JS files. 2010-06-03 15:52:50 +02:00
Christian Kamm
5234c775f7 Make the QmlJSEditor work when Qml support is disabled.
- Enable qmlprojectplugin even if Qml support is disabled.
- But disable its wizards in that case.
- Disable the Qml file wizard if the support is off.

Reviewed-by: Kai Koehne
2010-06-03 10:25:17 +02:00
Christian Kamm
68cec6a7c7 QmlJS: Fix folding information for multi-line comments after edits.
Since the highlighter doesn't run on the whole file, only on the changed
line, we need to store the information whether a block starts in a
multi-line comment.

Reviewed-by: Erik Verbruggen
2010-05-28 13:50:52 +02:00
Christian Kamm
57f2b3e44d QmlJS: Allow folding of multi-line comments.
This also makes the editor auto-fold the license comment.

Task-number: QTCREATORBUG-1455
Reviewed-by: Erik Verbruggen
2010-05-27 12:56:44 +02:00
mae
7c82944750 Fix qml autocompletion on Enter
Only insert necessary newlines

Reviewed-by: thorbjorn
Task-number: QTCREATORBUG-1476
2010-05-26 19:21:32 +02:00
mae
154b312de6 Fix qml autocompletion on Enter
Only insert necessary newlines

Reviewed-by: thorbjorn
Task-number: QTCREATORBUG-1476
2010-05-26 19:19:42 +02:00
Leandro Melo
98bc350e32 New mime type alias for javascript.
Currently the Kate javascript definition file specifies text/x-javascript as a mime type. Added this to QmlJSEditor.mimetypes.xml so the generic highlighter is not picked for javascript files.
2010-05-21 15:54:34 +02:00
mae
e07c34017e Rework code folding
The new and cleaner foldingIndent in the block user data will
make it easier to support other kinds of indentation for various
other programming languages (like Python).
2010-05-20 15:11:31 +02:00
con
7f4cbe2383 Merge remote branch 'origin/2.0'
Conflicts:
	src/plugins/debugger/moduleshandler.cpp
	src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecontents.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemosshthread.cpp
2010-05-20 09:28:00 +02:00
Erik Verbruggen
ef66bc98e2 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-19 14:46:08 +02:00
Christian Kamm
62141475e3 QmlJS: Potentially fix hard-to-reproduce crash in JS completion.
* Context::build was potentially dangerous. Link and ScopeBuilder
  went out of scope before their results stopped being used.
* ScopeBuilder: If no function scope object was found, don't add it.

Reviewed-by: Erik Verbruggen
2010-05-19 14:23:08 +02:00
Christian Kamm
088bdb29db QmlJS: Provide good completion for PropertyChanges with a target again.
Task-number: QTCREATORBUG-1413
Reviewed-by: Erik Verbruggen
2010-05-19 11:15:57 +02:00
Christian Kamm
9b7d3e5531 QmlJSEditor: Remove 'readonly' Qml keyword from completion.
It is unused at the moment.
2010-05-19 10:40:00 +02:00
Christian Kamm
eb53e71d95 QmlJSEditor: Simplify Qml completion code. 2010-05-19 10:38:09 +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
con
1fd12ab63b Merge remote branch 'origin/2.0'
Conflicts:
	src/plugins/cpptools/cppcodecompletion.cpp
2010-05-12 17:25:40 +02:00
Christian Kamm
28ec223314 QmlJS: Fix completion for grouped property bindings.
Task-number: QTCREATORBUG-1388
Reviewed-by: Roberto Raggi
2010-05-12 14:11:23 +02:00
Thorbjørn Lindeijer
e53b5bc9a1 Fixed completion settings to also apply to the QML code completion
By moving the completion settings into the TextEditor plugin, so that
both the CppTools and the QmlJSEditor plugins can access the settings.

The user-interface to edit the settings is still in the CppTools plugin,
since we're in string freeze at the moment. It should be moved to the
TextEditor plugin later.

For now the QML completion only supports the case-sensitivity and
partial completion options, since there is no automatic insertion of
brackets.

Task-number: QTCREATORBUG-1327
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
2010-05-11 15:11:12 +02:00
con
4532087c90 Merge remote branch 'origin/2.0' 2010-04-30 16:39:05 +02:00
Christian Kamm
44a155c612 QmlJS: Fix completion context when cursor is to the right of inserted ;
Done-with: Erik Verbruggen
2010-04-30 14:22:55 +02:00
con
84d9b647ee Version bump. 2010-04-30 11:58:05 +02:00
Christian Kamm
0e12240613 QmlJS: Completion for enums.
Done-with: Erik Verbruggen
2010-04-29 16:05:25 +02:00
Christian Kamm
a48032b616 QmlJS: Improve completion for object bindings with 'on'.
Done-with: Erik Verbruggen
2010-04-29 16:05:25 +02:00
Christian Kamm
f48df24737 QmlJS: Improve property and Type completion in Qml object members.
Done-with: Erik Verbruggen
2010-04-29 16:05:24 +02:00
Christian Kamm
722ba33770 QmlJS: Add CompletionContextFinder to allow context sensitive completion
The plan is to use this to reduce the number of applicable
completion options, for instance for enum completion or property
names.

Done-with: Erik Verbruggen
2010-04-29 16:05:24 +02:00
Thorbjørn Lindeijer
41ab8fbbf1 Moved TextEditDocumentLayout and related classes to their own file
The Parentheses, TextBlockUserData and TextEditDocumentLayout classes
and their member function implementations were spread around the
BaseTextEditor class. Moving them to their own file to make the code a
bit better organized.

Reviewed-by: mae
2010-04-26 14:42:11 +02:00
Lasse Holmstedt
fe48286ecc Made Qt Quick Designer editor opening modal
If you're in Design mode, any new editors will open in design mode
as well. If you're in Edit mode, new editors will open in Edit mode.

Task-number: BAUHAUS-609
2010-04-26 14:27:49 +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
Lasse Holmstedt
1358619cf0 removed missing implementation for slot 2010-04-23 13:59:40 +02:00
Lasse Holmstedt
21fbbc2c15 Added preview menu and shortcuts for qt quick (Ctrl+Alt+R)
This was needed since we cannot start stuff otherwise without a project

Task-number: BAUHAUS-450
Reviewed-by: kkoehne
2010-04-23 13:20:44 +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
Christian Kamm
3067f441df QmlJS: Fix switch statement indentation.
Task-number: QTCREATORBUG-756
2010-04-21 10:52:07 +02:00
Friedemann Kleint
0a643a1994 Wizards: Open a relevant file in editor after the wizard run
Remove all hacks/conventions of considering the last generated
file as project file, etc. and instead add attributes flags to
Core::GeneratedFile, giving fine-grained control of what to do
with the file. Implement static utility functions in wizards
that handle it. Add boolean XML-attributes "openeditor"/"openproject"
to the file elements used by the CustomWizard XML-specification.
Manually set the attributes in all wizards.

Task-number: QTCREATORBUG-1166
2010-04-16 15:55:38 +02:00
con
854309267d Never nag again about Qt Quick Visual Designer after pressing X, or enabling it once.
Reviewed-by: kkoehne
2010-04-16 15:52:43 +02:00