Commit Graph

929 Commits

Author SHA1 Message Date
dt
08ccda5862 EditorManager: Change openEditor/activateEditor to not do mode switching
Also introduce a indirection, modes have now types, edit and debug have
the same type, and editors do have a prefered type of modes instead of a
prefered mode.

That fixes the bug that if the prefered qml editing mode was set to
design, then in switching between qml editors would
- in Edit Mode: stay in edit mode
- in Debug Mode: switch to debug mode
2010-09-14 15:23:11 +02:00
Christian Kamm
642b6fb0d3 C++ indenter: Separate indent into logical indent and padding. 2010-09-13 12:38:34 +02:00
Erik Verbruggen
12ac55429c C++: put dependency table calculation into the future.
Task-number: QTCREATORBUG-2300
2010-09-10 14:18:47 +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
29b304e7d0 Skip uninteresting symbols. 2010-09-08 14:23:01 +02:00
Roberto Raggi
33650ac988 Reuse the strings 2010-09-07 14:49:40 +02:00
Roberto Raggi
f7b555b785 Abort expensive cancelled computations. 2010-09-07 11:44:19 +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
dt
bde1ebaaea Remove EditorManager::ensureEditorManagerVisible()
The function always switched to Edit Mode, which was the cause for
several bugs. Since openEditor() already does switch to the right mode,
the function is not really needed.

The following actions now respect the prefered mode of the editor:
"f file"-locator
The Open Documents list
Editor history navigation
2010-09-06 13:56:53 +02:00
dt
faba06b553 Search Dialog: Make canceling possible
Task-Nr: QTCREATORBUG-2243
2010-09-02 16:13:46 +02:00
Roberto Raggi
a340cd118e Get rid of the numeric literals. 2010-09-02 12:51:01 +02:00
Roberto Raggi
c12866a467 Merge CPlusPlus::NameId and CPlusPlus::Identifier. 2010-09-02 12:51:01 +02:00
Christian Kamm
1862282bee C++ indenter: Fix nested array/struct initializers. 2010-08-31 09:45:01 +02:00
hjk
63bc8a0050 replace version 2.1.80 by 2.0.90 2010-08-30 10:38:38 +02:00
Roberto Raggi
05f2fd6669 Renamed Symbol::scope() to Symbol::enclosingScope(). 2010-08-26 16:16:22 +02:00
Roberto Raggi
988cc958ab Renamed Symbol::identity() to Symbol::unqualifiedName(). 2010-08-26 12:23:09 +02:00
Christian Kamm
b79fe7e711 C++: Fix indenting of QML_* macros.
Task-number: QTCREATORBUG-2111
2010-08-25 14:55:16 +02:00
Roberto Raggi
0540aa362d Get rid of the old Semantic pass. 2010-08-13 16:55:43 +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
2ebaf3fe5b Get rid of the #warning directives. 2010-08-11 15:48:40 +02:00
Roberto Raggi
6618a3cd67 Removed TemplateParameters. 2010-08-11 15:25:19 +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
Friedemann Kleint
7ab30d8a63 C++-Settings/License template: Add %FILENAME%, %CLASS% placeholders.
... for doxygen. Change logic for known empty keywords to be replaced
by an empty string.

Task-number: QTCREATORBUG-1854
2010-08-09 12:26:48 +02:00
Roberto Raggi
4ff3ee2ff0 Use Prototype instead of Function. 2010-08-05 17:53:14 +02:00
Roberto Raggi
9aa991d636 Refactored CPlusPlus::Function. 2010-08-05 17:53:14 +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
f87236de39 Look at the symbol's visibility. 2010-08-05 13:00:15 +02:00
Roberto Raggi
12ecb527ac Simplified FindUsages. 2010-08-05 12:49:29 +02:00
Roberto Raggi
70f605065f Show the predefined macros in the completion box. 2010-08-04 13:10:41 +02:00
Roberto Raggi
baf10259a3 Keep the current explicitly selected item.
Done with: Thorbjørn Lindeijer
2010-08-03 16:14:24 +02:00
Roberto Raggi
d7164a01d1 Get rid of dangerous bool cast. 2010-08-03 14:45:11 +02:00
Roberto Raggi
34c1c10cc0 Get rid of the automatic completion box when its only entry is the symbol under cursor. 2010-08-02 11:41:05 +02:00
Christian Kamm
27026af2e3 C++ indenter: Fix indent of block statements in substatement blocks.
Task-number: QTCREATORBUG-1919
2010-07-28 12:39:27 +02:00
con
2bda8675e5 C++ symbols find filter for advanced find.
Required refactoring of the search result window to show real trees of
search results.

The backend is the backend from the Locator filter, which is a bit
outdated now.
2010-07-23 16:34:22 +02:00
con
80d85e2887 Locator Cpp filters can jump to a column too. 2010-07-23 16:22:13 +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
a0faf279d5 Delay the automatic completion. 2010-07-19 14:06:19 +02:00
Roberto Raggi
7de836bf85 Don't complete the current item when pressing special characters (e.g. `;') if the completion is automatically triggered. 2010-07-19 10:32:25 +02:00
Roberto Raggi
fff4203a46 Introduced helpers to rewrite types and names.
Done-with: Erik Verbruggen
2010-07-16 11:04:52 +02:00
Christian Kamm
d292eca5f6 C++ indenter: Indent member initializer lists correctly.
Without requiring ',' to be an electric character.

Task-number: QTCREATORBUG-1866
Reviewed-by: Roberto Raggi
2010-07-16 10:30:14 +02:00
Thorbjørn Lindeijer
2e56fe23af Avoid opening completion box in some unwanted situations
Don't automatically trigger the completion when editing a word or when
in a comment or string.
2010-07-15 18:22:56 +02:00
Thorbjørn Lindeijer
9bdb97e27d Trigger only on exactly 3 characters for C++ completion
Allowing any length more than 2 is too slow at the moment. We'd first
need to find a way to avoid recalculating the complete list of items
for every character while the key isn't matching anything.
2010-07-15 16:24:01 +02:00
Thorbjørn Lindeijer
e101d8eccc Make the way completion is triggered configurable
Now it's possible to choose between having completion popup manually,
when triggered or always.
2010-07-15 16:24:01 +02:00
Thorbjørn Lindeijer
2c51e0c9da Automatically trigger completion for C++ editor after three characters
Similar behaviour as for the QML editor. However, for now without
removing the completion box when you have typed the whole word, since it
could still be useful for automatically inserting other characters.

Task-number: QTCREATORBUG-67
2010-07-15 16:24:01 +02:00
Christian Kamm
1a61ae01cb C++ indenter: Respect user indent with stream operators.
Reviewed-by: Erik Verbruggen
2010-07-15 16:15:09 +02:00
con
b3dbc4b4e4 Add flag to IPlugin::aboutToShutdown that allows asynchronous shutdown.
If a plugin requests asyncronous shutdown, the shutdown sequence does
not continue to deleting the plugins before it has sent a
asynchronousShutdownFinished signal. During that time an event loop
is running.
2010-07-13 15:25:21 +02:00
con
214e0bf35b Add a instance() method to the search result window singleton. 2010-07-12 16:17:31 +02:00
Roberto Raggi
adfdb51660 Recursive definition of CPlusPlus::QualifiedNameId.
Done-with: Erik Verbruggen
2010-07-12 15:10:00 +02:00
mae
ab8a8c018d Fix brace states
The lexer needs its own lexerState, before it was using
the syntax highlighter user state. This breaks the brace
depth calculation of the highlighter.

Reviewed-by: Roberto Raggi
2010-07-12 11:18:31 +02:00