Commit Graph

550 Commits

Author SHA1 Message Date
Roberto Raggi
354b9712e4 Merged ScopedSymbol and Scope. 2010-08-11 15:25:18 +02:00
Roberto Raggi
0f301f8679 New implementation of CPlusPlus::FindUsages 2010-08-10 15:19:32 +02:00
Roberto Raggi
0d35f2f7bc Ignore empty chunks. 2010-08-10 12:28:41 +02:00
Roberto Raggi
da5d6d7db2 Get rid of the old deprecated indenter. 2010-08-10 10:50:00 +02:00
Roberto Raggi
254aff3978 Highlight the enumerators using the Static `char format'.
The new `Static' format will be used to mark all the static members, e.g. enumerators,
static functions, and static class members, but right now, it is used only for enumerators.
2010-08-09 18:07:09 +02:00
Roberto Raggi
3ab927ed74 Made the highlighting for virtual methods configurable 2010-08-09 14:34:57 +02:00
Roberto Raggi
df1770ff55 Use LowestPriority instead of IdlePriority. 2010-08-09 12:00:31 +02:00
Roberto Raggi
480ae95c43 Renamed CPPEditor::highlightTypeUsages() 2010-08-09 12:00:31 +02:00
Roberto Raggi
649559ade3 Store the QTextCharFormat used to mark virtual methods. 2010-08-09 10:34:31 +02:00
Roberto Raggi
4ff3ee2ff0 Use Prototype instead of Function. 2010-08-05 17:53:14 +02:00
Roberto Raggi
366b4c2ed7 Look at the virtual methods. 2010-08-05 14:14:16 +02:00
Roberto Raggi
672274378b Use the most recent snapshot when searching for the usages of a symbol. 2010-08-05 13:59:09 +02:00
Roberto Raggi
1932ffd1c6 Highlight the virtual methods. 2010-08-03 17:35:02 +02:00
Roberto Raggi
1488062a88 Force an update of the current editor. 2010-08-03 11:53:53 +02:00
Roberto Raggi
5073808c5c Remember to clear the code semantic selections. 2010-07-20 14:59:53 +02:00
ck
46f537e56a Quickfix: Convert underscore notation to camel case.
Reviewed-by: Roberto Raggi
2010-07-20 11:07:14 +02:00
Roberto Raggi
8ecf67a41a Update the outline every 500ms. 2010-07-19 14:13:06 +02:00
Erik Verbruggen
4dffc2aabc Fixed crash while renaming symbol when a symbol is being renamed.
Task-number: QTCREATORBUG-1770
2010-07-19 13:59:58 +02:00
Roberto Raggi
54fb9b8fb5 Mark the symbols lazily in a background thread. 2010-07-19 12:18:15 +02:00
Erik Verbruggen
03402a07d9 Changed canonical symbol discovery to return the first one. 2010-07-16 16:04:58 +02:00
Roberto Raggi
fff4203a46 Introduced helpers to rewrite types and names.
Done-with: Erik Verbruggen
2010-07-16 11:04:52 +02:00
Thorbjørn Lindeijer
15e655b718 Made the highlighting for locals and fields configurable
Reviewed-by: mae
2010-07-15 17:11:16 +02:00
Roberto Raggi
9b24e0ae2a Highlight local and member symbols. 2010-07-15 16:04:16 +02:00
Roberto Raggi
3d656df2d7 Renamed CheckUndefinedSymbols. 2010-07-13 16:37:38 +02:00
mae
72bb7c5c11 Convert semantic highlighter to use additional formats
instead of extra selections. This requires a recent
version of Qt 4.7, the beta 2 will not do.

