Commit Graph

2810 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
Kurt Hindenburg
205a51839c Disable detaching when on Darwin (MacOSX)
Too many issues/crashes for too long when detaching on MacOSX.  You
can still some strange things but I can't get it to crash now.
2013-08-15 22:26:59 -04:00
Francesco Cecconi
194a852d33 Prevent the dragging of the last tab in a split view.
BUG: 210871
REVIEW: 107640
FIXED-IN: 4.12
2013-08-15 23:14:17 +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
Kurt Hindenburg
4884fcdcd3 Remove color scheme dialog animation
This animation has been in here for ages (2007).  I don't actually
see any reason for it.

Thanks to Harald Hvaal metellius@gmail.com

REVIEW: 111764
2013-08-11 17:47:54 -04:00
Pino Toscano
f72af085ae ProcessInfo: isolate all the platform-specific *ProcessInfo implementations
compile all the platform-specific *ProcessInfo implementations only
in the OS they belong to, basically extending this conditional
compilation also to the Linux and Solaris implementations.

This allows to use proper OS-specific API/etc in each, removing quirks
(like the one for the Solaris psinfo struct) to emulate such APIs on
other OSes.
2013-08-01 16:53:06 +02:00
Kurt Hindenburg
76d4032172 Format the file so it reads half-way decent and consistent 2013-07-13 14:17:29 -04:00
Kurt Hindenburg
3afd71fb0a Format the file so it reads half-way decent and consistent 2013-07-13 14:12:22 -04:00
Kurt Hindenburg
583316e9b0 Explain why we use libKonq and with the dev link 2013-07-13 13:29:14 -04:00
Kurt Hindenburg
86880dff46 Fix a minor krazy issue about dup #include 2013-07-12 10:27:02 -04:00
Kurt Hindenburg
5756ba1e9d Update version # for new master 2013-07-11 09:50:47 -04:00
Kurt Hindenburg
e5b7480966 Fix 'extend Selection' bug for apps not interested in mouse
New feature in 4.11 allows Shift+Click to extend the selection.
However, for programs not interested in mouse (vim, mc, etc) this
causes issues.  Fix is to ignore extending selection for those apps.

BUG: 321516
FIXED-IN: 4.11
2013-06-23 12:37:14 -04:00
Kurt Hindenburg
cf1676aec1 Bump version to 2.11 for KDE SC 4.11 2013-06-09 19:10:55 -04:00
Michael Pyne
e61326fd0b Fix crash by not assuming standard shortcuts are present.
Neither of the two standard shortcuts used here are *guaranteed* to be
present (kdelibs filters both with some KAuthorized magic, and
help_contents also depends on the documentation subsystem), so avoid
crashing just because they're not around.

First noticed on my Gentoo-provided Konsole which is compiled without
the handbook USE flag.
(cherry picked from commit 8950584966)
2013-06-08 13:42:01 -04:00
Kurt Hindenburg
bf89bf16dc normalize the connect signals/slots again 2013-05-24 09:15:11 -04:00
Kurt Hindenburg
a6d76a08c1 Hide EditProfileDialog when ColorSchemeEditor is visible
Hide EditProfileDialog when opening ColorSchemeEditor.  When the color
scheme is open, the terminal is usually blocked by the EditProfile
dialog.  So users have to move that dialog to see the terminal.  This
patch hides the EditProfile dialog.

Patch by renan fargetton renan.fargetton@gmail.com

REVIEW: 110536
2013-05-23 08:55:02 -04:00
Kurt Hindenburg
47e25b4c4c normalize the connect signals/slots 2013-05-23 08:53:08 -04:00
Kurt Hindenburg
2b8d43ef48 Transform ColorSchemeEditor class from QWidget to KDialog
Move some code from EditProfileDialog::showColorSchemeEditor
* a part went in the slot EditProfileDialog::saveColorScheme
* a part becomes obsolete since ColorSchemeEditor is the whole KDialog
* a small part went into ColorSchemeEditor constructor

Make ColorSchemeEditor a non-modal dialog : The terminal is not frozen
when the dialog is open
 - The Kdialog has an Apply button
 - Some safeguard to check that there is only one ColorSchemeEditor open
 - Use reference rather than pointer in ColorSchemeEditor interface

Thanks to Renan for improving on Konsole's ColorScheme.

Patch by renan fargetton renan.fargetton@gmail.com

REVIEW: 110560
GUI:
2013-05-22 09:23:42 -04:00
Kurt Hindenburg
fae004a827 Add _IsNewScheme bool member
Add _isNewScheme bool as private member in ColorSchemeEditor class,
making the dialog aware if it correspond to a new theme or not.

Patch by renan fargetton renan.fargetton@gmail.com
REVIEW: 110534
2013-05-20 10:05:12 -04:00
Kurt Hindenburg
a091014a14 Changing styling in accordance with KDE styling guidelines + comments
Patch by renan fargetton renan.fargetton@gmail.com

REVIEW: 110532
2013-05-20 09:43:57 -04:00
Kurt Hindenburg
e6d16b71b6 Parameter name in prototype didn't match the name in definition
Patch by renan fargetton renan.fargetton@gmail.com

REVIEW: 110531
2013-05-20 08:14:55 -04:00
Kurt Hindenburg
18d5231443 Add GUI to alter profile setting handling Page Up/Down
This adds the GUI to setup the page up/down scrolling to either full
or half height.

The non-GUI code was in 3cd4d2e440

FEATURE: 280637
GUI:
2013-05-18 11:02:24 -04:00
Kurt Hindenburg
c56db4cfd0 Use QRect instead of manually handling terminal margins
Instead of keeping track of constants and +1 -1, use a QRect to handle
the terminal margins.  There is no GUI for this currently and the
margins are hard-coded to what they are now.  Code to center the
terminal is also include (w/o GUI).

