Commit Graph

1608 Commits

Author SHA1 Message Date
Montel Laurent
f7e8df65c8 normalize signals/slots 2011-08-19 23:52:18 +02:00
Kurt Hindenburg
b69924e732 Fix typo in previous commit 2011-08-16 06:20:27 -09:00
Kurt Hindenburg
55c478f82c Update the About Konsole info page for maintainers, credit, homepage. 2011-08-16 06:04:57 -09:00
Aaron Seigo
ff1740e438 call up the on screen keyboard when we get a click. 2011-08-16 13:56:53 +02:00
Jekyll Wu
fff43b2ca7 Apply the changed profile only when it is used by current view.
This fixes the regressio caused by commit e8fa53 .
2011-08-16 16:07:55 +08:00
Jekyll Wu
38343654f1 _progress is not used any more. 2011-08-15 14:24:55 +08:00
Jekyll Wu
3ea8344c4e Fix compilation error introduced in commit 4d77f7. 2011-08-15 14:24:55 +08:00
Jekyll Wu
1efdbea83e Last commit was meant to close REVIEW 102248. Typo. 2011-08-15 13:25:58 +08:00
Jekyll Wu
caece88d2c Don't emit keyPressedSignal when QInputMethodEvent::commitString() is empty.
When user switches focus (even using mouse) between tabs/windows
of konsole, ibus will trigger inputMethodEvent(). Most of the time
commitString() will be empty. Do not emit keyPressedSignal in such case,
otherwise konsole will scroll active view to bottom. See bug #236733.

The side effect is when inputmethod is activated, the active view
will not scroll to bottom on keystroke until user has committed
some string.

BUG: 236733
REVIEW: 102238
FIXED-IN : 4.8
2011-08-15 12:33:02 +08:00
Jekyll Wu
4d77f7a3f1 New tab will be placed to the right of the current tab.
This is a improved version, which also works well with split view.
2011-08-15 10:53:24 +08:00
Jekyll Wu
60fdf0f993 Revert "New tabs will be placed to the right of the current tab."
This is a temporary revert. Previous commit did not take split view
into account and puts new tab in weird order when used in split view.

A improved version will be commit shortly after.

This reverts commit 676df0c26e.
2011-08-15 10:44:12 +08:00
Jekyll Wu
81001aff31 call applyProfileToContainer() within createContainer().
This reduces duplication and make the code more consistent.
2011-08-15 09:25:22 +08:00
Jekyll Wu
f4b188658d Newly created container should also show new & close button.
BUG: 207213
REVIEW: 102324
2011-08-15 08:55:01 +08:00
Jekyll Wu
e8fa531709 Split ViewManager::applyProfile() into two methods.
The original method is splitted into applyProfileToView() which applies
view-specific settings to TerminalDisplay, and applyProfileToContainer()
which applies container-specific settings to ViewContainer.

This comes as preparation for fixing bug #207213.

REVIEW: 102321
2011-08-15 08:53:08 +08:00
Jekyll Wu
9329d34467 supports renaming profile in the ManageProfilesDialog.
BUG: 167294
FIXED-IN: 4.8
2011-08-15 06:51:32 +08:00
Jekyll Wu
dfcd06dfcf adjust indentation. 2011-08-15 06:14:28 +08:00
Jekyll Wu
4dd68c4c5b Do not append extra space when copying wrapped lines.
This is a fix for the regression caused by commit 4f8da8.

BUG: 136730
2011-08-15 06:02:57 +08:00
Jekyll Wu
d11be81bf3 adjust indentation. 2011-08-14 20:10:28 +08:00
Jekyll Wu
bfa0d696ad move some code into ViewManager::createContainer(). 2011-08-14 11:30:25 +08:00
Kurt Hindenburg
3e02e61e25 Merge branch 'master' of git://anongit.kde.org/konsole 2011-08-13 21:18:40 -04:00
Kurt Hindenburg
2dcd584255 Popup menu for drag-n-drop operations.
Restore KDE3 popup menu when any file is dropped into Konsole.

The popup menu allows to Copy, Move or Link the file into the current
working directory or to simply paste its URL as text (the latter being
the current behaviour in KDE4).

For non-local files, the URL is pasted as text.

Note that this adds a konq dependency - KonqOperations:doDrop

