Commit Graph

241 Commits

Author SHA1 Message Date
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Lasse Holmstedt
df7a19de9e Design mode integration
Moved Qt Designer to open from Design Mode. Also, Design mode is now global,
and created in coreplugin. Other plugins can register themselves to it.
2010-02-26 11:17:02 +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
con
7391ba388c Fix navigation history issues.
Separating navigation history logic from updating of highlights.
2010-02-08 16:55:07 +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
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
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
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
Roberto Raggi
51a33a9f0a Create completion items for the builtin snippets 2010-01-19 16:36:48 +01:00
mae
4959230cc5 beginnings of fancy snippet editing support 2010-01-19 12:29:13 +01:00
Roberto Raggi
92ed2daa6f Generalized the auto complete of braces. 2010-01-12 13:32:19 +01:00
Tobias Hunger
592e494d1a Fix typos
Reviewed-by: thorbjorn
2010-01-11 10:26:13 +01:00
Tobias Hunger
a6ad773722 Make method naming more consistent.
* Use id() for methods returning a string used to represent
    some type of object.
  * Use displayName() for strings that are meant to be user
    visible.
  * Quieten some warnings while touching the files anyway.
  * Move Factories to their products in the plugins where that
    was not done before.

Reviewed-by: dt
2010-01-07 18:17:24 +01:00
Martin Aumüller
46abe329f4 make isElectricCharacter public
the fakevim plugin needs access to this method for automatic indenting as the implementation
differs across the different types of editors

Merge-request: 98
Reviewed-by: hjk <qtc-committer@nokia.com>
2010-01-06 15:21:17 +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
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
mae
18b9bdd413 some tuning of the overlay search result selection 2009-12-01 19:44:31 +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
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
Roberto Raggi
756a67854a Highlight unused symbols. 2009-11-30 15:21:48 +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
Roberto Raggi
8fd0777ab0 Ensure the document is updated before invoking a quickfix. 2009-11-18 15:15:00 +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
3c96e840d8 Fix (un)collapse all
In combination with ifdef'ed out blocks (un)collapse all would
possibly never expand the blocks again.
2009-10-05 18:49:10 +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
Friedemann Kleint
74a3828f19 Purge out include files in exported headers 2009-10-01 16:38:08 +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
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
321dbba50f Fixed artefact of animated parentheses when the text is modified.
Bug-number: QTCREATOR-154
2009-09-23 12:51:01 +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
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
Erik Verbruggen
71549ec6a2 First version of QML navigation. 2009-09-11 14:42:50 +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
hjk
93cbef8724 long live the king 2009-08-14 09:30:56 +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
con
baaf7b1d62 Less QToolBars in editor tool bar. 2009-07-16 18:06:38 +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
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