Feature #213
Add a multiline write line with a toogle button like Chatzilla
100%
Description
Sometimes you want to add edit and send a text with multi lines reply.
The possibility to have a multi line space to edit could be a great new feature.
Regarding also to the 0000209 bug.
The chatzilla client give a good example for that.
Related issues
Associated revisions
History
#1 Updated by sph about 16 years ago
I'm not sure about the toggle button, but using ctrl-enter or shift-enter to switch to multiline mode and add a new line would be nice.
Also, it'd be great if it automatically recognizes a multiline copy/paste (and removes the last newline at the end) rather than sending them right away without any chance of editing.
#2 Updated by Squider over 15 years ago
I found some free time and decided to make something nice for you all. The included patch is against the current git master.
- The input line now automatically expands up to 8 lines.
- Control+Up/Down are now used to scroll the ChatView.
- Shift+Up/Down are used to manipulate the InputLine.
- Shift+Return lets you enter a new line.
- User now can always review pastes before sending to IRC.
And what comes to those traling newlines, empty lines are not sent at all (like before).
#3 Updated by Squider over 15 years ago
Squider wrote:
I found some free time and decided to make something nice for you all. The included patch is against the current git master.
- The input line now automatically expands up to 8 lines.
- Control+Up/Down are now used to scroll the ChatView.
- Shift+Up/Down are used to manipulate the InputLine.
- Shift+Return lets you enter a new line.
- User now can always review pastes before sending to IRC.
And what comes to those traling newlines, empty lines are not sent at all (like before).
Sorry, I mistakenly commented out one preprocessor block. Here is a patch reverting that change.
This patch also removes some unneeded margin-space when using Qt < 4.5.
#4 Updated by Sputnick over 15 years ago
- Status changed from New to Assigned
- Assignee set to Sputnick
- Priority changed from High to Normal
- Target version set to 0.5.0
#5 Updated by Sputnick over 15 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Applied in changeset f047a4f7add72ef7e32ad33f884e62a5773ecc72.
Introduce multi-line editing for the inputline
This introduces the new MultiLineEdit that basically enhances the old InputLine widget by being
able to expand to show more than one line. All non-editing related things have been moved out of the
MultiLineEdit to ease reuse in other widgets. For example, InputWidget-specific keypresses are now handled
in InputWidget rather than MultiLineEdit.
Closes #209, closes #213, fixes #386. Thanks to Squider for input (I saw your patch too late, but I did refactor
things anyway...)