Thorbjørn Lindeijer
5c5167717f
Renamed cpptools.cpp to cpptoolsplugin.cpp
...
To match the class name, CppToolsPlugin.
2008-12-15 11:42:43 +01:00
mae
5b8cff20fe
Merge branch '0.9.1-beta' of git@scm.dev.nokia.troll.no:creator/mainline into 0.9.1-beta
2008-12-12 12:36:50 +01:00
mae
364a869e38
check for !doc
2008-12-12 12:08:02 +01:00
Roberto Raggi
0145a3dea9
Look at the signed/unsigned specifiers when checking function return types.
2008-12-12 10:40:25 +01:00
Roberto Raggi
aed481dec8
Don't hardode -O3 optimization level for cpptools.
2008-12-12 10:09:47 +01:00
Roberto Raggi
bab60d14b3
Introduced CPlusPlus::Snapshot, it contains a snap shot of the indexer's current state.
...
This change removes a number of wrong usages of the CppModelManager::documents()/document().
2008-12-12 10:07:58 +01:00
Roberto Raggi
4679f38a87
Fixed code completion when using macros in the expression's code (e.g. in qApp->).
2008-12-11 11:28:29 +01:00
Roberto Raggi
d454607264
Implemented tooltip and lookat for #include directives.
2008-12-10 17:21:28 +01:00
Thorbjørn Lindeijer
037a9bb579
Set the help id for macros to their name
...
Enables F1 for opening their help pages. Seems to work nicely.
2008-12-10 12:09:17 +01:00
Thorbjørn Lindeijer
a6c6b2c4ae
Fixed macro tooltip overriding type information
...
The macro tooltip is supposed to be a fallback, since otherwise you
won't be able to see type information for macro parameters.
Reviewed-by: Roberto Raggi
2008-12-10 12:09:17 +01:00
Thorbjørn Lindeijer
1e8b9167ef
Sort C++ QuickOpen with less than 1000 results
...
In this case it's fast enough and sorting the list makes it easier to
find what you're looking for.
Though because of the substring matching, what you're looking for might
still be way down the list.
Reviewed-by: con
2008-12-09 17:19:35 +01:00
Thorbjørn Lindeijer
5f544b4daf
Added the CppFunctionsFilter to QuickOpen
...
In the GUI this is currently called "Methods" with the shortcut 'm'.
2008-12-09 17:19:35 +01:00
Thorbjørn Lindeijer
0e27bc5aa3
Exclude anonymous symbols from the QuickOpen
...
They're not overly useful to have in there, since they don't have a name
you could type to jump to them.
Reviewed-by: Roberto Raggi
2008-12-09 16:32:51 +01:00
Roberto Raggi
9653f4b7e9
Fixed macro locations.
2008-12-09 16:20:21 +01:00
Roberto Raggi
20e36cc364
tooltip for macro definitions.
2008-12-09 15:24:26 +01:00
hjk
4a552ead9f
use QTC_ASSERT instead of Q_ASSERT
2008-12-09 15:25:01 +01:00
Roberto Raggi
02488eebe4
More cleanup in the CppPreprocessor.
2008-12-08 14:49:53 +01:00
Thorbjørn Lindeijer
bf7486c011
Don't keep around references to old documents
...
The code completion was keeping around references to old documents after
the completion finished. This caused documents to stay in memory when
unloading projects, up until the next time you used the completion.
2008-12-08 13:05:44 +01:00
Thorbjørn Lindeijer
c14896b7d2
Slight optimization in Session::projectForFile
...
Avoid creating a copy of the list of projects.
2008-12-08 13:05:44 +01:00
Roberto Raggi
310d50fd07
Use Macros.
2008-12-08 12:59:57 +01:00
Roberto Raggi
f6fbb274ae
Moved the preprocessor.
2008-12-08 12:24:40 +01:00
Roberto Raggi
520a5c9e65
Put the preprocessor the CPlusPlus namespace
2008-12-08 12:18:04 +01:00
Roberto Raggi
1f8ce02d06
Some cleanup in CppPreprocessor.
2008-12-08 11:42:09 +01:00
Roberto Raggi
d74ddb76b6
Protected m_dirty and m_projects with a mutex.
2008-12-08 10:45:27 +01:00
hjk
d8b343afa1
silence warning
2008-12-05 18:27:45 +01:00
hjk
84261f00ea
Merge branch '0.9.1-beta' of git@scm.dev.nokia.troll.no:creator/mainline into 0.9.1-beta
2008-12-05 16:40:19 +01:00
hjk
0e8d02aab4
populate texteditor margin context menu
2008-12-05 16:39:33 +01:00
Thorbjørn Lindeijer
ecfb77d469
Separate scope in classes quickopen filter
...
The scope of the classes is now separated and displayed in the second
column, and not included in the search.
2008-12-05 13:23:04 +01:00
mae
6d37029be8
support different selection kinds in basetexteditor.
...
enum ExtraSelectionKind {
CurrentLineSelection,
ParenthesesMatchingSelection,
CodeWarningsSelection,
CodeSemanticsSelection,
OtherSelection,
NExtraSelectionKinds
};
void setExtraSelections(ExtraSelectionKind kind, const QList<QTextEdit::ExtraSelection> &selections);
QList<QTextEdit::ExtraSelection> extraSelections(ExtraSelectionKind kind) const;
This is mainly for the benefit of the cppmodelmanager.
2008-12-05 13:19:57 +01:00
Thorbjørn Lindeijer
4e76b54dec
Use QFlags for indicating symbols to search for
2008-12-05 09:02:08 +01:00
Thorbjørn Lindeijer
cecd5023dd
First incarnation of classes quickopen filter
...
Invokable with 'c', currently shows all classes it can find.
2008-12-04 18:22:58 +01:00
Roberto Raggi
a418183596
Some cleanup in the CppPreprocessor.
2008-12-04 17:08:11 +01:00
Roberto Raggi
c4fa71ba36
Removed some warnings.
2008-12-04 17:08:11 +01:00
Patrick Star
c37f4d05d8
Fixes: - missing F1 in tooltip on first IDE start
2008-12-04 13:44:15 +01:00
Roberto Raggi
0a8a7f6558
oops! forgot to notify this macro expansion :-)
2008-12-04 12:41:36 +01:00
Roberto Raggi
3d3802d50f
Added macro expanding events and some initial on the macro highlighting support.
2008-12-04 12:06:26 +01:00
Roberto Raggi
f1feb0e25c
Fixed the current progress value of the background parser.
2008-12-03 16:19:47 +01:00
Roberto Raggi
4222fae24b
Don't hide the expanding macro, when expeding function-like macros.
2008-12-03 14:01:58 +01:00
Roberto Raggi
0d40f8a944
Added macro protection.
2008-12-03 10:44:46 +01:00
Roberto Raggi
ceb73b720b
Reduced the number of generated #line directives.
2008-12-02 15:33:33 +01:00
hjk
df7aacd637
more file cosmetics
2008-12-02 15:08:31 +01:00
hjk
ab83dcd87c
off-by-one in headers
2008-12-02 14:20:25 +01:00
hjk
8a43d9b9f3
end-of-line whitespace correction of the new headers
2008-12-02 14:17:16 +01:00
Roberto Raggi
03b3f5b3a7
Removed obsolete code.
2008-12-02 13:15:26 +01:00
hjk
1472bdb0cc
some file cosmetics (mostly #include order and whitespace)
2008-12-02 12:57:59 +01:00
con
05c35356ab
Initial import
2008-12-02 12:01:29 +01:00