Commit Graph

139 Commits

Author SHA1 Message Date
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
con
baaf7b1d62 Less QToolBars in editor tool bar. 2009-07-16 18:06:38 +02:00
Thorbjørn Lindeijer
d34bf41a37 Added the option to turn off marking of text changes 2009-07-16 11:30:11 +02:00
Thorbjørn Lindeijer
609e3c7f6b Update the current line highlight when its color might have changed
Fixes the issue where it would stay the color of the previous color
scheme until you change the cursor position.
2009-07-15 16:12:24 +02:00
con
db8507c4a0 Extract the styled painting of the find bar to utils widget. 2009-07-15 12:39:31 +02:00
Alessandro Portale
d3f9757916 Removing some unused semicolons after Q_UNUSED
There were both variants, with and without extra semicolon.
2009-07-13 17:35:17 +02:00
Henrik Abelsson
0a94100508 Add option to select behavior on externally changed files.
Merge-request: 840
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
2009-07-13 15:00:39 +02:00
mae
aa630932b1 make zoom-in/-out apply to all editors 2009-06-17 19:12:57 +02:00
Jason McDonald
884b7af769 Update license headers and sales contact details.
Reviewed-by: Trust Me
2009-06-17 00:01:27 +10:00
con
4f4f767b2b Merge commit 'origin/1.2' 2009-06-16 14:58:28 +02:00
Thorbjørn Lindeijer
aa2836f1dc Fixed the alignment of the line/column number label
This depended on a stretch that was removed. Instead, make the stretch
factor of the stretch 0 and make sure that the method boxes used by the
CppEditor and ScriptEditor take all its space.

Reviewed-by: con
2009-06-16 14:29:23 +02:00
Thorbjørn Lindeijer
b76ebd66e0 Fixed the mouse cursor no longer turning into a hand above the mark area
Reviewed-by: mae
Reviewed-by: con
2009-06-16 14:29:16 +02:00
Roberto Raggi
c25644a272 Merge branch '1.2' of git@scm.dev.nokia.troll.no:creator/mainline 2009-06-10 08:52:56 +02:00
mae
d4797bd98d show the visual column in the line-column-label (makes a difference
when using tabs).

Column counting still starts with 1.
2009-06-09 19:45:53 +02:00
Roberto Raggi
8c41eddaf4 Merge branch '1.2' of git@scm.dev.nokia.troll.no:creator/mainline 2009-06-09 18:38:52 +02:00
Jens Bache-Wiig
c85435d9ab Fixes: Fix a painting glitch when not using code folding 2009-06-09 18:17:54 +02:00
con
f3875c7e8e Merge commit 'origin/1.2' 2009-06-08 15:50:43 +02:00
Roberto Raggi
df99d5447f Initial work on "Quick Fix". 2009-06-08 14:32:42 +02:00
Jens Bache-Wiig
1ada16cd10 Fixes: Limit new folding indicators to Oxygen
Details:
It seems mac and windows people disagree with forcing
the new indicators on everyone so I will limit it to
Oxygen for now as it was the style in most need of
a fix.
2009-06-08 12:09:19 +02:00
Jens Bache-Wiig
b25edbe2ab Fixes: Draw arrow branch collapse arrows on all styles
Details:
We now draw mac/vista-like expand indicators in all styles
as suggested by danimo.
2009-06-05 16:17:15 +02:00
Jens Bache-Wiig
ab487246e9 Fixes: Make selection rect a little darker
Details:
Looked a bit too light in certain themes including mac.
2009-06-05 13:59:53 +02:00
Jens Bache-Wiig
d10389b9c5 Increase the delay for folding blocks
Details:
40 ms seems a bit too short. We should at least allow the mouse
cursor to pass undetected. The 10 ms delay seems a bit redundant.
2009-06-04 16:42:09 +02:00
Oswald Buddenhagen
d2a8449bea ifdef Q_?S_* cleanup
- clear up some Q_OS_LINUX vs. Q_OS_UNIX
- clear up Q_WS_* vs. Q_OS_* (relatively theoretical exercise)
- use proper #if-#else cascades instead of free-standing #ifs
2009-06-03 20:54:59 +02:00
Jens Bache-Wiig
3df7a2c301 Fixes: Fix overlapping alpha values in expander area
Details:
There are platform differences when drawing overlapping alpha
rects here. The workaround was to simply avoid using alpha
values for now.
2009-06-03 20:22:10 +02:00
mae
82153bf5fd fixed deletion of vertical block selection with Backspace key 2009-05-29 18:48:42 +02:00
Jens Bache-Wiig
3cc335618e Fixes: Centered arrow offset on mac 2009-05-29 17:44:32 +02:00
con
67466d0fb8 Support regular expressions in basic text editors. 2009-05-29 17:03:11 +02:00
con
c49412ac3a Prepare for being able to add find flags that are not in QTextDocument 2009-05-29 17:03:10 +02:00
Jens Bache-Wiig
4db79f2cbe Fixes: Fix mac problems in collapse highlight 2009-05-29 16:51:04 +02:00
Jens Bache-Wiig
33b68e1420 Fixes: Prettify the block highlighting
Details:
I softened it ut to make it significantly less
distracting.
2009-05-29 15:31:27 +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
Roberto Raggi
6ec0b2591e Removed debug output. 2009-05-28 11:12:16 +02:00
mae
4bdc0664eb Small fix for parentheses matching: give the syntaxhighlighter a chance
to update the parentheses information.
2009-05-27 20:50:07 +02:00
Thorbjørn Lindeijer
2a1bfc6059 Integrate merge-request #542 into branch 'master'
Joel Nordell (1):
      XCode-style tab behavior

Request-url: http://gitorious.org/qt-creator/qt-creator/merge_requests/542
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
2009-05-27 09:47:50 +02:00
Thorbjørn Lindeijer
c358a68557 Do still pass the typed character to the indenter
Some indenters need this information. If the C++ indenter misbehaves
based on the typed character, then that should be fixed there.

This reverts part of commit 4c07de50b2.

Reviewed-by: Roberto Raggi
2009-05-26 12:05:05 +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
ffd19fe8a0 XCode-style tab behavior 2009-05-20 11:10:06 -05: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