Commit Graph

216 Commits

Author SHA1 Message Date
mae
ee53ebbf08 Fix inserting printable text with AltGt
Task: QTCREATORBUG-543
Reviewed-by: Tobias Hunger
2010-01-11 20:36:30 +01:00
Tobias Hunger
b95c86db23 Remove duplicate inclusions of headers
Reviewed-by: thorbjorn
2010-01-11 10:26:12 +01:00
mae
3bb71243d4 Fix ambiguous shortcut problems
The dummy shortcut eater did not always work, we sometimes do have
mutual exclusive shortcuts in the same context.

The current solution is simpler: ignore text input when the control modifier
is used. This seems to be in line with other toolkits and applications.

Done with: thorbjorn
2009-12-16 13:32:14 +01:00
con
7081a3d415 Merge remote branch 'origin/1.3'
Conflicts:
	src/plugins/projectexplorer/outputwindow.cpp
2009-12-14 11:47:39 +01:00
Thorbjørn Lindeijer
05914458f0 Made it possible to turn off scroll wheel zooming
It activates too easily for some people.

Task-number: QTCREATORBUG-406
2009-12-09 16:31:09 +01:00
Thorbjørn Lindeijer
a248406644 A bit of include cleanup 2009-12-08 18:22:52 +01:00
Thorbjørn Lindeijer
3d2d122472 Moved the mouse navigation option to the Behaviour settings page
It used to be hidden on the Display settings page.

Task-number: QTCREATORBUG-135
2009-12-08 18:22:52 +01:00
Thorbjørn Lindeijer
fdc2463971 Relax the selection requirement for indent/unindent selection
Before, the selection was required to span multiple lines. Now, any
selection will trigger the line indenting functionality of
Tab/Shift+Tab. This should lead to less surprises.

Also, Shift+Tab will now always unindent the current line, even if there
is no selection, since there is nothing else sensible for this shortcut
to do.

Task-number: QTCREATORBUG-414
Reviewed-by: mae
2009-12-08 17:30:27 +01:00
mae
9ced67bd62 workaround for the occasional auto-unfold when doing pageUp/pageDown 2009-12-03 19:58:44 +01:00
mae
c1120587a8 Merge commit 'origin/1.3'
Conflicts:
	src/plugins/cppeditor/cppeditor.cpp
2009-12-03 18:41:21 +01:00
mae
480c9a5bf4 refactor rename selections
the new approach makes it possible to use more edit features
inside the rename selection like cut/copy/paste. Furthermore
it compresses rename operations better on the undo stack.
2009-12-03 18:35:36 +01:00
Thorbjørn Lindeijer
67bbce7911 Fixed problem with indentation when auto-indent is turned off
When auto-indent is turned off, Qt Creator uses a simplistic approach of
copying the indentation string from the previous line. This was broken
when the cursor was positioned inside the indentation, since this caused
part of the indentation to go to the next line, which was then prepended
with the copied indentation, in effect increasing the indentation for
each new line.

The solution here was to copy the indentation from the previous block
only after inserting the new block, which causes the indentation of the
previous line to be cut off by exactly the right amount to keep the
indentation constant.

