Commit Graph

122 Commits

Author SHA1 Message Date
Friedemann Kleint
2edcc7ef33 Design mode: Give IEditor a 'preferred mode'.
... and switch to it in EditorManager::activateEditor.
There no longer is a need for special currentEditorChanged()
handling in the editor that use a special mode.

QmlDesigner receives an additional setting specifying the
desired edit mode. QmlJSEditor detects whether QmlDesigner
is present by checking the registered mimetypes of the
Design mode and retrieves the settings via keys.

Remove some obsolete code and clean up includes
on qmldesignerconstants.h

Reviewed-by: con
2010-03-16 16:51:45 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Christian Kamm
8274197366 Implement function to get the QmlJS AST path to a given location.
Will be useful for improved scope chain building.
2010-02-22 10:22:23 +01:00
Christian Kamm
ced28c7090 Use the fully qualified name when registering the SemanticInfos.
Both for CppEditor::Internal::SemanticInfo and QmlJSEditor::Internal::
SemanticInfo.
2010-02-16 15:29:21 +01:00
Christian Kamm
da3679066e Add QmlJS semantic checker.
* Add SemanticHighlighter to QmlJSTextEditor to update the semantic info
  in a background thread.
* Add QmlJS::Check to run semantic checks on qml and js documents.
* Add a check for incorrect property names.
* Fix hoverhandler to show tool tips from extra selections over help
  tooltips.
2010-02-16 10:38:56 +01:00
Roberto Raggi
2a63387085 Renamed qmlmodelmanager. 2010-02-15 13:49:00 +01:00
Roberto Raggi
8fb82ef792 Merge qmljshighlighter.* with qmlhighlighter.*. 2010-02-15 12:39:30 +01:00
Roberto Raggi
967ed09c29 Initial support of `Follow symbol under cursor' for QML/JS. 2010-02-09 11:37:58 +01:00
Roberto Raggi
14ffb1e465 Some refactoring needed to create ranges for JavaScript functions. 2010-02-02 16:36:14 +01:00
Roberto Raggi
fac977a5bd Try to get the type from a qualified-id. 2010-02-02 15:02:21 +01:00
Roberto Raggi
d22de18fae Introduced SemanticInfo::nodeUnderCursor(). 2010-02-02 13:19:27 +01:00
Roberto Raggi
460c47f5c6 Introduced SemanticInfo::declaringMember(pos). 2010-02-01 16:18:26 +01:00
Roberto Raggi
39c2575ab3 Removed obsolete code
Done with: Erik
2010-01-27 14:37:24 +01:00
Roberto Raggi
1e6a0523a1 Moved QmlJSTextEditor::m_declarations. 2010-01-26 14:26:26 +01:00
Roberto Raggi
5cff896fa8 Get rid off QmlJSEditor::m_idRevisions & co. 2010-01-26 14:14:01 +01:00
Roberto Raggi
e622d70617 There's no need to store the diagnostic messages in the editor.
Store the error message in the QTextCharFormat of the extra selection.
2010-01-26 14:03:37 +01:00
Roberto Raggi
c9efafcb98 Introduced ranges and versioning of QML/JS documents. 2010-01-25 14:18:53 +01:00
Roberto Raggi
60ad6c478c Moved QmlJSScanner::Token in the QmlJS namespace. 2010-01-19 12:54:17 +01:00
Roberto Raggi
c943d8e4f1 Renamed classes and files to use the QmlJS prefix. 2010-01-18 16:59:20 +01:00
Erik Verbruggen
ed4118628d Changed the QScriptHighlighter & QScriptIndenter namespaces. 2010-01-18 14:12:45 +01:00
Erik Verbruggen
062fa8e783 Added mime-type for JS files to the QMLJS text editor. 2010-01-15 17:41:39 +01:00
Erik Verbruggen
96e31c2a0f Started merging the JS and QML editor plug-ins. 2010-01-15 17:20:19 +01:00