Thorbjørn Lindeijer
e54bf750d9
The reformat document action isn't useful yet, removed for 1.2
2009-06-04 11:57:58 +02:00
Lorn Potter
55e7f65533
Fixes: make method combo take up more space on the toolbar, so long
...
class and method names can be seen.
Task: <task number>
Details: <additional information>
2009-05-29 04:49:31 +10:00
Thorbjørn Lindeijer
b450fa17b3
Removed colon again from the electric characters
...
It broke indentation for global scope operator, and when that was fixed
it broke for the class initializer lists. I'm not sure how to fix that
at the moment, so better have it not do anything rather than being in
the way.
2009-05-28 12:31:26 +02:00
Roberto Raggi
bdf6c3d0be
Store the encoded file name in a QString.
2009-05-27 15:34:13 +02:00
Thorbjørn Lindeijer
7534732d3b
Integrate merge-request #444 into branch 'master'
...
Joel Nordell (1):
add ':' to electric keys for C++ indenting, and check for electric
keys anywhere on line, not just at beginning
Request-url: http://gitorious.org/qt-creator/qt-creator/merge_requests/444
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
2009-05-25 16:31:56 +02:00
Joel Nordell
4c07de50b2
add ':' to electric keys for C++ indenting, and check for electric keys anywhere on line, not just at beginning
2009-05-18 14:38:22 -05:00
Roberto Raggi
6195035bbf
Moved unCommentSelection() in creator/libs/util so we can use it for other C-like languages (e.g QML and JS).
2009-05-14 16:37:17 +02:00
Thorbjørn Lindeijer
cf44cbf58e
Added an option to disable the mouse navigation
...
It's conflicting too much with pasting for some, so better have the
option to just turn it off.
2009-05-13 16:07:43 +02:00
Thorbjørn Lindeijer
581dca0ad9
Rewrote PrettyPrinter to output the document exactly as it was before
...
This means at the moment the PrettyPrinter isn't doing anything useful,
but the idea is that from here we can improve it to adapt the code to
a certain style.
Reviewed-by: Roberto Raggi
2009-05-11 17:03:51 +02:00
Thorbjørn Lindeijer
092d8ca964
Restored changes to the overview combo that accidentally got reverted
...
Accidentally reverted in commit 713105ad85 .
Thanks to Christian Hönig for notifying.
2009-04-27 17:27:36 +02:00
Thorbjørn Lindeijer
b6d7fecf80
Fixed navigation with F2 when at the start of a word
...
Reviewed-by: con
2009-04-21 15:58:48 +02:00
Thorbjørn Lindeijer
30c357b218
Removed unused method from CPPEditor
2009-04-08 15:13:17 +02:00
Thorbjørn Lindeijer
14eb3f6f26
Fixed jumping to macro definitions
2009-04-07 16:31:09 +02:00
Thorbjørn Lindeijer
bbf284bb6d
Only highlight the filename of an include as link
...
Previously the whole line turned into a link. I think it looks a bit
nicer now.
2009-04-07 10:48:28 +02:00
Thorbjørn Lindeijer
494f0764dc
Fix the navigation links on Ctrl-hover
...
Link position had the wrong offset. Also took out a redundant check on
token kind.
2009-04-06 15:30:14 +02:00
Roberto Raggi
68d8d83093
Simplified the code that looks for the identifier under the cursor.
2009-03-30 15:33:14 +02:00
Thorbjørn Lindeijer
222b4faba8
Don't try to jump to unresolved included files
...
It popped up an error saying the file couldn't be found. Better not show
a link at all.
2009-03-26 18:21:11 +01:00
Roberto Raggi
573b33d79e
Jump at the matching class declaration.
2009-03-25 14:47:34 +01:00
Thorbjørn Lindeijer
8088ca2c43
Stop fighting over which mouse cursor to show on text editor
...
The BaseTextEditor was unconditionally setting the mouse cursor on each
mouse move event, after which the CPPEditor would set it as well when
the mouse was above a link. This caused some mouse cursor flickering, so
now the cursor is only set when it's supposed to change.
Also fixed an issue where the link wasn't removed when leaving the text
editor with the mouse while Ctrl was pressed.
2009-03-25 12:10:56 +01:00
Thorbjørn Lindeijer
9654563283
Make links to functions much more responsive
...
By avoiding searching for the definition when it isn't necessary.
2009-03-24 17:06:01 +01:00
Thorbjørn Lindeijer
f36ea6785c
Allow configuring the color for the hover links
...
Cause blue doesn't fit nicely in all color schemes.
2009-03-24 17:06:01 +01:00
Thorbjørn Lindeijer
de6166fc91
Don't try to resolve plain literals or comments
...
There's no place to jump to in these cases.
2009-03-24 14:54:52 +01:00
Thorbjørn Lindeijer
ed9df58ae9
Don't forget to call up to the superclass
2009-03-24 14:54:52 +01:00
Thorbjørn Lindeijer
1682a41869
Include position information in the link
...
Allowed customizing the link for includes and macro uses and fix it for
highlighting the name.
2009-03-24 11:24:11 +01:00
Thorbjørn Lindeijer
eebe9e2fc8
Clear link emulation when Ctrl is released
2009-03-24 11:24:11 +01:00
Thorbjørn Lindeijer
c08405fed4
Turn code into links when holding Ctrl
...
Allows navigating the code using the mouse when pressing Ctrl. Suggested
a few times and also seen in other IDEs.
2009-03-24 11:24:11 +01:00
con
f84c651428
Refactor navigation history again, put last edit position in history
...
Task: 240811
2009-03-19 16:37:05 +01:00
mae
71fe3435f2
when jumping to methods in the same file, stay in the same editor (split corner case)
2009-03-18 19:20:28 +01:00
Thorbjørn Lindeijer
70d5649428
Don't show code folding margin when it isn't supported
...
Introduce setCodeFoldingSupported to the BaseTextEditor, and only
enabled it for the C++ and QtScript editors. This removes the useless
margin meant for code folding markers from the plain text editor and
.pro file editor.
2009-03-17 18:25:44 +01:00
Thorbjørn Lindeijer
1f3908e0a5
Avoid adding navigation history twice
...
This code is already in TextEditor::BaseTextEditor::openEditorAt.
2009-03-05 17:14:37 +01:00
Thorbjørn Lindeijer
166a4086c9
--warnings
...
Small bugfix for column to jump to.
2009-03-05 17:14:37 +01:00
Roberto Raggi
1e7d6a01e6
ignore blocks.
2009-03-04 15:50:35 +01:00
Roberto Raggi
1389287028
Jump to the symbol's declarator.
2009-03-04 15:47:26 +01:00
Roberto Raggi
942f5a708a
Ignore the symbol's column for generated symbols (at least for now).
2009-03-04 15:45:38 +01:00
Roberto Raggi
064201ff85
Mark the generated regions of text.
2009-03-04 14:36:47 +01:00
Roberto Raggi
3ae971be45
Don't look at the whole project. We're only interested in the symbols that we can resolve in the current file.
2009-03-03 17:55:12 +01:00
Roberto Raggi
3d6f7de909
Context-sensitive highlighting.
2009-03-03 13:57:08 +01:00
hjk
8ca887aae2
Fixes: change file license headers to include LGPL
2009-02-25 09:15:00 +01:00
Roberto Raggi
8002b1a94c
Customizable doxy formats.
2009-02-20 12:08:34 +01:00
Thorbjørn Lindeijer
a33ae02927
Revert now unnecessary checks for null-types
...
This reverts commits:
c721304a47
885d908ea3
a0909989f7
fb4ad59ddb
0a9a67cf54
0d1624d4d1
d018cfd5cb
0504fdd00b
a2fd10fe19
Conflicts:
src/plugins/cpptools/cppcodecompletion.cpp
Reviewed-by: Roberto Raggi
2009-02-10 17:41:04 +01:00
Roberto Raggi
0d1624d4d1
Fixes: Possible crash when searching for the definitions of enumerators.
2009-02-09 20:38:00 +01:00
Roberto Raggi
d01795d933
Reimplemented Type::as*Type() using virtual methods.
2009-02-09 17:49:12 +01:00
Roberto Raggi
95a4645029
Fixes: Improved lookup of function definitions.
2009-01-29 09:33:58 +01:00
Thorbjørn Lindeijer
735e609e00
Removed more icore.h includes from header files
2009-01-23 13:03:36 +01:00
Thorbjørn Lindeijer
6adecf3767
Avoid going through ICore when it's not necessary
...
Many singletons have their own instance() method, in which case there is
no need to use ICore::instance() to get access to them.
2009-01-21 15:55:33 +01:00
hjk
40a91b315b
fix access to uninitialized m_core member that should have not been
...
there anymore
2009-01-20 17:57:07 +01:00
hjk
113b81e9db
replace ExtensionSystem::PluginManager::instance()->getObject<Core::ICore>() by Core::ICore::instance()
2009-01-20 11:52:04 +01:00
hjk
cc5ff1ec74
Remove #include <extensionsystem/pluginmanager.h> from icore.h, a
...
forward declaration is sufficient.
2009-01-19 12:39:20 +01:00
con
1e4c48a173
Fixes: - IActionContainer --> ActionContainer
...
Details: - Conform to naming convention
2009-01-14 13:18:24 +01:00
Daniel Molkentin
59affcfffc
Bump year in licence header.
2009-01-13 19:22:14 +01:00