summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodecompletion.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Avoid inserting another closing character when completing includesThorbjørn Lindeijer2009-07-241-24/+16
| | | | | | When a closing character is already there, it shouldn't be appended. Done by generalizing the same code for automatically inserted brackets after C++ symbols.
* Do the scanning for include files in the backgroundThorbjørn Lindeijer2009-07-241-18/+1
| | | | | | In order to speed up completion for include statements. Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
* Implemented include completionThorbjørn Lindeijer2009-07-231-13/+151
| | | | Done-with: danimo
* Fixed warnings about unused variablesThorbjørn Lindeijer2009-07-101-2/+2
|
* Fixed possible crash when completing function-like arguments.Roberto Raggi2009-07-091-1/+1
|
* Fixed colors of function argument hint with some palettesThorbjørn Lindeijer2009-06-221-13/+40
| | | | | | | Bad idea to hardcode the background color. Now using the style directly to draw a fake tooltip as background for the function argument hint. Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
* Update license headers and sales contact details.Jason McDonald2009-06-171-2/+2
| | | | Reviewed-by: Trust Me
* Merge branch '1.2' of git@scm.dev.nokia.troll.no:creator/mainlineRoberto Raggi2009-06-111-6/+1
|\
| * Made case-insensitive code completion really case-insensitiveThorbjørn Lindeijer2009-06-101-6/+1
| | | | | | | | | | | | | | | | There was still some "smartness" that made uppercase characters match case-sensitive, regardless of the case-sensitivity setting. This annoyed or at least confused many people who prefer case-insensitivity. Reviewed-by: con
* | More work on `Quick Fix'.Roberto Raggi2009-06-091-0/+54
|/
* ifdef Q_?S_* cleanupOswald Buddenhagen2009-06-031-1/+1
| | | | | | - clear up some Q_OS_LINUX vs. Q_OS_UNIX - clear up Q_WS_* vs. Q_OS_* (relatively theoretical exercise) - use proper #if-#else cascades instead of free-standing #ifs
* Fixed HTML escaping issues in the function argument widgetThorbjørn Lindeijer2009-05-281-3/+14
| | | | | | | HTML escaping was moved out of the TypePrettyPrinter since it interferes with other logic there. Instead, the region to mark is now available from the Overview and used by the FunctionArgumentWidget to put the current argument in bold.
* Still trigger completion for signals and slotsThorbjørn Lindeijer2009-05-271-1/+2
| | | | | | Was missing in commit efc0b20859d1cfd5949191f6b2b65f9266c49625. Reviewed-by: Roberto Raggi
* Made typing parenthesis even fasterThorbjørn Lindeijer2009-05-271-0/+20
| | | | | | | Only attempt to activate the completion when there is a function id on the left of the parenthesis. Reviewed-by: Roberto Raggi
* Renamed braces to bracketsThorbjørn Lindeijer2009-05-261-6/+6
| | | | | Since we're automatically inserting several kinds of brackets, but not braces ({ }).
* Fixed prettyprint of template types.Roberto Raggi2009-05-191-0/+1
|
* Removed hidden function declarations from the overloaded function set.Roberto Raggi2009-05-191-23/+38
|
* Use up/down arrows for function completion widget.Christian Hoenig2009-05-131-12/+12
| | | | | | As this is how it is navigated by keyboard. Reviewed-by: con <qtc-committer@nokia.com>
* Function argument widget was closing too early.con2009-04-081-2/+13
| | | | | | | In case the completion shortcut contained the escape key (Mac xcode-like shortcut settings). Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
* Better name for method to pick the completion collectorThorbjørn Lindeijer2009-04-071-4/+1
| | | | isValid -> supportsEditor
* Fix position of function argument hint with multiple screensThorbjørn Lindeijer2009-04-061-2/+2
| | | | | | | Was always on the first screen since the screen number was determined incorrectly. Thanks to Christian Hönig for reporting the issue. Reviewed-by: Daniel Molkentin
* Introduced ICompletionCollector::isValid(editor).Roberto Raggi2009-04-021-0/+3
|
* Moved some complicated checks into convenience functionsThorbjørn Lindeijer2009-03-261-7/+2
|
* Avoid automatically inserting unwanted closing parenthesesThorbjørn Lindeijer2009-03-261-2/+3
| | | | | | | This is for the case of function overloads where one overload takes no parameters. Solved by keeping track of the duplicate count. Done with Roberto Raggi.
* Keep the function argument widget on the screenThorbjørn Lindeijer2009-03-261-3/+17
| | | | Done with Roberto Raggi.
* Fixed invoking global completion as function parameterThorbjørn Lindeijer2009-03-261-2/+3
| | | | Done with Roberto Raggi.
* Improved function argument widgetThorbjørn Lindeijer2009-03-261-29/+36
| | | | Done with Roberto Raggi.
* Trigger function argument widget on commaThorbjørn Lindeijer2009-03-261-33/+37
| | | | Done with Roberto Raggi.
* Improved check for "scope token"Thorbjørn Lindeijer2009-03-261-1/+1
| | | | | | For example, don't keep triggering scope completion on bunch of colons. Done with Roberto Raggi.
* Initial work on better function argument widgetThorbjørn Lindeijer2009-03-261-30/+98
| | | | Done with Roberto Raggi.
* Don't insert `(' when completing ambiguous symbols.Roberto Raggi2009-03-171-1/+1
|
* Fixes: change file license headers to include LGPLhjk2009-02-251-21/+17
|
* Look at the char at the left of \ or @.Roberto Raggi2009-02-231-1/+1
|
* Use the std keyword icon for doxygen tags.Roberto Raggi2009-02-201-0/+1
|
* Code completion of doxygen tags.Roberto Raggi2009-02-201-24/+48
|
* Initial support for doxygen comments.Roberto Raggi2009-02-201-1/+1
|
* Nicer implementation of ::completeScope()Roberto Raggi2009-02-181-31/+12
|
* Merge branch '1.0.0'hjk2009-02-171-1/+3
|\ | | | | | | | | | | Conflicts: src/plugins/coreplugin/editormanager/stackededitorgroup.cpp src/plugins/debugger/gdbengine.cpp
| * Fix size problems on reusing function argument widgetThorbjørn Lindeijer2009-02-171-1/+3
| | | | | | | | | | We now hide the parent QFrame while updating the label to work around the problem where the it wouldn't shrink the widget.
* | CleanupRoberto Raggi2009-02-171-16/+12
| |
* | Merge branch '1.0.0' of git@scm.dev.nokia.troll.no:creator/mainlineRoberto Raggi2009-02-171-19/+31
|\ \ | |/
| * Ignore undefined macros in macro completionThorbjørn Lindeijer2009-02-171-19/+31
| | | | | | | | Done with Roberto Raggi
* | Fixes: Constructor completion.Roberto Raggi2009-02-171-16/+26
| |
* | Merge branch '1.0.0'Thorbjørn Lindeijer2009-02-161-5/+5
|\ \ | |/ | | | | | | | | | | Conflicts: src/libs/cplusplus/Overview.h src/libs/cplusplus/TypePrettyPrinter.cpp src/plugins/cpptools/cppcodecompletion.cpp
| * Reuse the function argument widget when possibleThorbjørn Lindeijer2009-02-161-3/+6
| | | | | | | | | | | | | | | | | | | | | | Now that we're showing this thing instantly, we can no longer rely on the thing hiding cause of a focus change. (cherry picked from commit 5a0a084c3130e0401eed687795371c2a49b4b635) Conflicts: src/plugins/cpptools/cppcodecompletion.cpp
| * More intelligent function argument widgetThorbjørn Lindeijer2009-02-161-35/+26
| | | | | | | | | | | | | | | | | | | | | | Now it shows immediately when there is only a single signature of a given method/constructor. (cherry picked from commit 8b9dd766c822a9f7b929ae14eab3e2e402307c8c) Conflicts: src/plugins/cpptools/cppcodecompletion.cpp
| * Completion for constructors used on initializationThorbjørn Lindeijer2009-02-161-23/+62
| | | | | | | | | | | | | | | | | | Deals with cases like "QString s(", but for the moment doesn't handle yet "QString const s(". Done with Roberto Raggi. (cherry picked from commit fca3ec1f3288ac4bcbfaed7f6c613af5cc762dda)
| * Avoid inserting characters that are already thereThorbjørn Lindeijer2009-02-161-5/+20
| | | | | | | | | | | | | | | | | | | | | | When completing, don't insert "();" characters when they're already there. Skip them instead. (cherry picked from commit 86427ecf62def3ae13caaf3f7785cdc0e95943d9) Conflicts: src/plugins/cpptools/cppcodecompletion.cpp
| * Fixed crash on updating function argument widgetThorbjørn Lindeijer2009-02-161-5/+5
| | | | | | | | | | | | | | | | Crashed for example in the case of template instantiation. To make sure the Function* stays valid, we need to not only keep around the Snapshot but the whole LookupContext. Done with Roberto Raggi.
* | Reuse the function argument widget when possibleThorbjørn Lindeijer2009-02-131-3/+6
| | | | | | | | | | Now that we're showing this thing instantly, we can no longer rely on the thing hiding cause of a focus change.