Roberto Raggi
51de95c497
Use the text editor revision to ignore outdated parse results.
2009-12-15 15:52:55 +01:00
Thorbjørn Lindeijer
d20cdc64e3
Merge remote branch 'origin/1.3'
2009-12-08 11:26:05 +01:00
Thorbjørn Lindeijer
9839dea6bc
Fixed autoindent when using tabs instead of spaces
...
Several special cases that are handled by the CPPEditor did not take
into account code that was using tab characters.
Task-number: QTCREATORBUG-292
Reviewed-by: Roberto Raggi
2009-12-08 11:09:11 +01:00
Roberto Raggi
14376c3c32
Initial work on the new CPlusPlus::Snapshot.
...
Encapsulate the details.
2009-12-07 10:54:27 +01:00
mae
58b009d3db
fix a small "flicker" issue when aborting or accepting renaming
2009-12-03 19:23:29 +01:00
mae
c1120587a8
Merge commit 'origin/1.3'
...
Conflicts:
src/plugins/cppeditor/cppeditor.cpp
2009-12-03 18:41:21 +01:00
mae
480c9a5bf4
refactor rename selections
...
the new approach makes it possible to use more edit features
inside the rename selection like cut/copy/paste. Furthermore
it compresses rename operations better on the undo stack.
2009-12-03 18:35:36 +01:00
Thorbjørn Lindeijer
5fa8baf47c
Fixed in-place renaming when text is selected
...
This handles the case with the selection inside the name correctly, and
aborts when part of the selection is outside of the name. Previously, a
selection could cause the text to get inserted backwards.
Task-number: QTCREATORBUG-302
Reviewed-by: Roberto Raggi
2009-12-03 15:57:35 +01:00
Roberto Raggi
7c7ce13ac0
Use const names.
2009-12-01 12:46:23 +01:00
Roberto Raggi
fade61a8a9
Use const literals.
2009-12-01 11:46:36 +01:00
mae
32d0bc1ff2
some tuning of the layer extra selections
...
Remove overlap. Add extra selection tooltips for the cpp hover handler.
2009-11-30 17:24:06 +01:00
Roberto Raggi
527a9bd526
Inital support for Q_D/Q_Q declarations.
2009-11-30 17:07:22 +01:00
Roberto Raggi
756a67854a
Highlight unused symbols.
2009-11-30 15:21:48 +01:00
Roberto Raggi
62a15e04ee
Disabled the highliting of unused symbols.
...
We need to port the code to use the new overloay system.
2009-11-26 12:35:34 +01:00
Roberto Raggi
5bcd46b6be
Preview the quickfix operation
2009-11-26 12:21:00 +01:00
Roberto Raggi
bab8c94f13
Show the quickfixes in the context menu.
2009-11-23 16:55:25 +01:00
Roberto Raggi
a579f2f27e
Removed unused code.
2009-11-23 16:55:24 +01:00
Roberto Raggi
8fd0777ab0
Ensure the document is updated before invoking a quickfix.
2009-11-18 15:15:00 +01:00
Roberto Raggi
ecf40d2426
Get rid off QPair<FullySpecifiedType, Symbol *>. Use LookupItem intead.
2009-11-17 14:24:09 +01:00
Roberto Raggi
5d7def6d2a
Refactored the AST visitors.
...
Now, the ASTVisitor constructor takes a valid reference to a TranslationUnit.
2009-11-17 13:30:39 +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
e5eb88a31f
Ported the accept methods.
2009-11-10 16:20:13 +01:00
Roberto Raggi
380bce4527
Cleanup nested name specifiers
2009-11-10 16:20:12 +01:00
Roberto Raggi
a7219736b6
Cleanup Postfix operators.
2009-11-10 16:20:12 +01:00
Roberto Raggi
8efb73f5d2
Removed TemplateArgumentListAST
...
Done with Erik Verbruggen
2009-11-10 16:20:10 +01:00
Roberto Raggi
66a353067d
Don't show the warning message (about the dangerous world of code refactoring) if the user pressed the "Yes, I know I am doing" button.
2009-11-05 16:52:56 +01:00
Robert Loehning
e68753b48b
Fixed index out of range.
...
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
2009-11-02 19:14:40 +01:00
mae
c035290602
add standard cut/copy/paste actions (if available) to the cpp editor's context menu
...
at a later stage we will look into harmonizing context menu among different editors.
The cpp editor had the biggest need, because its context menu features all sorts of
extra refactoring operations, thus the standard Qt context menu became too large.
2009-11-02 14:03:38 +01:00
Roberto Raggi
a2b5184123
Activate the completion only when the canonical symbol has a valid name.
2009-10-26 13:45:27 +01:00
Roberto Raggi
24bcbaefe9
Don't use modality to inform the user about the dangerous world of code refactoring.
2009-10-15 13:59:04 +02:00
Roberto Raggi
f92b1428f3
Fixed the refactoring engine.
...
It was not working for files opened while indexing the project.
2009-10-15 12:31:40 +02:00
dt
ceaa92ecbb
Set correct mime type for C++ files.
2009-10-13 17:18:23 +02:00
Roberto Raggi
88f3fa09be
Removed deprecated PrettyPrinter. We need a way to generate the pretty printer from the C++ parser.
2009-10-09 11:44:12 +02:00
Roberto Raggi
97c6671ea8
Mark the usages of a symbol using the semantic highlighter.
2009-10-09 11:33:31 +02:00
Roberto Raggi
659a231a04
Don't highlight local symbols in ambiguous nodes.
2009-10-09 11:21:29 +02:00
Roberto Raggi
edcbb6a119
Removed obsolete code.
2009-10-09 11:06:40 +02:00
Erik Verbruggen
5852cc805d
Fixed refactoring when the cursor is at the end of a symbol.
...
Reviewed by: Roberto Raggi
2009-10-08 14:26:54 +02:00
Roberto Raggi
7e0e62cb25
Find the canonical virtual method.
2009-10-07 16:12:33 +02:00
Roberto Raggi
77aa306478
Removed the MacroResolver
...
Unfortunately, the MacroResolver does not scale and we get pretty bad performances when parsing big projects.
2009-10-07 13:57:45 +02:00
Roberto Raggi
ef0e1a64dc
Show a warning message when using global renaming.
2009-10-06 16:00:55 +02:00
Roberto Raggi
319a0e2ad1
Search for possible uses of local symbols in template arguments and removed some deprecated code.
2009-10-06 11:56:29 +02:00
Roberto Raggi
73320a43d1
Added `Find Usages' of a Symbol.
2009-10-05 15:17:48 +02:00
Roberto Raggi
db9a390ef6
Highlight unused symbols.
2009-10-05 14:08:24 +02:00
Friedemann Kleint
5948e284bb
Rename namespace Core::Utils into Utils
...
Also move Designer::Internal::FormWindowEditor ->
Designer::FormWindowEditor.
2009-10-05 11:06:05 +02:00
mae
3a2974b3f9
some action cleanup for the qml editor
...
done with Erik Verbruggen
2009-10-01 13:34:02 +02:00
Roberto Raggi
ae43149c97
Cache the macros.
2009-09-30 18:52:42 +02:00
Roberto Raggi
9a21143384
Implemented a simple(fast?) strategy to resolve macro references.
2009-09-30 17:17:11 +02:00
mae
dadefeaf97
tune auto-parentheses
...
do not close braces automatically on enter if the next line's indentation
is deeper than the current line's
2009-09-30 17:11:53 +02:00
Roberto Raggi
ace380ec28
Make the symbols used in the current editors.
2009-09-30 13:25:59 +02:00