Commit Graph

389 Commits

Author SHA1 Message Date
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
con
b0040dc858 Merge remote branch 'origin/2.0'
Conflicts:
	src/plugins/projectexplorer/taskwindow.cpp
	src/shared/proparser/profileevaluator.cpp
2010-06-10 15:00:16 +02:00
Thorbjørn Lindeijer
716b3008ee Removed no longer used code
Reviewed-by: mae
2010-06-08 12:53:53 +02:00
hjk
e5afb64f49 Un-template-ize SharedTools::Indenter which was only used once.
Reviewed-by: Roberto Raggi
2010-06-04 13:31:00 +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
3d81ae8574 Reduced the usage of CppQuickFixOperation. 2010-06-03 14:45:55 +02:00
Roberto Raggi
a40349c09b Reimplemented the C++ quick fix operations using TextEditor::QuickFixOperation. 2010-06-03 14:24:12 +02:00
Roberto Raggi
44115f48de Removed obsolete code. 2010-06-01 14:04:46 +02:00
Roberto Raggi
ef83369006 Check the current under cursor before searching for the enclosing expression. 2010-06-01 12:16:38 +02:00
Roberto Raggi
e9c43b3ec6 Cache the LookupContext. 2010-05-31 12:37:16 +02:00
Roberto Raggi
1c078ec2a3 Ensure we keep the context around for as long as it is needed. 2010-05-31 12:37:15 +02:00
Roberto Raggi
6578099982 Speedup the creation of the extra selections. 2010-05-26 12:35:40 +02:00
Roberto Raggi
405353ab23 Removed the CppBindings. 2010-05-25 17:15:23 +02:00
Roberto Raggi
b68a16f1b5 Highlight user defined types. 2010-05-25 17:15:22 +02:00
Roberto Raggi
2a0f901e16 Use the document in the snapshot when available. 2010-05-25 17:15:22 +02:00
Roberto Raggi
3141edd2ab Check for undefined symbols. 2010-05-25 17:15:22 +02:00
Roberto Raggi
18490596f9 Renamed Document::findSymbolAt(). 2010-05-17 13:01:56 +02:00
Roberto Raggi
3decf8ccc0 Jump to the declaration if the last visible symbol is the current function definition. 2010-05-14 15:33:01 +02:00
Roberto Raggi
a2128885de Get rid of some obsoleted code. 2010-05-14 13:58:06 +02:00
Roberto Raggi
1302de086a Jump at the function's definition. 2010-05-14 13:55:23 +02:00
Roberto Raggi
5d13a206e2 Reimplemented switch declaration/definition. 2010-05-14 13:55:23 +02:00
Roberto Raggi
60f76c96e8 Improved LookupItem and get rid of some deprecated code. 2010-05-14 13:55:21 +02:00
Roberto Raggi
c282da7d1e Introduced Snapshot::findMatchingDefinition(). 2010-05-11 14:15:07 +02:00
Roberto Raggi
d9527680a9 Try to use the new LookupContext. 2010-05-05 16:36:46 +02:00
Roberto Raggi
32a84df5c0 Deprecated the current LookupContext. 2010-05-05 16:36:44 +02:00
Alexey Semenko
538921e8dc Add "indent blocks twice" option for GNU indenting
Reviewed-by: mae
Merge-request: 133
2010-04-08 17:06:23 +02:00
Roberto Raggi
678f7d3e94 Fixed `look at symbol under cursor' when symbol is a Qt method (e.g. a signal).
Done with: erikv
2010-03-29 15:31:42 +02:00
Thorbjørn Lindeijer
aa5899ad40 Fixed Delete and Backspace in specific cases when renaming in-place
The Delete and Backspace keys are blocked when the cursor is
respectively at the end or beginning of a word that is being renamed
in-place. However, when there is a selection, the removal of this
selection is still supposed to be allowed.

Reviewed-by: Robert Loehning
2010-03-25 19:32:44 +01:00
Friedemann Kleint
bbcacaf59f Header cleaning spree in Core/Debugger and Symbian/Maemo-code of Qt4. 2010-03-18 10:59:06 +01:00
Thorbjørn Lindeijer
a456164631 Simplify finding the best match for switching to definition
Also make sure it searches for the best match in all files that define
potential matching definitions.
2010-03-09 17:38:56 +01:00
Alexander Anokhin
a72042ab6a Fixed switch from declaration to definition
Added compatibility scores to functions - candidates to switch to

Merge-request: 121
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
2010-03-09 17:38:56 +01:00
Erik Verbruggen
417a1c9f28 Fixed QTCREATORBUG-745.
Fixed crash in FindUsages on a dirty file in a large project, which is saved
while the FindUsages is still running.
2010-03-09 17:38:02 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Christian Kamm
ced28c7090 Use the fully qualified name when registering the SemanticInfos.
Both for CppEditor::Internal::SemanticInfo and QmlJSEditor::Internal::
SemanticInfo.
2010-02-16 15:29:21 +01:00
Erik Verbruggen
4df9b37542 Fixed local usage highlighting for ObjC message parameters. 2010-02-11 10:02:00 +01:00
Erik Verbruggen
b58cb740e5 Changed ObjC message arguments to have SimpleName for the name part. 2010-02-08 09:34:51 +01:00
Jeffrey Baumes
fa5f9246c2 Adding indented braces option.
Merge-request: 1949
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
2010-02-05 16:25:22 +01:00
Erik Verbruggen
62705df65f Moved indentation utility method from CPPEditor into BaseTextEditor.
Reviewed-by: Roberto Raggi
2010-02-03 16:50:21 +01:00
Roberto Raggi
7c88796002 Changed BaseTextEditor::Link to use a pair of offsets (begin, end) instead of position and length.
Done with: Thorbjorn.
2010-02-01 16:18:27 +01:00
Oswald Buddenhagen
75b42f18d8 Merge remote branch 'origin/1.3'
Trailing whitespace removal re-applied manually.
2010-01-29 22:50:23 +01:00
Oswald Buddenhagen
a6ca348636 remove trailing whitespace
doing it in 1.3 as well to avoid possible later conflicts
2010-01-29 21:33:57 +01:00
Roberto Raggi
92ed2daa6f Generalized the auto complete of braces. 2010-01-12 13:32:19 +01:00
con
a24738ffab Fixes: Diff editors don't get correct name.
They were no longer showing e.g. the file name of the diffed file.
Also separate editor id and editor context a bit.
2010-01-11 16:54:30 +01:00
Thorbjørn Lindeijer
79bf418305 Fixed logic for whether to skip or insert a closing brace
Due to wrongly checking whether findPreviousBlockOpenParenthesis and
findNextBlockOpenParenthesis actually found anything, the wrong range
was counted when a code block start or end was not found.

Reviewed-by: mae
2010-01-11 16:17:28 +01:00
Tobias Hunger
b95c86db23 Remove duplicate inclusions of headers
Reviewed-by: thorbjorn
2010-01-11 10:26:12 +01:00
Tobias Hunger
a6ad773722 Make method naming more consistent.
* Use id() for methods returning a string used to represent
    some type of object.
  * Use displayName() for strings that are meant to be user
    visible.
  * Quieten some warnings while touching the files anyway.
  * Move Factories to their products in the plugins where that
    was not done before.

Reviewed-by: dt
2010-01-07 18:17:24 +01:00
Erik Verbruggen
5723682b21 Fixes for highlighting locals in Objective-C methods. 2010-01-06 17:39:35 +01:00
Thorbjørn Lindeijer
2ab738cd7a Small indentation fix 2010-01-06 14:34:36 +01:00
Christian Kamm
f90f9e4879 Find macro uses.
Reviewed-by: Erik Verbruggen
2009-12-21 14:57:05 +01:00