Roberto Raggi
4ff3ee2ff0
Use Prototype instead of Function.
2010-08-05 17:53:14 +02:00
Roberto Raggi
9aa991d636
Refactored CPlusPlus::Function.
2010-08-05 17:53:14 +02:00
Roberto Raggi
70f605065f
Show the predefined macros in the completion box.
2010-08-04 13:10:41 +02:00
Roberto Raggi
baf10259a3
Keep the current explicitly selected item.
...
Done with: Thorbjørn Lindeijer
2010-08-03 16:14:24 +02:00
Roberto Raggi
d7164a01d1
Get rid of dangerous bool cast.
2010-08-03 14:45:11 +02:00
Roberto Raggi
34c1c10cc0
Get rid of the automatic completion box when its only entry is the symbol under cursor.
2010-08-02 11:41:05 +02:00
Roberto Raggi
a0faf279d5
Delay the automatic completion.
2010-07-19 14:06:19 +02:00
Roberto Raggi
7de836bf85
Don't complete the current item when pressing special characters (e.g. `;') if the completion is automatically triggered.
2010-07-19 10:32:25 +02:00
Roberto Raggi
fff4203a46
Introduced helpers to rewrite types and names.
...
Done-with: Erik Verbruggen
2010-07-16 11:04:52 +02:00
Thorbjørn Lindeijer
2e56fe23af
Avoid opening completion box in some unwanted situations
...
Don't automatically trigger the completion when editing a word or when
in a comment or string.
2010-07-15 18:22:56 +02:00
Thorbjørn Lindeijer
9bdb97e27d
Trigger only on exactly 3 characters for C++ completion
...
Allowing any length more than 2 is too slow at the moment. We'd first
need to find a way to avoid recalculating the complete list of items
for every character while the key isn't matching anything.
2010-07-15 16:24:01 +02:00
Thorbjørn Lindeijer
e101d8eccc
Make the way completion is triggered configurable
...
Now it's possible to choose between having completion popup manually,
when triggered or always.
2010-07-15 16:24:01 +02:00
Thorbjørn Lindeijer
2c51e0c9da
Automatically trigger completion for C++ editor after three characters
...
Similar behaviour as for the QML editor. However, for now without
removing the completion box when you have typed the whole word, since it
could still be useful for automatically inserting other characters.
Task-number: QTCREATORBUG-67
2010-07-15 16:24:01 +02:00
Roberto Raggi
adfdb51660
Recursive definition of CPlusPlus::QualifiedNameId.
...
Done-with: Erik Verbruggen
2010-07-12 15:10:00 +02:00
Thorbjørn Lindeijer
b4cecd6ec8
Allow certain characters to also trigger the completion
...
Now you can type characters like ., ( and : to complete the selected
item, depending on the type of the completion item.
Task-number: QTCREATORBUG-271
Reviewed-by: Roberto Raggi
2010-07-09 15:52:09 +02:00
Erik Verbruggen
69a74abf26
Fixed completion for doxygen comments.
2010-07-06 10:57:56 +02:00
Erik Verbruggen
45e12ccb42
Fixed scope calculation in code completion.
2010-07-06 09:19:20 +02:00
Erik Verbruggen
5d888caeb9
Added ObjC completion for message-send expressions.
2010-07-06 09:19:20 +02:00
Roberto Raggi
3a88dc624f
Fixed function-like code completion.
...
This was a regression introduced in 8e4fb678fd
triggersCompletion should return `true' when the token at the left of the T_LPAREN
is an identifier, a SIGNAL, a SLOT or T_GREATER (for template functions).
2010-07-05 11:06:15 +02:00
Erik Verbruggen
8e4fb678fd
Removing SimpleToken
2010-07-02 11:18:51 +02:00
Erik Verbruggen
e3e8b1a5c0
Removed the TokenCache.
2010-07-02 11:18:51 +02:00
Erik Verbruggen
491675559d
Added snippet expansion to the C++ code completion.
2010-06-18 10:58:35 +02:00
Thorbjørn Lindeijer
a1a565b9c5
Two more columnNumber() calls that should be positionInBlock()
...
columnNumber() relies on text wrapping, and we're only interested in the
position of the cursor in the block.
2010-06-16 18:03:43 +02:00
Erik Verbruggen
e42ca194c5
Introduced token caching to prevent repetetive tokenizing.
...
Also removed TokenUnderCursor as it's functionality is in the token cache.
Reviewed-by: ckamm
2010-06-14 10:10:05 +02:00
Erik Verbruggen
424b9724d6
Revert "Introduced a token cache for the C++ editor."
...
This reverts commit c2393df023 .
2010-06-04 12:37:26 +02:00
Erik Verbruggen
c2393df023
Introduced a token cache for the C++ editor.
...
This should speed things up a bit, because before, the line was tokenized at
least 3 times.
2010-06-04 09:36:05 +02:00
Roberto Raggi
99b2020cb3
Check the type of the token that triggered the completion.
2010-06-02 15:22:42 +02:00
Roberto Raggi
ffa66f4fb5
Fixed the global completion to include the injected class name and user types.
2010-06-02 13:59:01 +02:00
Roberto Raggi
1b41c06590
Always remove the duplicates from the completion, even when the items are not sorted.
2010-05-28 15:22:57 +02:00
Roberto Raggi
75bcf2bc66
Speedup global completion.
...
Don't sort the global completion items when we have too many of them, instead
populate the completion box in a way where local symbols are showed before
global symbols.
2010-05-27 19:00:44 +02:00
Erik Verbruggen
54e09a1802
Changed C++ code completion to use the new LookupContext.
2010-05-26 15:51:29 +02:00
Roberto Raggi
d702119dca
Revert "Sort the items lazily."
...
This reverts commit 13a721d985 .
2010-05-26 15:14:50 +02:00
Roberto Raggi
30e1d00725
Revert "Clear the completion."
...
This reverts commit bb35b4d081 .
2010-05-26 15:14:40 +02:00
Roberto Raggi
bb35b4d081
Clear the completion.
2010-05-26 14:47:04 +02:00
Roberto Raggi
13a721d985
Sort the items lazily.
2010-05-26 14:44:16 +02:00
Roberto Raggi
db7333e6bb
Sort the completion items as soon as we have them.
2010-05-26 14:25:45 +02:00
Roberto Raggi
9e89f36cd9
There's no need to sort after filtering the completion.
2010-05-26 12:46:41 +02:00
Roberto Raggi
040e2a3049
Ported global completion to use the new LookupContext.
2010-05-26 12:35:40 +02:00
Erik Verbruggen
b0cc9fa4e7
Tuned the automatic preprocessor competion.
...
To only run if the pound/hash sign is at the start of the line.
2010-05-19 14:12:22 +02:00
Erik Verbruggen
8f9e2eebe7
Added #preprocessor directive completion.
2010-05-18 17:57:49 +02:00
Roberto Raggi
35c50dcbfc
Use the context created by TypeOfExpression.
2010-05-18 09:24:11 +02:00
Roberto Raggi
18490596f9
Renamed Document::findSymbolAt().
2010-05-17 13:01:56 +02:00
Roberto Raggi
56c5c8266a
Get rid off of typeid() and <typeinfo>.
2010-05-17 12:52:46 +02:00
ck
3e126d6a26
Compile fix.
2010-05-17 10:50:12 +02:00
Roberto Raggi
a600614866
Renamed classOrNamespace() and lookup/findClassOrNamespace().
2010-05-14 13:55:24 +02:00
Roberto Raggi
3c6ad0d845
Instiate overloads of operator->().
2010-05-14 13:55:22 +02:00
Roberto Raggi
f9a05d9ced
Reimplemented resolve base expression.
2010-05-14 13:55:21 +02:00
Roberto Raggi
60f76c96e8
Improved LookupItem and get rid of some deprecated code.
2010-05-14 13:55:21 +02:00
con
1fd12ab63b
Merge remote branch 'origin/2.0'
...
Conflicts:
src/plugins/cpptools/cppcodecompletion.cpp
2010-05-12 17:25:40 +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