Commit Graph

257 Commits

Author SHA1 Message Date
Alex Richardson
a83db71590 Port to KF5/Qt5
TerminalDisplayAccessible is disabled for Qt5 currently since I don't
have any experience with accessible stuff and it is more complicated
than just changing a few includes

REVIEW: 111937
2013-08-20 23:34:35 +02:00
Alex Richardson
ab5e15b1b7 Revert "Port to KF5/Qt5"
This reverts commit 4adfbe84bd.

This work will go into a new branch instead
2013-08-13 23:26:19 +02:00
Alex Richardson
4adfbe84bd Port to KF5/Qt5
To build for KF5 pass the option -DQT5_BUILD=ON to CMake

TerminalDisplayAccessible is disabled for Qt5 currently since I don't
have any experience with accessible stuff and it is more complicated
than just changing a few includes

REVIEW: 111937
2013-08-13 21:26:59 +02:00
Francesco Cecconi
c45d07698f Prevent the opening of two or more "edit profile dialogs" per session.
Fixing the wrong behaviour to open two or more "edit dialog" for
one session/tab with the same profile, and the crash with two or
more "edit dialog", one for different session(tabs) with the same profile.

BUG: 311270
REVIEW: 107640
FIXED-IN: 4.11
2013-03-14 17:40:04 +01:00
Kurt Hindenburg
5f371e19f7 Add "set-encoding" action into konsolepart
Allow the konsole part to set encoding via menu

Patch by Azat Khuzhina a3at.mail@gmail.com
REVIEW: 109099
FIXED-IN: 4.11
2013-03-02 16:26:59 -05:00
Kurt Hindenburg
702f61953b For KonsolePart use 'Close Session' as menu text
Having 'Close Tab' in konsole part is not really correct as there is
no tab.

BUG: 225854
FIXED-IN: 4.11
2013-03-02 16:17:47 -05:00
Kurt Hindenburg
b2adf8d016 Make search strings per-tab, not per-window
Currently the presence of the search bar is maintained per-tab, but the
search term itself is per-window. This leads to curiously inconsistent
behaviour.  I believe there is little to suggest search terms remain
relevant across different tabs, and there is significant user
expectation that search terms/bar constrained to a tab (see browsers).

Patch by Lindsay Roberts linds.r@gmail.com
REVIEW: 109130
2013-03-02 14:07:57 -05:00
Kurt Hindenburg
56be8800f4 Search toward most recent lines by default
Current history search searches "down", wrapping instantly from the
current location to search from oldest to newest. As lines in a
terminal generally decrease in relevance as they move away from current
output, the most relevant lines and therefore search results can be
found "upwards" of the current output line.
This patch makes searches default to "up".

Patch by Lindsay Roberts linds.r@gmail.com

REVIEW: 108998
2013-02-24 13:07:44 -05:00
Kurt Hindenburg
cdf2b2bc78 Switch from c-style casting to c++ casting via static_cast 2012-12-19 21:20:18 -05:00
Dawit Alemayehu
7656ce515a Don't call updateWebSearchMenu from selectionChanged. The search menu items will
be added before the context menu is displayed.

BUG: 307973
FIXED-IN: 4.10
2012-11-30 23:59:26 -05:00
Jekyll Wu
6bf21efc99 <kcodecaction.h> ==> <KCodecAction> 2012-11-17 15:01:47 +08:00
Jekyll Wu
40a38d7aa1 Avoid duplicate "Show Menubar" entries in shortcuts dialog
The "show menubar" action in context menu is now shown only when menubar is
hidden.

BUG: 214493
REVIEW: 104193

