Friedemann Kleint
722e48c2b3
TextEditor: Some exported header cleanup.
...
Remove internal markers from exported headers,
introduce private class for BaseTextDocument.
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2010-10-29 15:20:10 +02:00
Christian Kamm
49bfb964d6
C++ editor: Fix 'follow symbol' to work on several core Qt macros.
...
Task-number: QTCREATORBUG-2240
Reviewed-by: Erik Verbruggen
2010-10-27 17:13:59 +02:00
con
0d5211cc45
Prevent crash when closing Qt Creator while cdb session is running.
...
The debugger plugin opens an editor in this case, leading to fakevim and
cppeditor crashing.
This commit doesn't fix the problem's source, but adds safeguards that
are sensible anyhow: FakeVim should not register with editors during
shutdown, and CppEditor should not unconditionally assume an existing
editor manager in the destructor.
Reviewed-by: Friedemann Kleint
2010-10-20 17:10:47 +02:00
Erik Verbruggen
aa11eb8973
Fixed jumping internally-defined symbols ("<configuration>" file).
...
Reviewed-by: Christian Kamm
2010-10-19 16:19:14 +02:00
Christian Kamm
22130aae27
C++ editor: Fix performance problem when using the mouse to find links.
...
It is unnecessary to try hard to resolve a class forward declaration
when all you want to know is whether it is a valid link or not.
Task-number: QTCREATORBUG-2688
Reviewed-by: Thorbjorn Lindeijer
2010-10-11 15:36:40 +02:00
Roberto Raggi
32fff3f6cd
Disabled the semantic highlighter when using Qt 4.7.0.
2010-09-29 12:15:11 +02:00
Erik Verbruggen
0c98d830b8
QML: brought context menu in sync with C++ editor.
2010-09-16 12:57:45 +02:00
Erik Verbruggen
39a03d2505
C++ Editor: Moved refactoring actions into sub-menu.
2010-09-15 14:35:12 +02:00
Christian Kamm
642b6fb0d3
C++ indenter: Separate indent into logical indent and padding.
2010-09-13 12:38:34 +02:00
Christian Kamm
5cd6ebfdfd
C++: Only reindent on electric characters if indent wasn't user-changed.
...
This should make the indenter less strict and annoying for non-standard
indentation styles.
Reviewed-by: Roberto Raggi
2010-09-08 16:22:23 +02:00
Roberto Raggi
86799309aa
Keep the locator database in sync with the current snapshot.
...
Thanks to this patch we can move the filtering of C++ symbols
in a background thread.
Done-with: Erik Verbruggen
2010-09-06 16:53:46 +02:00
Roberto Raggi
05f2fd6669
Renamed Symbol::scope() to Symbol::enclosingScope().
2010-08-26 16:16:22 +02:00
Roberto Raggi
44a5e29246
Check the editormanager's current document before to request a new highlight.
2010-08-18 11:40:55 +02:00
Roberto Raggi
4eb40af9a8
Skip constructors and destructors when searching for the canonical symbol.
2010-08-17 16:09:52 +02:00
Roberto Raggi
03b626c80c
Move the cursor at the character before the delimiter.
2010-08-17 14:50:32 +02:00
Roberto Raggi
644544185f
Restore the old behaviour when switching between function declaration/definition symbols.
...
That is, we don't look at the column position anymore when searching
the function under cursor.
2010-08-17 14:30:11 +02:00
Roberto Raggi
5308a4a266
Fixed CppEditor::findLinkAt() to use the correct line and column positions from the editor.
2010-08-17 13:42:30 +02:00
Roberto Raggi
0540aa362d
Get rid of the old Semantic pass.
2010-08-13 16:55:43 +02:00
Leandro Melo
f79187ca97
Create type hierarchy widget; Refactor code from C++ hover into a simple reusable model.
...
Hierarchy information removed from tooltips now.
2010-08-13 16:44:59 +02:00
Christian Kamm
538f611503
Indenters: Move style setup into the QtStyleCodeFormatter constructors.
...
This makes sure styles are consistent for the editor and the quick fix
engine.
2010-08-12 14:21:35 +02:00
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