This patch comes from review 109891 w/ a few changes from me.
Thanks to Mariusz Glebocki mglb@arccos-1.net
2013-05-18 07:51:29 -04:00
Kurt Hindenburg
7937cb9793 Add boundary check in copyLineToStream to try to prevent crashes
A lot of crashes in copyLineToStream _screenLines[screenLine]; this
likely needs to be a container, for now add an extra variable to watch
the size.
I still can't reproduce it though a lot of people can doing various
things.
319888, 313711, 312006, 306939, 304837
2013-05-17 09:12:29 -04:00
Kurt Hindenburg
1c3a87bf5f ColorScheme dialog improvements - extra column for intense colors
Add extra column for intense colors so each color and the corresponding
intense color is side by side (the data model colorScheme is unchanged,
only the ui has the additional column)
Also adjust the GUI such that there are no scrollbars for the table. The
EditProfileDialog is still larger.

Patch by renan fargetton renan.fargetton@gmail.com
with minor edits by me
From review 110318
CCMAIL: renan.fargetton@gmail.com
GUI:
2013-05-07 11:47:28 -04:00
Kurt Hindenburg
ddda4bb01e Add a limit to the sscanf
Add %2x - [0] and [1] are manually set so this is minor
2013-04-27 11:26:11 -04:00
Kurt Hindenburg
f051b6cd20 minor style fixes
GIT_SILENT
2013-04-27 09:25:04 -04:00
Kurt Hindenburg
290e4050ca For testFd() try to find the system's ping
On my MacOS, ping is under /sbin and so this test failed.  Also if no
ping is found skip test
2013-04-13 16:29:13 -04:00
Kurt Hindenburg
160ac87b59 Remove unnecessary Q_OS_MAC checks and includes
This compiles under 10.8.x - I don't have a 10.7 system to check
2013-04-13 15:39:42 -04:00
Kurt Hindenburg
5a85ef48fe Remove underline from an active link upon leaving terminal area
Patch from portion review 109891 by Mariusz Glebocki mglb@arccos-1.net
2013-04-10 10:34:36 -04:00
Kurt Hindenburg
b41a9253e6 Prevent infinite loop when Scheme name has / in it
A fix to prevent an infinite loop if user puts / in ColorScheme name;
Konsole will create a sub-folder in that case.

More code will have to go in to prevent the users from doing that.

FIXED-IN: 4.11
BUG: 315086
2013-04-06 15:23:54 -04:00
Kurt Hindenburg
cb4ca01e8b Add a --fallback-profile which uses the internal basic profile
If an user had only one profile and accidently puts a non-interactive
program (eg pwd) in the Command section it will start, run command and
then close.
The FALLBACK/ profile is the internal basic profile.

REVIEW: 109558
FIXED-IN: 4.11
2013-04-06 13:41:35 -04:00
Kurt Hindenburg
61a8fd147d Remove old colorscheme Bold key
Since the early KDE 4.x, konsole has allowed each color entry to have
a "Bold=true|false" entry to specify whether the color should be drawn
in bold or not (there was never an UI).

The per-profile 'Draw intense colors in bold font' should be enough.
See bko 168300 for more info
2013-04-06 13:29:45 -04:00
Kurt Hindenburg
2d5df9cc09 Allow shortcuts up to 19 tabs
The current was 10; Ingo Molnar suggested 14 via email.  I have a
keyboard with 19 so that seems a reasonable limit.
2013-03-27 09:33:27 -04:00
Kurt Hindenburg
3f26009403 remove unused variable (Session's bool _masterMode) 2013-03-26 11:21:31 -04:00
Kurt Hindenburg
1cfd00b72d remove unused variable 2013-03-26 11:05:40 -04:00
Kurt Hindenburg
2001648a55 Add some testing for calculating the title.profile file name
There's more than a few issues w/ generating the profile's filename
from the untranslatedName property.  Two of the main issues are
commented out since I don't want them failing just yet.
2013-03-26 10:31:20 -04:00
Kurt Hindenburg
0f889323c8 Revert "Add some testing for calculating the title.profile file name"
This builds fine on my Mac but not my Linux machine - what a pain

This reverts commit ef949e963b.
2013-03-23 22:41:26 -04:00
Kurt Hindenburg
ef949e963b Add some testing for calculating the title.profile file name
There's more than a few issues w/ generating the profile's filename
from the untranslatedName property.  Two of the main issues are
commented out since I don't want them failing just yet.
2013-03-23 22:18:00 -04:00
Kurt Hindenburg
17de056907 English fixes to comments only 2013-03-17 12:23:05 -04:00
Kurt Hindenburg
a88f9cb417 Check boundary of image to get valid Character
This crash in isSpace() is due to invalid Character; check for valid
array size before grabbing it.  No one can reproduce the crash but this
can't hurt hopefully.

CCBUG: 309954
2013-03-16 19:06:28 -04:00
Kurt Hindenburg
b5dbf6b32f minor space/tab fixes 2013-03-16 12:36:05 -04: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
35bb9cf9e7 Remove the the immature --background-mode option
See http://lists.kde.org/?l=konsole-devel&m=135316608321148&w=2 for
details.

FIXED-IN: 4.11
BUG: 310433
2013-02-24 12:27:54 -05:00
Kurt Hindenburg
3cd4d2e440 Add profile option to scroll full/half height via Page Up/Down keys
The default is still half page - there is no GUI to change this;
either use konsoleprofile or change the .profile manually.

CCBUG: 280637
2013-02-24 12:03:46 -05:00