mae
6526143626
apply insert-whole-lines magic only if the cursor is at the beginning
...
of the line.
2009-10-27 15:22:45 +01:00
Roberto Raggi
1bb9a24517
Fixed syntax highlight of ifdefed-out code.
...
Done with mae
2009-10-08 13:02:25 +02:00
mae
b61969bebb
Fix repaint issue with collapsed blocks
...
BaseTextEdit's paint event relied on us setting the line count of
invisible blocks to 0. This was not always the case, causing pixel
garbage to occur.
2009-10-05 19:14:39 +02:00
mae
49dc962957
Fix collapsed block indicator
...
In combination with ifdef'ed-out blocks, the collapse block
indicator was sometimes painted with the ifdef'ed out color.
2009-10-05 18:49:10 +02:00
mae
961fe9ed8a
Fix QKeySequence::DeleteStartOfWord in auto-indentation mode
...
The changes enables the auto-parentheses magic of normal
backspace also for the DeleteStartOfWord case.
2009-10-05 15:18:28 +02:00
Friedemann Kleint
5948e284bb
Rename namespace Core::Utils into Utils
...
Also move Designer::Internal::FormWindowEditor ->
Designer::FormWindowEditor.
2009-10-05 11:06:05 +02:00
Christian Kamm
0cc5f14f29
Make [ start a block and trigger indentation in the qml editor.
...
Reviewed-by: erikv
2009-10-02 15:10:03 +02:00
mae
9bef75f8f9
fixed repaint issue with collapse-popups
2009-10-01 20:13:55 +02:00
Friedemann Kleint
74a3828f19
Purge out include files in exported headers
2009-10-01 16:38:08 +02:00
mae
dc40d764b3
small refactoring to avoid dependency on a current qt fix
2009-10-01 12:40:08 +02:00
Thorbjørn Lindeijer
ebf7ffa581
Fixed copy/paste to external applications
...
Make sure special characters are converted to proper plain text.
Done with mae.
2009-09-30 17:49:54 +02:00
mae
df13733b44
tune auto-indentation of pasted text further
2009-09-30 17:31:33 +02:00
mae
6d0e9badfb
tune auto-indentation of pasted text further
...
This implementation relies less on the pasted block of text having
a trailing newline.
2009-09-30 17:11:53 +02:00
mae
0ed9043c34
tune auto-indentation of pasted text
...
auto-indentation of pasted text now only happens when complete
lines including a trailing paragraph separator are copied and pasted.
In addition, the reindent() functions ensures that the relative indentation
within the pasted block is preserved. This mechanism is now also used for
moving lines up/down.
Done with thorbjorn
2009-09-29 12:46:04 +02:00
mae
3ca067ad12
tune auto-indentation of pastes
...
when pasting text which ends with a newline, we should not
reindent the final line, instead we will preserve the indentation
that was there.
2009-09-28 16:23:53 +02:00
mae
36fb96b69d
fix auto braces with preprocessor directives
...
We now exclude brace in ifdefed out sections when calculating,
whether or not the braces match. This requires adjust the brace
levels whenever sections get ifdef'd out or ifdef'd in again.
2009-09-25 17:23:14 +02:00
Erik Verbruggen
91a492a562
Reverted a change which introduced a duplicate action for
...
(re-)formatting.
2009-09-25 10:47:04 +02:00
mae
4abe4d186c
In auto-indent mode, also indent pasted text.
2009-09-24 13:41:16 +02:00
mae
321dbba50f
Fixed artefact of animated parentheses when the text is modified.
...
Bug-number: QTCREATOR-154
2009-09-23 12:51:01 +02:00
Thorbjørn Lindeijer
0fed004ad4
Fixed the {begin,end}EndBlock to be used when inserting autotext
...
Based on a change by Denis Dzyubenko, done with mae.
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
c17edee606
Only auto-insert when the text right of the cursor seems unrelated
...
To avoid bothering people who are trying to type an expression that is
already partly there.
2009-09-16 17:33:34 +02:00
Thorbjørn Lindeijer
b8b37cb0b5
Fixed the completion to take into account auto parentheses insertion
...
Also skip semicolons in when auto parentheses insertion is enabled.
Done with mae.
2009-09-16 16:48:14 +02:00
Thorbjørn Lindeijer
9ff527e2aa
Check context when removing matching parentheses
...
Done with mae.
2009-09-16 16:28:32 +02:00
mae
a575cb18be
implement backspace for auto parentheses mode
2009-09-16 15:40:08 +02:00
Thorbjørn Lindeijer
0e3515130b
Fixed spelling of method name
2009-09-16 15:38:30 +02:00
Thorbjørn Lindeijer
19f4466e3c
Tweaks to skipping of closing parenthesis and quote characters
...
Done with mae.
2009-09-16 15:34:26 +02:00
Thorbjørn Lindeijer
14b081f700
Don't insert automatic parenthesis in comments and strings
2009-09-16 13:56:34 +02:00
mae
2827534c68
tweak auto-insertion of closing braces. It now only happens when you
...
press enter after an opening brace, but only if there's one extra
brace in the document.
2009-09-16 13:17:37 +02:00
mae
bcad75fbe8
auto complete quote and singlequotes
2009-09-16 12:24:36 +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
mae
1c4fc0d7dd
preliminary auto parentheses support
2009-09-15 17:04:33 +02:00
Erik Verbruggen
abdf35a86f
Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline
2009-09-11 14:43:39 +02:00
Erik Verbruggen
71549ec6a2
First version of QML navigation.
2009-09-11 14:42:50 +02:00
mae
99435d5f0e
Make "Edit/Advanced/Clean_Whitespace work on the current
...
selection (if there is one)
2009-09-09 16:37:09 +02:00
mae
f269031b5e
Make indentation/tabbing more developer friendly:
...
- when doing backspace, preserve the previous indentation litterally
- when having auto-indentation turned off, simply repeat the previous
indentation litterally instead of jumping to 0
2009-09-09 13:56:29 +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
mae
9b4055122c
Fix code folding issue with empty nested blocks like in:
...
void main()
{
{
}
int i;
}
2009-09-07 16:15:59 +02:00
mae
2f69bedc5f
Fixed the bold-line-numbers-cut-off problem in the text editor
2009-08-20 18:46:15 +02:00
hjk
93cbef8724
long live the king
2009-08-14 09:30:56 +02:00
mae
84bacc802c
Use proper standard keysequences for MoveTo/Select
...
StartOfLine/StartOfBlock. Eventually we want to switch all that to
actions, so we can have unix-style input also on the mac and vice versa
by setting different keybinding schemes.
2009-08-13 17:34:45 +02:00
mae
cfc10eb0bc
Fix for block highlighting on the folding bar: cover the entire
...
paragraph, even when it has several lines.
2009-08-03 18:13:49 +02:00
mae
22d2943c68
Hide mouse cursor from the editor when typing.
2009-07-22 14:36:56 +02:00
Thorbjørn Lindeijer
e1362eab38
Set Ctrl+E, R as default shortcut for rewrap paragraph
...
Suggested by dt.
2009-07-21 12:38:18 +02:00
Henrik Abelsson
ca825d2a96
Fixed the rewrapping not to leave around trailing spaces
...
Reviewed-by: Thorbjørn Lindeijer
2009-07-21 12:38:17 +02:00
Henrik Abelsson
5b49dc9ae8
Fixed wrapping to not take into account the indent level twice
...
Reviewed-by: Thorbjørn Lindeijer
2009-07-21 11:37:03 +02:00
Henrik Abelsson
f053ec8c14
Initial support for emacs like fill-paragraph.
...
Merge-request: 882
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
2009-07-21 10:50:20 +02:00
Thorbjørn Lindeijer
a81a90fcd5
Fixed the block highlighting with dark backgrounds
...
Due to multiplying by a factor, it failed to really make any difference.
Done with mae.
2009-07-20 18:22:55 +02:00
mae
f16d0c4d65
imlemented per-view edit location navigation
2009-07-20 13:56:25 +02:00