Task-number: QTCREATORBUG-396
Reviewed-by: mae
2009-12-03 16:15:26 +01:00
mae
8c4ede6be4 fix find scope scelection, special case empty overlay selections 2009-12-02 14:12:59 +01:00
mae
89693f6347 forbid overlapping search results when highlighting 2009-12-02 13:31:17 +01:00
mae
54d3d06614 use new selection type for find scopes, draw shadow in overlay (not underlay) 2009-12-02 13:26:33 +01:00
mae
e68cd407ce final drop shadow tuning 2009-12-02 11:29:38 +01:00
mae
b440068d4d refactor search result overlay painting 2009-12-02 10:57:05 +01:00
mae
18b9bdd413 some tuning of the overlay search result selection 2009-12-01 19:44:31 +01:00
mae
43f5b46649 increase threshold for highlighting of all search results to 2 2009-12-01 19:09:17 +01:00
mae
7d0d467980 obey the "auto-fold first comment" option also for reloads 2009-12-01 18:14:02 +01:00
mae
dc713d0684 added "auto-fold first comment"-option to the editor
Convenient when you don't want to see all the big license headers.
2009-12-01 18:08:47 +01:00
mae
0fffad22ad Merge commit 'origin/1.3' 2009-12-01 15:58:09 +01:00
mae
7fa8574d98 fix extra area drawing with multi-line blocks when line wrap is enabled
The extra area only updated the current *line* when the cursor moved, not
the entire paragraph. This left bold line numbers behind. The fix adds
the required update region when the cursor position changes blocks.
2009-12-01 15:55:55 +01:00
mae
e2a899e354 improved search result selection with over and underlay
done with thorbjorn
2009-12-01 14:47:40 +01:00
mae
b7635dda19 tune editor mouse cursor behaviour
the fix makes the mouse cursor visible when the editor loses focus.
This fixes an issue with the completion box, where on mac and windows
no mouse cursor would be visible (it worked on X11 due to the way
X11 does mouse grabbing for popup windows).
2009-11-30 19:14:48 +01:00
mae
d6e4a787d5 separate font zoom from font size
Introduce "Reset Font Size" action, bound to Ctrl+0
2009-11-30 19:01:04 +01:00
mae
32d0bc1ff2 some tuning of the layer extra selections
Remove overlap. Add extra selection tooltips for the cpp hover handler.
2009-11-30 17:24:06 +01:00
mae
28e3ba5bfb Fixed overlay selections
1. allow empty overlay selections
2. make it possible to bind a selection to a specified length
2009-11-30 13:57:47 +01:00
Oswald Buddenhagen
b0b5bde2e9 Merge remote branch 'origin/1.3'
Conflicts:
	doc/qtcreator.qdoc
	src/plugins/debugger/watchhandler.cpp
2009-11-27 20:06:01 +01:00
Thorbjørn Lindeijer
9ec55210c3 Set the brush origin in the BaseTextEditor for the WaveUnderlines
This is necessary since a recent change in Qt 4.6 to how the
WaveUnderline is drawn. It makes sure the WaveUnderline repeats
correctly from one text item to another.

Reviewed-by: mae
2009-11-26 16:36:39 +01:00
mae
f0b75092c5 fix windows clipping issue for search results 2009-11-26 15:26:56 +01:00
Roberto Raggi
049f8d535d TODO: process the edit-ops. 2009-11-26 12:36:36 +01:00
Roberto Raggi
32f67652df Added getter/setters for the ChangeSet. 2009-11-26 12:20:13 +01:00
mae
53a3071580 first steps for a refactoring overlay system.
As side effect we can now play a bit with visualizing extra selections
2009-11-25 15:56:30 +01:00
mae
4ef2caca3a Fix pasting of text that starts with a visually empty line
Creator only indents the first line, and reindents subsequent lines relative
to the indentation change of said first line. This fails when the first line
contains no non-space characters. Solution in this change: skip (visually) empty
lines.

Reviewed-by: thorbjorn
Task-number: QTCREATORBUG-227
2009-11-09 18:58:31 +01:00
mae
1e6a90bcb3 optimize extra area painting 2009-11-09 16:06:28 +01:00
mae
55dbc39ed0 Fix auto-indentation when pasting into a selection 2009-11-09 16:06:28 +01:00
mae
6043c639e3 fix redrawing issue with horizontal scrolling and line wrapping column
revby: Oswald Buddenhagen
2009-11-04 12:42:26 +01:00
Thorbjørn Lindeijer
2c115e934f Make accidentally activating the link navigation more difficult
Only checking Ctrl and link availability on mouse release was triggering
the navigation too easily.

Now you have to press and release the mouse on the same link, having
Ctrl pressed all the time. In addition, when changing the text selection
the link is also cleared.

Task-number: QTCREATORBUG-134
Reviewed-by: con
2009-11-03 17:52:37 +01:00
mae
c035290602 add standard cut/copy/paste actions (if available) to the cpp editor's context menu
at a later stage we will look into harmonizing context menu among different editors.
The cpp editor had the biggest need, because its context menu features all sorts of
extra refactoring operations, thus the standard Qt context menu became too large.
2009-11-02 14:03:38 +01:00
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