Commit Graph

1464 Commits

Author SHA1 Message Date
Roberto Raggi
272014a5d0 Mark the trailing whitespaces. 2010-01-29 10:50:16 +01:00
Roberto Raggi
6fe1f5b96c Made the error recovering more robust. 2010-01-28 16:29:45 +01:00
Roberto Raggi
da81d59e24 Look at the enumerators when populating the completion box. 2010-01-28 15:51:16 +01:00
Roberto Raggi
fc77c277be Hide the tooltip when we can't guess the value of the expression under cursor. 2010-01-28 15:51:16 +01:00
Roberto Raggi
a72230feee Reduced the interval UPDATE_DOCUMENT_DEFAULT_INTERVAL. 2010-01-28 15:07:15 +01:00
Roberto Raggi
7bc2ab8ac9 Automagically pop up the completion box (experimental) for QML/JS code (experimental). 2010-01-28 14:57:18 +01:00
Christian Kamm
1d39377fb1 Separate bind into bind, link imports and building the scope chain. 2010-01-28 14:53:53 +01:00
Roberto Raggi
a658ee55f2 Ask the HelpEngine for documentation about builtin QML components.
Done with: Erik
2010-01-27 15:13:30 +01:00
Roberto Raggi
39c2575ab3 Removed obsolete code
Done with: Erik
2010-01-27 14:37:24 +01:00
Erik Verbruggen
d89b7ecb73 Changed hovering to use the new interpreter & binding code.
Done-with: Roberto Raggi
2010-01-27 14:00:55 +01:00
Erik Verbruggen
8ecc80ec4c Generalized ExpressionUnderCursor and got rid of duplicate code.
Done-with: Roberto Raggi
2010-01-27 12:41:01 +01:00
Erik Verbruggen
bbb63c44d4 Removed unused variable. 2010-01-27 12:41:01 +01:00
Roberto Raggi
9cdca3a92b Some initial support for relative imports. 2010-01-26 17:23:18 +01:00
Roberto Raggi
c1b3f0b120 Coding style. 2010-01-26 16:21:03 +01:00
Roberto Raggi
02ee76b82a Initalize the members of the binder. 2010-01-26 15:51:31 +01:00
Roberto Raggi
f753d3328b Add the snippets to the completion box when the character at the left of the text cursor is a delimiter. 2010-01-26 15:23:19 +01:00
Erik Verbruggen
cf35a0249b Implemented the binding phase for QML.
Done-with: Christian Kamm
2010-01-26 15:20:18 +01:00
Roberto Raggi
5d272795cf Don't add the QML signals to the completion box. 2010-01-26 15:19:19 +01:00
Roberto Raggi
204aeb700e Skip the tokens inside brackets when computing the expression under cursor. 2010-01-26 15:09:04 +01:00
Roberto Raggi
ab8c19f2f8 Some initial work on the type checker for QML/JS. 2010-01-26 14:55:33 +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
0e93bf3b96 Activate the global completion when the the character at the left of the text cursor is a delimiter. 2010-01-26 12:36:40 +01:00
Roberto Raggi
fbd624d170 Update the ranges also for recovered ASTs. 2010-01-26 12:09:28 +01:00
Roberto Raggi
cb688f05f3 Disable the QML black magic thingie when working on JS files. 2010-01-26 11:51:44 +01:00
Roberto Raggi
1ba889a1bf Generalized the filtering of completion items. 2010-01-26 11:44:45 +01:00
Roberto Raggi
478907e5c3 Added method defaultValueForBuiltinType(typeName) to the QML/JS interpreter. 2010-01-26 11:15:21 +01:00
Roberto Raggi
2512a684d5 Show the argument names from the method's signature. 2010-01-26 10:50:55 +01:00
Roberto Raggi
bf8c0b8a22 Complete signals, slots and generate slots of QML items. 2010-01-26 10:19:42 +01:00
Roberto Raggi
2a5506b1d0 Show auto generated slots (e.g. onClicked) only when performing a global completion. 2010-01-26 10:10:11 +01:00
Roberto Raggi
c65a028f74 Added the user components to the global completion and fixed completion for the `parent' property. 2010-01-26 09:54:02 +01:00
Roberto Raggi
0969f3b85f Resolve the `import' directives.
Yet another quick and dirty hack while waiting for the real binding pass.
2010-01-25 17:14:23 +01:00
Roberto Raggi
c9b80ae370 Activate the function-like completion only when the character at the left of the text cursor is a `('. 2010-01-25 16:52:10 +01:00
Roberto Raggi
4d0502f414 Just a temporary hack to get completion for user-defined components. It should go away as soon as we have a decent binding pass. 2010-01-25 15:50:21 +01:00
Roberto Raggi
c9efafcb98 Introduced ranges and versioning of QML/JS documents. 2010-01-25 14:18:53 +01:00
Roberto Raggi
6db71d185b Try to get the item under cursor. 2010-01-25 09:31:36 +01:00
Roberto Raggi
24f5a9c0e4 Set up the scope chain. 2010-01-25 09:31:36 +01:00
Roberto Raggi
b4a901aa1e Initial work on global completion for QML/JS files. 2010-01-25 09:31:35 +01:00
Roberto Raggi
feab07de81 Refactored the QML/JS completer 2010-01-25 09:31:35 +01:00
Roberto Raggi
659b2a7ee3 Complete QML properties. 2010-01-25 09:31:35 +01:00
Roberto Raggi
2d2ec2b785 Cleanup 2010-01-25 09:31:34 +01:00
Thorbjørn Lindeijer
d3acff747c Don't try to read the next start element after the root element
There can only be one root element in an XML document, and when we try
to read another one we get a premature end of document error.
2010-01-22 15:54:03 +01:00
Roberto Raggi
099f2072a2 Added a simple scanner to get the expression under cursor. 2010-01-22 14:42:59 +01:00
Roberto Raggi
f837d49ca4 Show the function arguments hint. 2010-01-22 10:58:32 +01:00
Roberto Raggi
ba3e68fcbb Try to get the type of the qualified name id under cursor 2010-01-22 10:26:52 +01:00
Roberto Raggi
68a8b6a663 Show in the completion box only the visible IDs. 2010-01-22 09:37:44 +01:00
Roberto Raggi
33bc7d7708 Disabled the code completion of QML components. 2010-01-22 09:23:58 +01:00
Roberto Raggi
f0e69db452 Evaluate simple JS expressions. 2010-01-21 17:08:42 +01:00
Roberto Raggi
24876bfa73 Don't remove snippets. 2010-01-21 12:15:28 +01:00