Patch by Frank Roscher
FEATURE: 160583
FIXED-IN: 4.8
REVIEW: 4600
2011-08-13 21:10:31 -04:00
Jekyll Wu
e25962af06 Disable the delete button when selected profile is undeletable.
This is to avoid the confusion users might have: "Why can't I delete
the 'Shell' profile when the UI implies I can ?". Users tend to think
konsole is broken in that situation.

Current implementation follows a stupid logic:
1). When multiple profiles are selecte, always enable the delete button.
2). When single profile is selected, disable it if user has no
permission to delete that profile.
2011-08-13 02:07:57 +08:00
Pino Toscano
62fdd3e60d fixuifiles 2011-08-12 17:46:40 +02:00
Jekyll Wu
397aaf1799 add shortcuts for buttons in ManageProfilesDialog 2011-08-12 06:32:51 +08:00
Jekyll Wu
8801b4ffb5 Member variable _fullScripting is not used any more. 2011-08-11 18:51:24 +08:00
Jekyll Wu
cb6a87a9b4 When loading profile, do not initially set default profile as parent.
The old code will cause problem if the loaded profile does not specify
its parent explicitly. That loaded profile will have current default
profile as its parent, which means its behavior changes if another
profile is set as the default profile . A good example is the 'Shell'
profile.

The new code initially sets fallback profile as parent, which guarantees
the behavior of 'Shell' profile is stable.

BUG: 279863
2011-08-11 15:47:01 +08:00
Jekyll Wu
016061eb60 remove code which is duplicated and effectively of no-use .
The fallback sequence for terminal command is not defined within
Session::checkProgram() anymore.
2011-08-11 11:32:31 +08:00
Jekyll Wu
1628bc54cb use approriate form of including system header file. 2011-08-10 09:19:20 +08:00
Jekyll Wu
d1dc4669d3 remove duplicated #include. 2011-08-10 09:09:51 +08:00
Jekyll Wu
ff1de927c2 class ProfileListWidget is not used anymore for a long time. 2011-08-10 05:27:27 +08:00
Jekyll Wu
8b5a3aae01 Not a good idea to reuse the name of member variable for parameter.
The old code is syntactially correct and works as expected, but it is
confusing at first glance.
2011-08-09 22:41:19 +08:00
Jekyll Wu
46b5fbc993 use updateTempProfileProperty() uniformly in class EditProfileDialog. 2011-08-09 14:40:28 +08:00
Kurt Hindenburg
087f67e4fc Allow an image to be set as the background in the terminal.
Restore the KDE3 option to have a background image in each session.

Patch by Alexandre Becoulet <diaxen@free.fr>
BUG: 157882
FIXED-IN: 4.8
2011-08-07 18:44:16 -04:00
Eike Hein
7e0561d096 Expose activity/silence monitoring in the KPart via signals & slots. 2011-08-06 17:20:43 +02:00
Kurt Hindenburg
7e00edd516 Make sure pty device has right size before terminal process queries it.
Whenever TeminalDisplay is resized, konsole tells the underlying
pty device its new size by calling Pty::setWindowSize(). However,
current code can't guarantee when the terminal process starts and
queries the pty device about its size, the pty device already has the
right info. This has caused some long known bugs, such as #176902.

This patch tries to guarantee that important assumption. It currently
uses a hard-coded small delay, which works pretty well in practice
although not that elegant.

Patch by Jekyll Wu <adaptee@gmail.com>

I think this is better than leaving the situation as it is.  This may
be backported if no issues are found.
BUG: 173999
BUG: 176902
BUG: 203185
BUG: 229058
REVIEW: 102061
FIXED-IN: 4.8
2011-08-05 10:40:14 -04:00
Kurt Hindenburg
51575d6f52 Accept drag and drop event from non-KDE Filemanagers
Thunar uses 'text/uri-list' in its mimetype, but konsole only accept
d&d events whose mimetype contains 'text/plain'.

Patch by Jekyll Wu <adaptee@gmail.com>
BUG: 219023
FIXED-IN: 4.8
REVIEW: 102176
2011-08-04 09:25:17 -04:00
Kurt Hindenburg
9cf9557c8f Add shortcuts to jump to top & bottom of history.
The shortcut of jumping to top of history is for the request of #45950

