Erik Verbruggen
94411bfaef
Fixed argument completion for destructors.
...
Task-number: QTCREATORBUG-2854
2011-01-19 16:40:07 +01:00
con
d1023c7614
It's 2011 now.
...
Reviewed-by: hjk
2011-01-12 09:46:24 +01:00
Christian Kamm
f02a852f21
C++ completion: Skip Q_PROPERTY and Q_ENUMS symbols.
...
Reviewed-by: Erik Verbruggen
2011-01-07 09:53:49 +01:00
Roberto Raggi
207c295552
Sort the completion items when searching for common prefixes.
...
Reviewed-by: Thorbjørn Lindeijer
2010-12-20 16:15:49 +01:00
con
b1bcf081d8
Merge branch '2.1'
...
Conflicts:
src/plugins/coreplugin/basemode.cpp
src/plugins/coreplugin/basemode.h
src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.cpp
src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.h
src/plugins/debugger/cdb/cdbsymbolpathlisteditor.cpp
src/plugins/debugger/debuggeragents.cpp
src/plugins/debugger/debuggeruiswitcher.cpp
src/plugins/debugger/debuggeruiswitcher.h
src/plugins/projectexplorer/buildconfigdialog.cpp
src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp
src/plugins/qmldesigner/components/propertyeditor/colorwidget.h
src/plugins/qmldesigner/designercore/include/enumeratormetainfo.h
src/plugins/qmldesigner/designercore/include/modelutilities.h
src/plugins/qmldesigner/designercore/include/nodeinstance.h
src/plugins/qmldesigner/designercore/include/propertymetainfo.h
src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.h
src/plugins/qmldesigner/designercore/instances/graphicsviewnodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.h
src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/qmlviewnodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.h
src/plugins/qmldesigner/designercore/metainfo/enumeratormetainfo.cpp
src/plugins/qmldesigner/designercore/metainfo/propertymetainfo.cpp
src/plugins/qmldesigner/designercore/model/modelutilities.cpp
src/plugins/snippets/inputwidget.cpp
src/plugins/snippets/snippetscompletion.cpp
src/plugins/snippets/snippetscompletion.h
src/plugins/snippets/snippetspec.cpp
src/plugins/snippets/snippetsplugin.cpp
src/plugins/snippets/snippetswindow.cpp
src/plugins/snippets/snippetswindow.h
src/plugins/texteditor/snippetsparser.cpp
src/tools/qml/qmldom/main.cpp
tests/manual/trk/runner.cpp
tests/manual/trk/trkolddevice.cpp
tests/manual/trk/trkolddevice.h
tests/manual/trk/trkserver.cpp
2010-12-17 17:00:53 +01:00
con
04e32b0049
License headers.
2010-12-17 16:03:42 +01:00
Thorbjørn Lindeijer
308b0be678
Avoid skipping the closing parenthesis when completing with '('
...
When the user types '(' then he'll likely also type the matching ')',
in which case skipping the automatic closing parenthesis is annoying
because you would end up with two of them.
Reviewed-by: Roberto Raggi
2010-12-16 14:43:57 +01:00
Roberto Raggi
8069c1745e
Don't popup the automatic completion box when the identifier under cursor is a complete valid word.
2010-12-14 11:50:49 +01:00
Leandro Melo
1175705bfc
Snippets: Make it easier for plugins to add snippets groups
...
Groups are no longer enum values but identified from snippet providers.
2010-12-08 17:22:13 +01:00
Leandro Melo
7528c6d617
Snippets: Feature enhancement start...
...
Provide an interface so users can create/edit/remove snippets.
2010-12-08 17:22:07 +01:00
Leandro Melo
770a6a79f1
C++ editor: Don't sort global completions for performance reasons
...
Reviewed-by: Roberto Raggi
2010-12-06 11:56:43 +01:00
Roberto Raggi
8959778083
Fixed regression when completing function templates.
...
Reviewed-by: Erik Verbruggen
2010-11-08 11:29:44 +01:00
Leandro Melo
0e0841dac9
Snippets: Show snippets after "corresponding" keywords.
...
In some cases snippets have a description. Due to the sorting this
already places them after keywords. So this is just to be consistent
for all cases.
2010-09-27 10:31:42 +02:00
Leandro Melo
cafcce0c37
Add support for C++ snippets.
2010-09-24 20:22:03 +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
Leandro Melo
ce9038f6a2
Avoid function completion tootltip to go out of the screen.
...
Task-number: QTCREATORBUG-2307
Reviewed-by: Thorbjorn Lindeijer
2010-09-15 16:48:50 +02:00
Roberto Raggi
c12866a467
Merge CPlusPlus::NameId and CPlusPlus::Identifier.
2010-09-02 12:51:01 +02:00
Roberto Raggi
05f2fd6669
Renamed Symbol::scope() to Symbol::enclosingScope().
2010-08-26 16:16:22 +02:00
Roberto Raggi
988cc958ab
Renamed Symbol::identity() to Symbol::unqualifiedName().
2010-08-26 12:23:09 +02:00
Roberto Raggi
2ebaf3fe5b
Get rid of the #warning directives.
2010-08-11 15:48:40 +02:00
Roberto Raggi
6618a3cd67
Removed TemplateParameters.
2010-08-11 15:25:19 +02:00
Roberto Raggi
354b9712e4
Merged ScopedSymbol and Scope.
2010-08-11 15:25:18 +02:00
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