Commit Graph

132 Commits

Author SHA1 Message Date
Oswald Buddenhagen
913f6161a1 Merge remote branch 'origin/1.3'
Conflicts:
	src/plugins/cpptools/cppcodecompletion.cpp
	src/plugins/help/helpplugin.cpp
	src/plugins/projectexplorer/projectexplorer.cpp
2009-11-20 17:25:39 +01:00
Thorbjørn Lindeijer
2e82c14abc Fixed function argument widget text color in dark themes
By setting the window and button text colors to the tool tip text color,
since a tool tip background is drawn.

Task-number: QTCREATORBUG-322
2009-11-20 16:40:30 +01:00
Thorbjørn Lindeijer
69969bef43 Fixed possible crash on constructor completion
When constructor completion was attempted on a base class specified in a
class declaration, a null pointer reference would occur.

Task-number: QTCREATORBUG-321
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
2009-11-19 17:29:37 +01:00
Roberto Raggi
ecf40d2426 Get rid off QPair<FullySpecifiedType, Symbol *>. Use LookupItem intead. 2009-11-17 14:24:09 +01:00
Roberto Raggi
c13b8697d2 Introduced the quick fix engine 2009-11-13 16:14:38 +01:00
Roberto Raggi
0ae2d96a9b Fixed the AST field names. 2009-11-10 16:47:16 +01:00
Roberto Raggi
24b6c858eb Cleanup postfix declarators. 2009-11-10 16:20:12 +01:00
Roberto Raggi
6e3e293e53 Removed DeclaratorListAST
Done with Erik Verbruggen
2009-11-10 16:20:10 +01:00
con
36d0d8500e Merge commit 'origin/1.3' 2009-11-09 11:36:19 +01:00
Christian Kamm
a253a69980 Do never offer signature autocompletion for constructor calls.
They should always use the function parameter tooltip.

