mae
b1577b0e20
Make the current line highlighting prettier
...
Especially in combination with block highlighting.
2010-04-14 13:40:36 +02:00
mae
be92567948
Add "center cursor on scroll" option for the base text editor
2010-04-14 13:40:36 +02:00
mae
e9be9a0d57
Fix minor ifdefed-out block drawing issue
...
When drawing the background for an ifdefed-out block, expand
to the end of the visible viewport, even when scrolled
horizontally to the right.
2010-04-13 14:37:54 +02:00
mae
d633ec2094
Fix find scope expanding
...
We now use two cursors, with the first one being positioned at the
character before the find scope starts. This makes it possible
to extend the scope when typing at the beginning or the end of
it. This is more what the user expects. The effect is noticable
with find&replace of words at the beginning or end of the scope.
2010-04-13 12:07:43 +02:00
mae
bf28a3db54
Restrict find & replace to vertical block selection
2010-04-12 20:50:09 +02:00
Erik Verbruggen
fbb8f39945
Fixed ruler alignment on MacOS for fonts with fractional metrics.
...
Task-number: QTCREATORBUG-1065
Reviewed-by: mae
2010-04-12 15:39:42 +02:00
mae
5332925626
Turning blinking cursor on when handling backspace
...
Reviewed-by: thorbjorn
2010-04-12 14:33:13 +02:00
Thorbjørn Lindeijer
cba9730802
Rename method to match signal name
...
Signal is called contentsChangedBecauseOfUndo
2010-04-08 16:28:04 +02:00
mae
91dac9385e
Re-enable snippets
...
Fixed colors to use the same as refactoring rename, and a few
fixes for undo and document changes outside the tab areas.
Reviewed-by: Roberto Raggi
2010-03-29 16:45:41 +02:00
mae
17579bb97f
Make completion box hide on an editor undo operation
2010-03-29 16:45:41 +02:00
mae
f9fb0bc270
Fix background of folded-block popups
...
If the disabled code format in creator does not have a background
defined, we now use the page's default background.
2010-03-26 14:46:56 +01:00
Thorbjørn Lindeijer
fb82e101ea
Handle forward/backward mouse buttons for editor navigation
...
Task-number: QTCREATORBUG-899
Reviewed-by: kh1
2010-03-19 16:53:38 +01:00
Friedemann Kleint
bbcacaf59f
Header cleaning spree in Core/Debugger and Symbian/Maemo-code of Qt4.
2010-03-18 10:59:06 +01:00
mae
f30627b48e
Make persistent code folding and auto-collapse of the license header work together
2010-03-15 13:17:20 +01:00
mae
80b60b9906
Make code fodling persistent between session
...
Task-number: QTCREATORBUG-214
2010-03-15 12:27:11 +01:00
hjk
944b6dad7d
texteditor: return information on whether openEditor actually created an
...
editor or re-used an existing one
2010-03-10 13:46:45 +01:00
Marius Storm-Olsen
651ff4b172
Don't draw column margin twice
...
The last line is even blended, which slows things down.
Reviewed-by: Thorbjørn Lindeijer
(caused by wrong merge of ab3d3cf413 )
2010-03-05 15:08:44 +01:00
Marius Storm-Olsen
b448e6e7b9
Enable suppressing syntax and setting a foreground color on disabled blocks
...
If the foreground color for the disabled text is different than the normal
text foreground, that's an indication that the user wants the disabled
block to be colored differently. If so, disable the syntax highlighting
and set uniform colors for the block.
If the foreground colors are identical apply full syntax highlighting in
the disabled block too. Some people want that.
Reviewed-by: Thorbjørn Lindeijer
2010-03-05 15:04:23 +01:00
Thorbjørn Lindeijer
181b086f99
Added syntax highlighted code to clipboard as HTML when copying
...
The generated HTML is not the prettiest HTML in the universe, but it
does the job. When copying code from Qt Creator to Microsoft Office or
OpenOffice.org, the syntax highlighting is now preserved. The code also
pastes as preformatted text.
Reviewed-by: mae
Task-number: QTCREATORBUG-727
2010-03-05 15:04:23 +01:00
hjk
9595504bda
Long live the king!
2010-03-05 11:28:13 +01:00
mae
868dac8088
Fixed moving lines up/down through folded code
...
Previously this resulted in the folded code being removed.
Task-number: QTCREATORBUG-768
2010-02-26 14:52:01 +01:00
mae
e0572239ba
Fixed: Search scope is hidden by block highlighting
...
Task-number: QTCREATORBUG-758
Reviewed-by: thorbjorn
2010-02-25 13:04:08 +01:00
Jens Bache-Wiig
c94e06bbbd
Migrate ManhattanStyle to use QProxyStyle
2010-02-23 12:42:35 +01:00
Thorbjørn Lindeijer
6d9e3c8a8e
Dropping files into the editor shouldn't insert file:///...
...
On some desktop environments, dragging and dropping a file gives us
the url to the file in multiple mime types, including text/plain. This
causes the url to be inserted as text by default.
Work around this issue by explicitly ignoring drop events for the text
editor when they also come with urls.
Task-number: QTCREATORBUG-728
Reviewed-by: Friedemann Kleint
2010-02-19 11:50:21 +01:00
mae
20ec30223c
Block highlight works incorrectly with methods having parameters split in several lines
...
task-number: QTCREATORBUG-611
2010-02-17 16:02:47 +01:00
Roopesh Chander
2d9996c703
Pass the current block in all applicable invocations of TabSettings::indentationString()
...
Merge-request: 1766
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
2010-02-08 16:59:10 +01:00
con
7391ba388c
Fix navigation history issues.
...
Separating navigation history logic from updating of highlights.
2010-02-08 16:55:07 +01:00
Thorbjørn Lindeijer
9b3dd396be
Merge branch '1.3'
...
Conflicts:
src/plugins/debugger/gdb/gdbengine.cpp
2010-02-04 15:09:05 +01:00
hjk
3251309ada
texteditor: remove traces of TEXTEDITOR_STANDALONE
2010-02-04 10:38:11 +01:00
Erik Verbruggen
62705df65f
Moved indentation utility method from CPPEditor into BaseTextEditor.
...
Reviewed-by: Roberto Raggi
2010-02-03 16:50:21 +01:00
Thorbjørn Lindeijer
580a37b22c
Don't insert a snippet for-loop when pressing Ctrl+H
...
Universal helper kept around for comfort.
2010-02-03 14:59:44 +01:00
Thorbjørn Lindeijer
e25b457b59
Avoid drawing a black rectangle due to invalid background for disabled code
...
Regression in commit ab3d3cf413
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com >
2010-02-02 16:47:14 +01:00
Roberto Raggi
7c88796002
Changed BaseTextEditor::Link to use a pair of offsets (begin, end) instead of position and length.
...
Done with: Thorbjorn.
2010-02-01 16:18:27 +01:00
Friedemann Kleint
f672bff338
Fix some code scanning issues.
...
foreach()-Loops.
2010-02-01 14:00:07 +01:00
Friedemann Kleint
2fd8b2d7ff
Fix some code scanning issues.
...
QString: Use QChar where appropriate.
2010-02-01 12:43:56 +01:00
Oswald Buddenhagen
75b42f18d8
Merge remote branch 'origin/1.3'
...
Trailing whitespace removal re-applied manually.
2010-01-29 22:50:23 +01:00
Oswald Buddenhagen
4320314046
Merge branch 'origin/1.3' (early part)
...
Conflicts:
src/plugins/debugger/gdb/trkgdbadapter.cpp
src/plugins/projectexplorer/projectexplorer.cpp
src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp
src/plugins/texteditor/basetexteditor.cpp
2010-01-29 22:14:44 +01:00
mae
b932615ca0
fix smart backspace handling
...
The smart backspace handling required a preceeding
non empty text block. In this case, the fix introduces
a standard backspace (deletePreviousCharacter).
Reviewed-by: dt
2010-01-28 16:29:53 +01:00
Thorbjørn Lindeijer
ab3d3cf413
Don't draw the right margin border on top of the text
...
Better to draw it explicitly under the text, together with the
associated background color.
2010-01-25 14:25:00 +01:00
Thorbjørn Lindeijer
0ddfcdff43
Fixed performance issue with scrolling when using X11 graphics system
...
Depending on the XRender driver (probably), drawing a short straight
line can take quite a while when this line is transparent. On my
laptop's onboard ATI card, this meant that scrolling was unusably slow
when this transparent line was being drawn.
Fixed by avoiding the issue, since there is no actual need to use
transparency here. We can calculate the resulting color in advance
instead.
2010-01-25 13:59:01 +01:00
Thorbjørn Lindeijer
8f8ee59d2c
Made Join Lines work with a multi-line selection
2010-01-21 15:18:06 +01:00
Thorbjørn Lindeijer
bf4b5879b4
Fixed Join Lines action when dealing with wrapped lines
2010-01-21 15:18:06 +01:00
Thorbjørn Lindeijer
808198c41c
Removed the "Join Lines Up" action
...
It was a bit confusing, since it reversed the order of the lines. When
this would be fixed, the added value of this action is very small, since
you can then also simply move your cursor one up before joining the
lines.
2010-01-21 15:18:06 +01:00
Falco Hirschenberger
46a96c25b0
Collapse or expand trailing whitespaces to one
...
Merge-request: 1823
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
2010-01-21 15:18:06 +01:00
Falco Hirschenberger
ec2b738d61
Add join-line up/down feature to text editor
...
Merge-request: 1823
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
Task-number: QTCREATORBUG-510
2010-01-21 15:18:06 +01:00
mae
5b8a678672
first iteration of snippet support for qml
...
Done with Thorbjorn and Roberto
2010-01-19 18:50:50 +01:00
Roberto Raggi
51a33a9f0a
Create completion items for the builtin snippets
2010-01-19 16:36:48 +01:00
mae
1f6c25a72e
snippet fixes
...
done with roberto
2010-01-19 16:18:50 +01:00
Roberto Raggi
cb74282c59
Some work on the our little test case for snippets.
2010-01-19 15:59:32 +01:00
mae
a5df2e7b24
backspace/delete handling for snippet editing
2010-01-19 12:54:14 +01:00