Commit Graph

241 Commits

Author SHA1 Message Date
Roberto Raggi
df99d5447f Initial work on "Quick Fix". 2009-06-08 14:32:42 +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
Thorbjørn Lindeijer
5208444d7a Merge branch 'copylines'
Conflicts:
	src/plugins/texteditor/texteditorconstants.h
2009-05-18 12:34:12 +02:00
Serge Ratke
2dd046640d implementation of copy lines up/down functionality 2009-05-15 23:17:11 +02:00
Thorbjørn Lindeijer
9a79a06930 Introduce a Delete Line action that doesn't copy to clipboard
The version that does copy to clipboard is now called Cut Line, and is
still mapped to Shift+Delete by default.
2009-05-14 17:55:17 +02:00
Thorbjørn Lindeijer
358a355315 Fixed faked transparency of folding makers with Plastique style
Plastique is manually blending with the background color, so make sure
we set the background to the highlight color when the folding marker is
hovered.
2009-05-05 10:25:18 +02:00
Thorbjørn Lindeijer
b7e12e23f4 Changed classic folding markers
This new look fits better with the new behaviour. Also, the
collapse/expand markers are now drawn by the style.
2009-05-04 11:13:31 +02:00
mae
b1a024e55b some corner cases fixing 2009-04-29 16:46:54 +02:00
mae
ffe9fe58f7 support old-fashioned +/- folding bar, but improved 2009-04-29 15:37:38 +02:00
mae
94a713c38e parentheses matching and block highlighting polishing 2009-04-29 12:17:42 +02:00
mae
3b917fde19 mac fix for parenthesis matching 2009-04-28 19:02:58 +02:00
mae
5df82ab502 experiment with a different way of doing parenthesis matching. This is not finished and
work in progress.
2009-04-28 18:34:58 +02:00
mae
b9e376f5dd fix block highlighting off-by-one 2009-04-24 18:08:22 +02:00
mae
5f89921179 polishing of block highlighting, and a new folder bar. 2009-04-24 16:44:48 +02:00
mae
a71436649c removed the folding ribbon from the default configuration, instead
turned a new block highlighting mechanism on.
2009-04-23 17:28:53 +02:00
mae
4d708fa408 new text editor option "Highlight blocks" 2009-04-22 20:04:38 +02:00
hjk
285fa4a5b3 fakevim: remove "fakevim" option from text editor settings as it has a
page of its own now
2009-03-30 15:39:13 +02:00
Thorbjørn Lindeijer
f36ea6785c Allow configuring the color for the hover links
Cause blue doesn't fit nicely in all color schemes.
2009-03-24 17:06:01 +01:00
con
37973823c5 One step to being able to jump back in a senseful way... 2009-03-19 16:37:05 +01:00
con
fc79c737b3 Add last edit position to navigation history.
Task:     240811
2009-03-19 16:37:05 +01:00
Thorbjørn Lindeijer
551b9f487e Moving some code together that belongs together 2009-03-17 18:25:44 +01:00
Thorbjørn Lindeijer
70d5649428 Don't show code folding margin when it isn't supported
Introduce setCodeFoldingSupported to the BaseTextEditor, and only
enabled it for the C++ and QtScript editors. This removes the useless
margin meant for code folding markers from the plain text editor and
.pro file editor.
2009-03-17 18:25:44 +01:00
hjk
8ca887aae2 Fixes: change file license headers to include LGPL 2009-02-25 09:15:00 +01:00
hjk
292d4bc3d5 Fixes: fakevim: provide an option in the text editor settings 2009-01-23 19:13:00 +01:00
hjk
15ac83eda4 Fixes: fakevim: add flags to settings page 2009-01-23 18:21:36 +01:00
Daniel Molkentin
59affcfffc Bump year in licence header. 2009-01-13 19:22:14 +01:00
hjk
669b56fde9 add enum value for extra selections 2009-01-13 13:08:21 +01:00
hjk
da3cb14483 chancge Nokia GPL exception version from 1.2 to 1.3 2008-12-16 17:20:00 +01:00
mae
d937ee5570 tweak collapse/expand short cuts, and do not draw collpase boxes
in ifdefed out sections
2008-12-12 14:09:56 +01:00
Roberto Raggi
f1e67fa3a3 Added `editorKind' to BaseTextEditor::openEditorAt(). We need it to force the CPPEDITOR kind
when opening files from the C++ editor (e.g. when the user press F2 on #include <QMutex>).
2008-12-11 10:28:39 +01:00
mae
8580234ec8 added Move Line Up and Move Line Down actions. Can be extended to
support statements later.
2008-12-10 18:01:33 +01:00
mae
1931304da1 add explicit "Clean Whitespace" advanced action 2008-12-09 17:43:31 +01:00
mae
6d37029be8 support different selection kinds in basetexteditor.
enum ExtraSelectionKind {
        CurrentLineSelection,
        ParenthesesMatchingSelection,
        CodeWarningsSelection,
        CodeSemanticsSelection,
        OtherSelection,
        NExtraSelectionKinds
    };
    void setExtraSelections(ExtraSelectionKind kind, const QList<QTextEdit::ExtraSelection> &selections);
    QList<QTextEdit::ExtraSelection> extraSelections(ExtraSelectionKind kind) const;

This is mainly for the benefit of the cppmodelmanager.
2008-12-05 13:19:57 +01:00
mae
786e183aa6 markContextMenuRequested signal in ITextEditor 2008-12-05 12:12:20 +01:00
mae
4fd9f1e6f7 new signal: BaseTextEditor::lineContextMenuRequested(TextEditor::ITextEditor *editor, int line, QMenu *menu);
To be useful and used by the bookmarkmanager, this has to move to ITextEditor.
2008-12-04 19:33:23 +01:00
mae
e594815842 two new actions: "select block up" and "select block down", current default is Ctrl+U 2008-12-04 19:25:20 +01:00
mae
e9ad023def block navigation and selection (bound to Ctrl+[]{} 2008-12-04 18:37:02 +01:00
hjk
cf11b69643 more code cosmetics 2008-12-02 16:19:05 +01:00
hjk
ab83dcd87c off-by-one in headers 2008-12-02 14:20:25 +01:00
hjk
8a43d9b9f3 end-of-line whitespace correction of the new headers 2008-12-02 14:17:16 +01:00
con
05c35356ab Initial import 2008-12-02 12:01:29 +01:00