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
hjk
2f5f358ff4
Core::Context: compile hot fix for Windows.
2010-06-25 17:38:25 +02:00
hjk
c7e8b51d37
core: use a class derived from QList<int> instead of a QList<int> for Core::Context
...
A mostly mechanical change.
Reviewed-By: con
2010-06-25 12:58:07 +02:00
Roberto Raggi
da817310c2
Get rid of PostfixExpressionAST and store the base expression together with the PostfixAST nodes.
2010-06-23 14:39:14 +02:00
Erik Verbruggen
890e7ea988
Created methods for semantic selection creation.
2010-06-23 10:44:03 +02:00
Erik Verbruggen
fd00ec23ec
Added ObjC keyword highlighting in the semantic pass.
2010-06-18 12:34:09 +02:00
Christian Kamm
e1a0f5abef
C++: Make 'follow symbol' work with forward declared classes.
...
If it encounters a forward declaration, it tries to find the class
declaration globally now.
Task-number: QTCREATORBUG-20
2010-06-16 15:37:39 +02:00
Thorbjørn Lindeijer
173cdff56c
Merge branch '2.0'
...
Conflicts:
src/plugins/cppeditor/cppquickfix.cpp
src/plugins/mercurial/mercurialjobrunner.cpp
src/plugins/subversion/subversionplugin.cpp
2010-06-15 13:22:33 +02:00
Thorbjørn Lindeijer
83dba068ce
Avoid triggering indent for electric characters in comments and strings
...
In comments and strings, electric characters have no syntactical
significance and the unnecessary automatic reindent can be annoying.
Reviewed-by: Erik Verbruggen
2010-06-15 12:25:01 +02:00
Erik Verbruggen
05639e4688
Merge branch 'origin/2.0' (early part)
2010-06-15 11:30:51 +02:00
Thorbjørn Lindeijer
6875a50d27
Don't pass QChar as const & since it's just a unsigned short
...
Reviewed-by: ogoffart
2010-06-14 16:10:35 +02:00
Erik Verbruggen
297b281ced
Added infrastructure to change multiple files at once.
2010-06-14 15:03:10 +02:00
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