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
Roberto Raggi
132258753a
More work on `Quick Fix'.
2009-06-09 13:52:52 +02:00
Oswald Buddenhagen
d2a8449bea
ifdef Q_?S_* cleanup
...
- 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
2009-06-03 20:54:59 +02:00
Thorbjørn Lindeijer
653757e781
Fixed HTML escaping issues in the function argument widget
...
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.
2009-05-28 11:00:33 +02:00
Thorbjørn Lindeijer
6b178a6402
Still trigger completion for signals and slots
...
Was missing in commit efc0b20859 .
Reviewed-by: Roberto Raggi
2009-05-27 13:12:00 +02:00
Thorbjørn Lindeijer
efc0b20859
Made typing parenthesis even faster
...
Only attempt to activate the completion when there is a function id on
the left of the parenthesis.
Reviewed-by: Roberto Raggi
2009-05-27 11:38:57 +02:00
Thorbjørn Lindeijer
31dada8d92
Renamed braces to brackets
...
Since we're automatically inserting several kinds of brackets, but not
braces ({ }).
2009-05-26 12:05:05 +02:00
Roberto Raggi
33b11f23d3
Fixed prettyprint of template types.
2009-05-19 12:33:55 +02:00
Roberto Raggi
339cb43454
Removed hidden function declarations from the overloaded function set.
2009-05-19 12:17:51 +02:00
Christian Hoenig
c11d24ada0
Use up/down arrows for function completion widget.
...
As this is how it is navigated by keyboard.
Reviewed-by: con <qtc-committer@nokia.com >
2009-05-13 11:06:44 +02:00
con
2e1ecb5c1b
Function argument widget was closing too early.
...
In case the completion shortcut contained the escape key (Mac xcode-like
shortcut settings).
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
2009-04-08 10:29:59 +02:00
Thorbjørn Lindeijer
6d0f973f75
Better name for method to pick the completion collector
...
isValid -> supportsEditor
2009-04-07 16:02:51 +02:00
Thorbjørn Lindeijer
3c91cd8b38
Fix position of function argument hint with multiple screens
...
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
2009-04-06 17:51:55 +02:00
Roberto Raggi
6635ddbde5
Introduced ICompletionCollector::isValid(editor).
2009-04-02 10:41:37 +02:00
Thorbjørn Lindeijer
5d8ee0d742
Moved some complicated checks into convenience functions
2009-03-26 16:54:20 +01:00
Thorbjørn Lindeijer
0a99fef5a3
Avoid automatically inserting unwanted closing parentheses
...
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.
2009-03-26 15:40:53 +01:00
Thorbjørn Lindeijer
ece7c9afd7
Keep the function argument widget on the screen
...
Done with Roberto Raggi.
2009-03-26 15:13:48 +01:00
Thorbjørn Lindeijer
760126c9b5
Fixed invoking global completion as function parameter
...
Done with Roberto Raggi.
2009-03-26 15:13:48 +01:00
Thorbjørn Lindeijer
9cd0895601
Improved function argument widget
...
Done with Roberto Raggi.
2009-03-26 15:13:47 +01:00
Thorbjørn Lindeijer
86e400c9dc
Trigger function argument widget on comma
...
Done with Roberto Raggi.
2009-03-26 13:01:39 +01:00
Thorbjørn Lindeijer
208adbaaca
Improved check for "scope token"
...
For example, don't keep triggering scope completion on bunch of colons.
Done with Roberto Raggi.
2009-03-26 13:01:39 +01:00
Thorbjørn Lindeijer
8912f4db98
Initial work on better function argument widget
...
Done with Roberto Raggi.
2009-03-26 11:18:09 +01:00
Roberto Raggi
437bbd00e5
Don't insert `(' when completing ambiguous symbols.
2009-03-17 14:46:35 +01:00
hjk
8ca887aae2
Fixes: change file license headers to include LGPL
2009-02-25 09:15:00 +01:00
Roberto Raggi
e2079e3269
Look at the char at the left of \ or @.
2009-02-23 17:54:08 +01:00
Roberto Raggi
5f7ab722b0
Use the std keyword icon for doxygen tags.
2009-02-20 12:57:16 +01:00
Roberto Raggi
a976385b44
Code completion of doxygen tags.
2009-02-20 12:55:18 +01:00