The shortcut of jumping to bottom of history is added not only for
consistency, but also to be used for #38390, especially its comment #9
 and #10.

Patch by Jekyll Wu <adaptee@gmail.com>

FEATURE: 38390
FEATURE: 45950
FIXED-IN: 4.8
REVIEW: 102124
2011-08-01 23:19:08 -04:00
Kurt Hindenburg
b40a006db8 Add a checkbox to hide the size widget upon resizing window.
Re-add the KDE 3 option to show/hide the size widget when the window is
changed.

Patch is years old from Chali Ahmul M.P.U <chali.ahmul@atlas.cz>
FEATURE: 169054
FIXED-IN: 4.8
2011-07-31 20:56:16 -04:00
Kurt Hindenburg
febd3c63da Change the default LocalTabTitleFormat to use %D instead of %d
%d will shorten the directory name whereas %D will not.  For some
users, having %d as the default is confusing as they don't understand
why some directories are not displaying correctly in the tab text.
Currently there is no UI to examine or change which folder names will be
shorten.

CCBUG: 190281
2011-07-31 15:42:38 -04:00
Kurt Hindenburg
43ff8c48a7 Add --nofork to the --help output.
--nofork is under --help-kde which is often overlooked by users.
Placing a comment under --help should cause less problems for users.
CCBUG: 217357
CCBUG: 262169
CCBUG: 173697
2011-07-31 15:11:46 -04:00
Kurt Hindenburg
86f6987320 Include % format strings alongside its descriptions.
This will allow the user to better understand what the format strings
refer to.

Patch by Jekyll Wu <adaptee@gmail.com>

FEATURE: 228130
FIXED-IN: 2.8
REVIEW: 102141
2011-07-30 22:56:19 -04:00
Kurt Hindenburg
676df0c26e New tabs will be placed to the right of the current tab.
Currently new tabs are placed at the end which is not very convenient.

Patch by Jekyll Wu <adaptee@gmail.com>
FEATURE: 276872
FIXED-IN: 4.8
2011-07-30 22:17:12 -04:00
Montel Laurent
b91f50015d Normalize signals/slots 2011-07-30 14:10:56 +02:00
Kurt Hindenburg
4f8da80fec Use SPACE as delimiter when joining multiple lines.
Currently, when users use ctrl+mouse to select and copy multiple lines,
those lines are joined into single line in a seamless way.  LINEBREAK is
simply removed, thus the first character of second line will be
positioned right after the last character of the first line.  This patch
replaces the LINEBREAK with a SPACE.

Thanks to Jekyll Wu (adaptee@gmail.com) for patch and research.
BUG: 136730
FIXED-IN: 4.8
2011-07-24 16:27:24 -04:00
Kurt Hindenburg
b8b3f23723 Correct non-zero status notification such that it works.
The non-zero notification was being displayed for zero exit codes.

Thanks again to Jekyll Wu (adaptee@gmail.com) for patch and research.
BUG: 221726
FIXED-IN: 2.8
2011-07-20 09:53:32 -04:00
Kurt Hindenburg
c252666b98 Fix $COLUMNS/$LINES after resizing.
The 2 were inverted previously.
CCBUG: 245746
2011-07-18 22:39:03 -04:00
Kurt Hindenburg
3bdd4a9732 Fix API docs in Profile
Thanks for patch to Jekyll Wu <adaptee@gmail.com>
BUG: 277988
2011-07-18 22:24:42 -04:00
Kurt Hindenburg
ecfb037c27 Enable Edit Profile Apply button only when profile has changed.
Keep track of any changes to the Profile and only enable the Apply
button when something has really changed.

Patch by Jekyll Wu adaptee@gmail.com

Might backport to 4.7 if there are no concerns.
BUG: 274501
FIXED-IN: 4.8
REVIEW: 101904
2011-07-16 11:44:02 -04:00
Albert Astals Cid
22a80e9126 Assignint to yourself is not really necesssary :D 2011-07-12 14:07:59 +01:00
Kurt Hindenburg
f3c529af6d Only enable the tab popup menu 'Detach Tab' for > 1 tabs.
Currently you can Detach Tab if that tab is the only one;  that
makes no sense and has no use.
2011-07-09 22:30:29 -04:00