Commit Graph

389 Commits

Author SHA1 Message Date
mae
dadefeaf97 tune auto-parentheses
do not close braces automatically on enter if the next line's indentation
is deeper than the current line's
2009-09-30 17:11:53 +02:00
Roberto Raggi
ace380ec28 Make the symbols used in the current editors. 2009-09-30 13:25:59 +02:00
Roberto Raggi
a52df417c4 Activate the find references when renaming non local members. 2009-09-29 16:40:49 +02:00
Roberto Raggi
e40cd82f8c Introduced T_CPP_COMMENT and T_CPP_DOXY_COMMENT to handle C++-style comments and improved CPPEditor::isInComment to handle the newly introduced tokens.
As side effect,this change should fix the regression we introduced in the "automagically" quote/brace insertion.
2009-09-29 11:35:43 +02:00
Erik Verbruggen
377ed944e5 Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-09-28 11:46:20 +02:00
Erik Verbruggen
478e94748f Added type declarations for forward declared ObjC protocols and classes. 2009-09-28 11:46:00 +02:00
Roberto Raggi
b3cf5ae50a Some work on `find references of a symbol'. 2009-09-25 14:20:02 +02:00
mae
efed56c49e Improve auto-inserting or deleting of parentheses and brackets
When inserting or deleting ( or [, we now check wether this will improve
the block's parentheses balancing, and only fix it if it doesn't. Same
applies to skipping of ) or ].
2009-09-25 13:52:16 +02:00
Roberto Raggi
e7b96347f1 Revert "Introduced our own document revision."
This reverts commit 6b510cb487.
2009-09-24 16:34:18 +02:00
mae
7d72996fa3 fix cppeditor occurance extra selections
only set the background, we do not want to modify foreground properties
set by the syntax highlighter or the link
2009-09-24 15:19:45 +02:00
mae
600fc9b218 cpp editor actions
remove some standard actions from the cpp editor context menu,
and enhance the advanced menu instead.
2009-09-24 14:51:40 +02:00
Erik Verbruggen
a98db7b096 Fixed a crasher. 2009-09-24 12:19:54 +02:00
Roberto Raggi
6b510cb487 Introduced our own document revision. 2009-09-24 10:12:33 +02:00
Roberto Raggi
6051584cfd Don't create selections for unused symbols 2009-09-24 10:05:33 +02:00
Roberto Raggi
7cf7683052 Mark unused symbols. 2009-09-23 18:07:17 +02:00
Roberto Raggi
8848be4caa Find references 2009-09-23 16:52:41 +02:00
Roberto Raggi
e4ff0c8b36 Added CPPEditor::isInComment() and used it to remove the inserted quote characters.
CPPEditor::isInComment() returns if the text cursor is in a comment.
2009-09-22 18:06:41 +02:00
Thorbjørn Lindeijer
bf74d21d6c Avoid completing a closing parenthesis in the wrong place
Need to check the character to the right of the cursor.
2009-09-22 16:54:16 +02:00
Roberto Raggi
8290563cd2 Allow auto matching of string/char literals. 2009-09-22 11:25:29 +02:00
Roberto Raggi
b9ce92ec4d Remove all the synthesized characters when matching curly braces 2009-09-21 18:19:09 +02:00
Roberto Raggi
29f03c7526 Removed obsolete code. 2009-09-21 17:41:48 +02:00
Roberto Raggi
a49395a0ea Made the indenter more Qt friendly. Added support for moc keywords. 2009-09-21 16:10:17 +02:00
Roberto Raggi
6c9670c3db Use the backward scanner to indent labeled statements, ctor-initializers and access specifiers. 2009-09-21 15:14:28 +02:00
Roberto Raggi
4843f44c30 Don't allow auto parentheses when the token under cursor is a comment. 2009-09-18 12:28:15 +02:00
Roberto Raggi
9a799da6c9 Re-enable check for automatically inserted block end. 2009-09-17 18:54:12 +02:00
Roberto Raggi
da4fcd22ef Pass the lookahead character to matching text. 2009-09-17 18:39:10 +02:00
Roberto Raggi
82b80b9e39 Automagically insert matching characters. 2009-09-17 17:58:00 +02:00
Roberto Raggi
dfa6be721d Added the helper class MatchingText and use it to automagically insert text for curly braces. 2009-09-17 15:51:15 +02:00
Thorbjørn Lindeijer
b5dbcee370 Take the selected end as look ahead
Cause that's the relevant context.
2009-09-17 13:36:57 +02:00
mae
554f4fe679 ensure visibility for extra blocks that are auto inserted 2009-09-17 12:47:16 +02:00
mae
061865efa4 move auto parentheses handling into the cpp editor 2009-09-17 12:37:20 +02:00
Thorbjørn Lindeijer
66f2e3235e Fixed the context in which automatic parentheses are placed
Done with mae and Roberto Raggi.
2009-09-16 16:27:41 +02:00
Thorbjørn Lindeijer
0e3515130b Fixed spelling of method name 2009-09-16 15:38:30 +02:00
Thorbjørn Lindeijer
14b081f700 Don't insert automatic parenthesis in comments and strings 2009-09-16 13:56:34 +02:00
mae
20ab82ce73 make auto parentheses opt-in for individual editors. Currently
its only turned on in the cpp editor.
2009-09-15 17:15:11 +02:00
Thorbjørn Lindeijer
61ed06d58e Moved mouse navigation into BaseTextEditor so that it can be reused
For implementing mouse navigation in the QML editor.
2009-09-08 13:05:25 +02:00
hjk
93cbef8724 long live the king 2009-08-14 09:30:56 +02:00
Roberto Raggi
90e7bac4d8 Made `Rename Symbol under Cursor' a command/action. 2009-08-04 13:44:54 +02:00
Robert Loehning
6479b201ee Fixed: Mouse-navigation could not be disabled.
Reviewed-By: dt
2009-07-21 18:44:10 +02:00
con
6a88525aa3 Some more QToolBar changes. 2009-07-16 18:08:41 +02:00
con
baaf7b1d62 Less QToolBars in editor tool bar. 2009-07-16 18:06:38 +02:00
Thorbjørn Lindeijer
8cc916a0ca Added categories for occurrences and for renaming occurrences
So they can be adapted in the color schemes.
2009-07-14 10:38:41 +02:00
Roberto Raggi
fff9795a1f Reuse as much info as we can from the previous SemanticInfo. 2009-07-10 12:42:56 +02:00
Roberto Raggi
b1f9711859 Cleanup 2009-07-10 12:42:56 +02:00
Roberto Raggi
8f6956e6ec Ignore outdated semantic info. 2009-07-10 12:42:56 +02:00
Roberto Raggi
fd4dbd7446 Introduced Snapshot::simplified(doc) 2009-07-10 12:42:55 +02:00
Roberto Raggi
e0f550733e Simplified SemanticInfo::Use. 2009-07-09 17:34:07 +02:00
Roberto Raggi
97f8850a74 Introduced SemanticHighlighter
Done with Thorbjørn Lindeijer
2009-07-09 12:14:00 +02:00
mae
d430a4123b fix uses selection (type with block and line numbers) 2009-07-08 16:38:50 +02:00
Roberto Raggi
eb7dfc49a0 Made FindScope a member of FindUses. 2009-07-08 13:50:49 +02:00