This fixes a bug where you were offered completion for
C foo( -> C foo(int x)
if C had a constructor taking int x.

Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
2009-11-09 10:13:17 +01:00
con
c8bb7e174b Merge commit 'origin/1.3'
Conflicts:
	src/plugins/qt4projectmanager/qt4project.cpp
2009-11-04 19:15:14 +01:00
Roberto Raggi
f2a0382910 Replace . with -> only when the base expression has type pointer to class.
Reviewed-by: Thorbjørn Lindeijer
2009-11-04 18:21:35 +01:00
con
fa34847571 Merge commit 'origin/1.3'
Conflicts:
	src/plugins/debugger/gdb/gdbengine.cpp
	src/plugins/qt4projectmanager/qt4project.cpp
2009-11-03 18:08:01 +01:00
Christian Kamm
ff4e559c46 Improve completion for function declarations.
Instead of just completing
void A::foo(|) -> void A::foo(int i|), we now complete
void A::foo(|) -> void A::foo(int i) const|
where | represents the place of the cursor.

Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
2009-11-02 10:32:50 +01:00
con
441ece365a Merge commit 'origin/1.3'
Conflicts:
	src/plugins/cpptools/cppcodecompletion.h
	src/plugins/debugger/gdb/gdbengine.cpp
	src/plugins/qmleditor/QmlEditor.pluginspec
2009-10-26 13:51:56 +01:00
Roberto Raggi
996866814a Initialize all the members of CppCodeCompletion 2009-10-21 17:05:36 +02:00
Oswald Buddenhagen
c9f9310bb1 Merge remote branch 'origin/1.3'
Conflicts:
	src/plugins/cpptools/cppcodecompletion.cpp
	src/plugins/debugger/gdb/remotegdbadapter.cpp
2009-10-20 20:09:00 +02:00
Roberto Raggi
1006be240d Fixed possible crash when completing top-level declarations. 2009-10-20 17:17:11 +02:00
Roberto Raggi
41139ef630 Don't acticate completion inside C++-like comments. 2009-10-20 16:37:23 +02:00
Christian Kamm
cadaec24aa Fix function signature completion for cv-qualified functions.
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2009-10-20 12:55:14 +02:00
Christian Kamm
e3479d9942 Add completion for function signatures.
You now get the function parameters as a completion suggestion when
declaring or defining a function. The tooltip for function calls
is unchanged.

Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
(cherry picked from commit 202fef42ca)
2009-10-20 12:55:14 +02:00
Christian Kamm
202fef42ca Add completion for function signatures.
You now get the function parameters as a completion suggestion when
declaring or defining a function. The tooltip for function calls
is unchanged.

Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2009-10-19 14:19:28 +02:00
con
525ef4cc85 Merge remote branch 'origin/1.3'
Conflicts:
	src/plugins/cpptools/CppTools.pluginspec
	src/plugins/help/Help.pluginspec
	src/plugins/locator/Locator.pluginspec
	src/plugins/projectexplorer/ProjectExplorer.pluginspec
	src/plugins/texteditor/TextEditor.pluginspec
2009-10-16 14:40:40 +02:00
Roberto Raggi
8b514657cc Added support to complete function-call operators. 2009-10-16 12:23:16 +02:00
Roberto Raggi
8dc369bc2d Simplified member completion.
Share code with ResolveExpression.
2009-10-16 11:08:34 +02:00
Erik Verbruggen
4b44fa5f4a Added Objective-C @-keywords to the completion. 2009-10-09 15:22:57 +02:00
Roberto Raggi
510f8ccc3d Improved the detection of #include-like directives. 2009-10-08 16:00:46 +02:00
Roberto Raggi
7105b773a1 Enable completion in C++ ctor-initializers. For example,
struct foo {
  int m_zoo;

  foo(): m_ // cursor is here.
2009-10-08 15:33:17 +02:00
Roberto Raggi
d43cbfbb15 Renamed `awesome' :) 2009-10-05 18:43:23 +02:00
Roberto Raggi
2d51d0b633 Removed the m_ prefix used in the public members of CompletionItem 2009-10-05 18:32:45 +02:00
Roberto Raggi
1f1c899cc0 Improved template instantiation. 2009-10-05 11:39:55 +02:00
con
f006183b3d Support include completion for frameworks on Mac.
Which is 'quite' important, since Qt builds by default generate
frameworks.
2009-10-01 17:02:18 +02:00
Roberto Raggi
cae8a31a7d FullySpecifiedType::simplified() strips references from the type. 2009-09-30 11:54:46 +02:00
Roberto Raggi
6b4db9e674 Handle ctor-initializers in the LookupContext. 2009-09-29 12:47:03 +02:00
Thorbjørn Lindeijer
bf74d21d6c Avoid completing a closing parenthesis in the wrong place
Need to check the character to the right of the cursor.
2009-09-22 16:54:16 +02:00
mae
061865efa4 move auto parentheses handling into the cpp editor 2009-09-17 12:37:20 +02:00
Thorbjørn Lindeijer
b8b37cb0b5 Fixed the completion to take into account auto parentheses insertion
Also skip semicolons in when auto parentheses insertion is enabled.

Done with mae.
2009-09-16 16:48:14 +02:00
Thorbjørn Lindeijer
aba678604c Optimized startOfOperator a bit 2009-08-28 13:51:06 +02:00
hjk
93cbef8724 long live the king 2009-08-14 09:30:56 +02:00
Daniel Molkentin
bf755ad118 Enable include completion also for ObjectiveC's 'import' 2009-07-31 16:35:07 +02:00
Thorbjørn Lindeijer
9412b138b6 Made trailing slash trigger the next include completion
The completion for the directory wasn't triggered because one of the
items matched the typed string, so the list of completion wasn't empty
and no new trigger was allowed.

By not matching items when a trailing slash is typed, the list is
allowed to trigger again from the new location.

Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
2009-07-24 14:32:39 +02:00
Thorbjørn Lindeijer
5271117e5b Avoid inserting another closing character when completing includes
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.
2009-07-24 13:52:49 +02:00
Thorbjørn Lindeijer
00f7dd4586 Do the scanning for include files in the background
In order to speed up completion for include statements.

Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
2009-07-24 12:52:42 +02:00
Thorbjørn Lindeijer
47a2097341 Implemented include completion
Done-with: danimo
2009-07-23 16:49:36 +02:00
Thorbjørn Lindeijer
300b60fa98 Fixed warnings about unused variables 2009-07-10 11:52:12 +02:00
Roberto Raggi
85c501c976 Fixed possible crash when completing function-like arguments. 2009-07-09 16:20:20 +02:00
Thorbjørn Lindeijer
1b168b686d Fixed colors of function argument hint with some palettes
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>
2009-06-22 14:14:05 +02:00
Jason McDonald
884b7af769 Update license headers and sales contact details.
Reviewed-by: Trust Me
2009-06-17 00:01:27 +10:00
Roberto Raggi
d08b90b494 Merge branch '1.2' of git@scm.dev.nokia.troll.no:creator/mainline 2009-06-11 11:32:47 +02:00
Thorbjørn Lindeijer
0da4881c3e Made case-insensitive code completion really case-insensitive
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
2009-06-10 16:25:59 +02:00