FIXED-IN: 4.10.0
2012-10-20 18:56:41 +08:00
Jekyll Wu
b8c92b421d Move the "Send Signal" submenu to a better position under "Edit" menu
It feels out of place to put that submenu between "Copy","Paste" and "Select
All". The new place is not ideal, but I think it is beeter than current
situation.
2012-09-28 21:00:56 +08:00
Dawit Alemayehu
9e92d0f51b Fixed the 'Search for' URL filtering support.
REVIEW: 106419
(cherry picked from commit d07c5be899)
2012-09-11 10:09:45 -04:00
Kurt Hindenburg
21a8b063a7 astyle format fixes - whitespace and { 2012-09-03 14:15:47 -04:00
Kurt Hindenburg
5526c75fb2 Reimplement KDE3's print screen functionality
Add File->Print Screen menu option

Patch by Kasper Laudrup laudrup@stacktrace.dk

FEATURE: 249084
FIXED-IN: 4.10
2012-09-03 12:26:31 -04:00
Jekyll Wu
131091c983 Adjust including form for some Qt headers as preparation for Qt5
So if someone notices later some Qt header is included in the form
of "#include <Class>" instead of the more common form of "#include
<Module/Class>", do not rush changing it.

REVIEW: 105819
2012-08-14 17:32:06 +08:00
Francesco Cecconi
a3ea90b559 Add 'shift+return' pressed event for search 'lineEdit'
When search 'lineEdit' is focused, press 'shift+return' key,
highlight the previous search result.

REVIEW: 105925
2012-08-09 10:59:41 +02:00
Francesco Cecconi
d1e8258d62 Add return pressed event for search 'lineEdit'
When search 'lineEdit' is focused, press return key highlight
the next search result.

REVIEW: 105894
2012-08-07 17:20:39 +02:00
Kurt Hindenburg
e02fea6e17 astyle fixes
use git diff -w --ignore-all-space to see non-space changes
2012-08-05 13:35:03 -04:00
Kurt Hindenburg
a4b08ea190 Add the "Send Signals" menus from KDE 3.5
This reintroduces the "Send Signals" from KDE 3.5.
SIGSTOP/CONT/HUP/INT/TERM/KILL/USR1/USR2

Patch by Kasper Laudrup  laudrup@stacktrace.dk

FIXED-IN: 4.10
FEATURE: 214908
2012-08-04 18:05:09 -04:00
Kurt Hindenburg
77df2c5952 minor style fix 2012-08-04 09:24:34 -04:00
Francesco Cecconi
639a4248ef Use 'KColorScheme::PositiveBackground' for a positive search result
Set '_searchEdit' field background to 'KColorScheme::PositiveBackground'
when a search has a positive result.

BUG: 167442
REVIEW: 105777
FIXED-IN: 4.10.0
2012-07-29 22:26:47 +02:00
Francesco Cecconi
e9ce814072 Make 'Find' action consistent with other KDE applications
When search bar is visible, pressing the shortcut/menu item for the second
time give focus to the search lineEdit. This patch remove toggleable property
from the action.

BUG: 271668
REVIEW: 105723
FIXED-IN: 4.10.0
2012-07-28 09:22:22 +02:00
Kurt Hindenburg
693cecbae7 Clear command line before outputting bookmark entry.
Keep a list of valid programs (shells) that accept Ctrl+C to clear the
command line.  Clear command line only when there is no active program
running and a valid program is being ran.

BUG: 46233
REVIEW: 105298
FIXED-IN: 4.10.0
2012-06-26 09:30:16 -04:00
Jekyll Wu
ebedf28f45 Do not update the search result for the session in inactive tab
Thanks to Lindsay Roberts<linds.r@gmail.com> for research and patch

BUG: 301682
FIXED-IN: 4.9.0
REVIEW:105244
2012-06-14 13:29:19 +08:00
Jekyll Wu
4d3a22ccc9 Use the controller instead of view as parent when creating submenu
BUG: 301476
FIXED-IN: 4.9.0
2012-06-09 11:12:04 +08:00
Jekyll Wu
cc7af66556 Do not reset previous searching after switching tab
Thanks to Lindsay Roberts<linds.r@gmail.com> for the research and patch

BUG: 168769
FIXED-IN: 4.9.0
REVIEW: 105121
2012-06-01 21:40:54 +08:00
Jekyll Wu
87f186d164 Get back F3 as the default shortcut for the "Find Next" action.
Another stupid mistake by me. Wonder why it goes unnoticed for
such a long time.

CCMAIL: lueck@hube-lueck.de
2012-05-28 03:13:39 +08:00
Jekyll Wu
e058e64cea Decrease the delayment of updating process info on keystroke to 500ms 2012-05-17 07:51:13 +08:00
Kurt Hindenburg
bee9aa8f78 minor style fixes - remove empty lines start/end code blocks 2012-05-13 10:08:05 -04:00
Kurt Hindenburg
9f5877bdfc minor whitespace style changes 2012-05-13 08:51:27 -04:00
Jekyll Wu
c8da19dcdd Move the logic of increasing/decreasing font size into TerminalDisplay 2012-05-10 15:24:59 +08:00
Jekyll Wu
bb818010b4 Add two profile options for the copy & paste behavior of mouse
* support "automatially copy selected text into clipboard"
  * mouse middle button can be customized to paste from selectio or
    clipboard

The first feature might look like a unnecessary duplicate of the
"synchronize selection and clipboard" feature of Klipper. However, that
klipper feature is generally problematic, while doing it only in Konsole
is generally useful and harmless.

FEATURE: 183490
FIXED-IN: 4.9.0
REVIEW: 103861
DIGEST:
2012-04-25 12:55:38 +08:00
Jekyll Wu
cce19d8cb8 Allow searching scrollback in konsolepart
No keyboard shortcuts are provided because they often conflict with
actions from hosting applications. The only way to use this searching
feature is from context menu

FEATURE: 162319
FIXED-IN: 4.9.0
REVIEW: 104608

DIGEST:
2012-04-20 13:18:47 +08:00
Jekyll Wu
caaa91a08c Add support for KDE Web Shortcus
There is a submenu in the context menu for searching selected text using
any of the enabled search provider and opening the result in the default
web browser.

This could be useful for searching compilation failure messages, warning
messages in logfile, etc.

DIGEST:
FEATURE:
FIXED-IN: 4.9.0
REVIEW: 104493
2012-04-18 00:00:29 +08:00
Jekyll Wu
c384d0f885 Set the default shortcut for 'edit-clear-history' as Ctrl+Shift+K, again
This has previsouly done for bug 282593 in commit dad64e67, but it is
reverted accidently by me in commit 08de49da.
2012-04-16 09:47:02 +08:00
Kurt Hindenburg
ba34c4ebe2 normalize SIGNALS
It is annoying that kdelibs-style and Qt normalize conflict
2012-04-06 08:57:47 -04:00
Kurt Hindenburg
5b083640ce whitespace and style fixes
Use 'git diff -w --ignore-all-space' to see non-whitespace changes
2012-04-05 11:08:53 -04:00
Kurt Hindenburg
d1ac153ba6 Convert the HistorySizeDialog to .ui 2012-04-03 10:15:03 -04:00
Jekyll Wu
2efc697d80 Invert the boolean logic to make the code more natural 2012-04-03 20:25:10 +08:00
Jekyll Wu
faf4f0027c Rename: RenameTabsDialog ==> RenameTabDialog 2012-03-26 23:26:15 +08:00
Jekyll Wu
675dbcb2fe Emit signal currentDirectoryChanged(QString) after current directory changes
Note: the signal is not emitted immediately after the current directory
changes. There is noticable delay (usually below 1 second) at the
moment.

FEATURE: 156919
REVIEW: 104372
FIXED-IN:4.9.0
2012-03-23 22:55:15 +08:00
Kurt Hindenburg
6e93204ae5 /s/NULL/0 2012-03-20 09:13:55 -04:00
Jekyll Wu
33678e7ca4 Add more convenient methods for accessing profile option 2012-03-19 18:29:44 +08:00
Jekyll Wu
683f2c9ec5 Merge Profile::HistoryModeEnum and HistorySizeDialog::HistoryMode into Enum::HistoryMode Enum 2012-03-19 16:07:27 +08:00
Kurt Hindenburg
e0862c603a Style fixes - separte commands - remove 2 ; - align { elses 2012-03-18 15:57:48 -04:00
Kurt Hindenburg
519e2614d6 Style fixes - remove spaces before ; and add spaces in for loops 2012-03-18 15:11:06 -04:00
Jekyll Wu
25b8b5353c Trivial style change: remove extra blank lines 2012-03-17 19:53:21 +08:00
Jekyll Wu
7179de8f3d Prefer qobject_cast to dynamic_cast when appropriate 2012-03-16 13:37:15 +08:00