Done-with: Roberto Raggi
2010-07-13 14:37:48 +02:00
Kai Koehne
0659559a62 CppEditor: Select also non-root items in the combo box
Temporarily setting setRootModelIndex allows us to do so.
2010-07-13 11:46:13 +02:00
Kai Koehne
97444004ec CppEditor: Beautify names in API
Rename method[Overview] to outline
2010-07-13 11:46:13 +02:00
Kai Koehne
783aad2a24 CppEditor: Delay update of outline by 150 ms 2010-07-13 11:45:10 +02:00
con
d24d01f49c Merge commit '52b9fcca2ddd5d5e95c6e13cbded018699c7dd68' (origin/2.0)
Conflicts:
	src/plugins/debugger/debuggeragents.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.h
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationwidget.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemosshthread.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemosshthread.h
2010-07-13 11:31:05 +02:00
Kai Koehne
503f720f85 Outline: Make recalculation of current model index more robust 2010-07-12 16:40:43 +02:00
Kai Koehne
ed38d62c9e Fix crash in cpp text editor
Crashes were introduced in commit 9d803829eb.
Reverting this, to have a second look.
2010-07-12 16:10:53 +02:00
Roberto Raggi
adfdb51660 Recursive definition of CPlusPlus::QualifiedNameId.
Done-with: Erik Verbruggen
2010-07-12 15:10:00 +02:00
Kai Koehne
9d803829eb CppEditor: Don't calculate current index twice 2010-07-12 14:46:29 +02:00
Leena Miettinen
3cb60a65e9 Doc - Add tips and tricks.
Reviewed-by: con
2010-07-09 14:54:37 +02:00
Kai Koehne
d3c4f329d7 CppEditor: Don't show 'generated' symbols in the outline
Don't show e.g. all the methods that are defined by the Q_OBJECT
macro in the outline. We skip these by checking for Symbol->isGenerated
in the two proxy models used.
2010-07-08 17:03:38 +02:00
Kai Koehne
82497a9545 CppEditor: Re-use also the code to find the right index
Don't calculate the right QModelIndex twice.
2010-07-08 16:19:05 +02:00
Kai Koehne
2ba49e4e72 CppEditor: Reuse OverviewModel from text editor also in the outline pane
There's no use synchronizing the same model twice.
2010-07-08 16:19:05 +02:00
Christian Kamm
7ae3fd5a10 C++ indenter: Refactor to be independent of BaseTextDocumentLayout.
Done-with: Thomas Hartmann
2010-07-08 10:16:17 +02:00
Christian Kamm
37565602e9 C++ editor: Put the changes for indenting a selection in an edit block.
Reviewed-by: Roberto Raggi
2010-07-06 15:04:37 +02:00
Christian Kamm
e086c67e8e C++ editor: Use the new indenter to make indenting selections fast. 2010-07-06 14:53:54 +02:00
Christian Kamm
8dbbf9be92 C++ indenter: Require explicit state update requests.
This will allow much faster indenting of selected areas as the state
doesn't have to be checked again for every line.
2010-07-06 13:52:49 +02:00
con
e1b74a647e Cut off the forward navigation history to avoid messing it up.
There are cases like when editing, or when jumping to a line, where we
shouldn't cut it though (so we don't).

Task-number: QTCREATORBUG-1535
2010-07-06 12:21:24 +02:00
Roberto Raggi
6d8ecb762f Moved the semantic highlighter in a QFuture. 2010-07-06 10:53:34 +02:00
Roberto Raggi
2ee75bac8c Get rid of CheckUndefinedSymbol::Use. 2010-07-05 17:43:13 +02:00
Roberto Raggi
84ebb1048d Moved CheckUndefinedSymbols to the cpptools plug-in. 2010-07-05 17:35:54 +02:00
Christian Kamm
27578a6c2c C++: Use the new indenter.
Reviewed-by: Roberto Raggi
2010-07-05 13:49:12 +02:00
Roberto Raggi
76ebb46479 Fixed: "Follow symbol" on constructor or destructor always jumps to class definition
Task-number: QTCREATORBUG-1776
2010-07-05 13:38:53 +02:00
Erik Verbruggen
afdc4f6e3e Removed FindScope in favour of the Document::scopeAt method. 2010-07-02 11:18:52 +02:00
Erik Verbruggen
8e4fb678fd Removing SimpleToken 2010-07-02 11:18:51 +02:00
Erik Verbruggen
e3e8b1a5c0 Removed the TokenCache. 2010-07-02 11:18:51 +02:00