Commit Graph

84 Commits

Author SHA1 Message Date
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
Jekyll Wu
a7f71fe903 Add slot currentWorkingDirectory() for getting the current wokring directory
CCBUG:214547
REVIEW:104362

CCMAIL: hein@kde.org
2012-03-23 21:58:14 +08:00
Kurt Hindenburg
263d00691a minor comment spelling correction 2012-03-22 08:51:48 -04:00
Montel Laurent
1cb2a2d179 Normalize signals/slots 2012-03-22 09:40:35 +01:00
Jekyll Wu
9befbb8e3f konsolepart should not know too much internal detail of Session 2012-03-21 18:34:52 +08:00
Jekyll Wu
19dd7ea499 Trivial style change 2012-03-21 18:03:18 +08:00
Jekyll Wu
b400690c5d Make WindowSystemInfo::HAVE_TRANSPARENCY const and initialize implicitly
This avoids the explicit assignment in Application and Part. The result
might look a little strange, but that is basicaly what the old code does
and what that variable intends to be (all capitalized letter)
2012-02-25 21:47:29 +08:00
Jekyll Wu
ef62a0002b Move TerminalDisplay::HAVE_TRANSPARNCEY into its own dedicated class
TerminalDisplay.h is a big header. It is not good for several files to
include that big header only in order to use one of its static member.
2012-02-25 21:10:09 +08:00
Jekyll Wu
26ebd8a72d Delete unused method 2012-02-23 05:15:32 +08:00
Jekyll Wu
3a21cfe326 Remove unneeded #includes 2012-02-23 05:11:17 +08:00
Jekyll Wu
3b7e953523 Yet another around of cleaning up #includes 2012-02-22 07:18:30 +08:00
Jekyll Wu
0331f97b60 Another try of cleaning up of #includes 2012-02-21 05:18:31 +08:00
Jekyll Wu
3d8da1f878 Make 'foreach(...)' more readable 2012-01-14 22:54:56 +08:00
Jekyll Wu
a37da5afbb Make sure the popup menu for d&d event is also translated in Konsole Kpart 2012-01-11 18:52:09 +08:00
Jekyll Wu
664639ccd9 Konsole Kpart does not need MainWindow 2012-01-11 18:39:58 +08:00
Kurt Hindenburg
898d889890 Apply astyle-kdelibs a little more
Use 'diff -w --ignore-all-space' to see non-whitespace changes.
2012-01-08 09:57:12 -05:00
Kurt Hindenburg
1baa56feda White space changes - astyle and Qt normalize don't like each other.
Use 'git diff -w --ignore-all-space' to see non-whitespace changes.
2011-12-25 13:13:55 -05:00
Kurt Hindenburg
d1b019a47a Apply astyle-kdelibs
Over the years, the coding style is all over the place.

Use 'git diff -w --ignore-all-space' to see non-whitespace changes.
2011-12-24 11:01:40 -05:00
Kurt Hindenburg
bc087ae51b Remove unused KDebug includes 2011-12-18 00:01:32 -05:00
Jekyll Wu
eb2515236c Remove #includes for <kdeversion.h> which are not needed now 2011-10-31 02:32:07 +08:00
Jekyll Wu
7867aec885 Make it possible to intercept "Shift+Insert" as shortcut in kpart
BUG: 165720
FIXED-IN:4.8
REVIEW:102924
2011-10-21 11:53:26 +08:00
Jekyll Wu
ae44eb4c4b Save default-profile/favorites/shortcuts settings into disk ASAP.
Those settings are now synced into disk right after the
ManageProfilesDialog is closed.

BUG: 200987
FIXED-IN: 4.8
REVIEW:102781
2011-10-06 17:48:25 +08:00
Jekyll Wu
3d5342f0ed Suppress the compiler warning for unused parameter. 2011-10-01 21:25:41 +08:00
Jekyll Wu
0165f45402 Rename 'Configure Profiles...' into 'Manage Profiles...'
The makes the action consistent with the opened ManageProfilesDialog.
2011-10-01 14:08:45 +08:00
Jekyll Wu
f6d627903c Remove 'show-menubar' and 'manage-profiles' from kpart's context menu.
It is inapproriate for those actions to appear in the context menu of
kpart. Actually, they are not used at all.
2011-10-01 13:37:27 +08:00
Jekyll Wu
607e2d44d0 Define the default debug area and no more "kDebug(1211)". 2011-09-27 23:01:38 +08:00
Jekyll Wu
de61d40c63 Include Qt headers in the form of "#include <Module/Class>" 2011-09-06 06:42:42 +08:00
Eike Hein
7e0561d096 Expose activity/silence monitoring in the KPart via signals & slots. 2011-08-06 17:20:43 +02:00
Kurt Hindenburg
cacfb081bb Use KDE::'s stat and chmod 2011-04-01 10:37:53 -04:00
David Faure
1529b2f531 Port from KParts::Factory to KPluginFactory. Tested with dolphin loading konsolepart.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1214180
2011-01-13 11:21:45 +00:00
Sascha Peilicke
82ddddcc76 Menubar and actions revamp, see http://reviewboard.kde.org/r/3110/ for details.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1121952
2010-05-02 19:43:43 +00:00
Kurt Hindenburg
00acf5ca59 Change quotes to brackets for config-konsole.h includes
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1107712
2010-03-26 15:16:51 +00:00
Rahman Duran
9ec6d94a7b Implemented new TerminalInterfaceV2 functions.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=946379
2009-03-29 11:51:01 +00:00
Eike Hein
95f203284f Remove now-unnecessary includes.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=941454
2009-03-19 15:18:34 +00:00
Eike Hein
a1f88240b4 Simplified translucency support in the KPart thanks to
Qt::WA_TranslucentBackground -- in the right branch,
this time.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=941453
2009-03-19 15:16:55 +00:00
David Faure
fa0b6e56a6 Make openUrl lead to a useable shell in all cases, even if the url is not a local url.
CCBUG: 153649

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=923962
2009-02-09 20:14:59 +00:00
Robert Knight
956277c014 Convert tabs to 4 spaces to match kdelibs conventions. Previously
there was a mix of tabs and spaces for indentation.

CCMAIL:Stefan.Becker@nokia.com


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=863326
2008-09-21 20:06:58 +00:00
Albert Astals Cid
a99550527c Make sure the konsole catalogue is loaded so that dolphin, yakuake, etc
that use konsolepart get the messages translated

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=846684
2008-08-13 21:00:51 +00:00
David Faure
454e4557c7 Re-add a openUrl implementation so that embedding konsolepart into konqueror works again
BUG: 153649

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=844692
2008-08-10 09:08:01 +00:00
David Faure
d66004acf3 Forward port fix for people without XRENDER
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=844690
2008-08-10 09:06:09 +00:00
Robert Knight
5d9997446e Update copyright year to 2008. Remove '(C)' from copyright lines.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=800631
2008-04-24 14:53:43 +00:00
Robert Knight
d4e2edeab2 Allow the terminal display's host to decide whether shortcut keypresses
which are also valid terminal key sequences should be overridden and sent
to the terminal instead.

Default behaviour in the standalone Konsole is never to override shortcuts.  Default
behaviour in the terminal part is to always override shortcuts.

Shortcuts which are not valid terminal key sequences (eg. because they have more than
two modifiers) are never overridden.

Add an overrideShortcut() signal to the Part to expose this functionality to clients.

CCMAIL: kde-core-devel@kde.org

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=799577
2008-04-21 22:06:12 +00:00
Robert Knight
039d1c4f6f Support use of existing pty in embedded terminal via openTeletype(int fd) slot.
No new methods have been added to the TerminalInterface class in kdelibs to avoid breaking
binary compatibility so the slot must be invoked via QMetaObject::invokeMethod() for now.

See tests/PartTest.cpp

CCMAIL:jr@jriddell.org

Squashed commit of the following:

commit 0759e22dc26b7c1c28e0d8a9b0d245d909629237
Author: Robert Knight <robertknight@gmail.com>
Date:   Fri Apr 18 20:43:20 2008 +0100

    Adapt test to kdelibs changes.  Add a label to explain what the user should expect to see.

commit b67be2fd20178625f01f8f135751849082eddf04
Author: Robert Knight <robertknight@gmail.com>
Date:   Fri Apr 18 00:47:32 2008 +0100

    Export Pty, Session, KeyboardTranslator classes for use in tests.

commit 6dd28bf628fe1036c59f3383aba27ba98e23152c
Author: Robert Knight <robertknight@gmail.com>
Date:   Fri Apr 18 00:46:27 2008 +0100

    Build test

commit 0a9e1c9dc158f73e6bf9f7ef2fe7d4ea936a8066
Author: Robert Knight <robertknight@gmail.com>
Date:   Fri Apr 18 00:46:10 2008 +0100

    Remove temp file

commit 8e69bd56fef267ac0c31c989a4959453a8e3359e
Author: Robert Knight <robertknight@gmail.com>
Date:   Fri Apr 18 00:45:28 2008 +0100

    Add a test for using existing file descriptors with the Konsole part.

commit f1f5b8a7684e88db64769324496a5fa67dd4920b
Author: Robert Knight <robertknight@gmail.com>
Date:   Tue Apr 15 18:36:14 2008 +0100

    Add support in the KPart to use an existing terminal rather than opening a new one.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=798661
2008-04-18 19:47:32 +00:00
Robert Knight
7c0e81dada Safer shutdown. Ensure all sessions are closed and session state saved
during Application destructor.

Make ~SessionManager do trivial tasks only.

BUG: 159657

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=789641
2008-03-24 19:30:51 +00:00
Robert Knight
5036d8cb00 Squashed commit of the following:
commit 99d61f9bdfe29347050162a5a675bb0c276bc1bf
Author: Robert Knight <robertknight@gmail.com>
Date:   Sat Mar 22 20:45:45 2008 +0000

    Allow a normal frame around the table view in ManageProfilesDialog.  Works better with Oxygen style.

commit 7075de00d8cc88568e108e868e08d071d5aa7bcb
Author: Robert Knight <robertknight@gmail.com>
Date:   Sat Mar 22 20:37:38 2008 +0000

    Change base class of ProfileItemDelegate from QItemDelegate to QStyledItemDelegate for better rendering.  Fix updates of favorite / non-favorite status in ManageProfilesDialog.  QVariant equality comparisons are not properly supported for custom types so QAbstractItemModel::match() has to be replaced with manual iteration through the rows.

commit 3baa3307473e037efd500ade7df37d2fd62c60d9
Author: Robert Knight <robertknight@gmail.com>
Date:   Sat Mar 22 20:09:27 2008 +0000

    Remove unecessary deleteProfile() call.  Explicitly add new profiles to the SessionManager.  Mark the temporary profile in the EditProfileDialog as hidden.

commit 53d1e3515d3408c08ba4b019b5faceffae6b0f8a
Author: Robert Knight <robertknight@gmail.com>
Date:   Sat Mar 22 20:02:28 2008 +0000

    Do not track deletion of temporary un-named profiles.

commit 55c69e15a4247319b0cff73691f072fef39684c9
Author: Robert Knight <robertknight@gmail.com>
Date:   Sat Mar 22 20:01:25 2008 +0000

    Make SessionManager::addProfile() public.  Call it automatically in SessionManager::setFavorite() if the profile is not already known to the manager.  When a profile is deleted via SessionManager::deleteProfile() mark it as hidden so that it is not recreated on disk if later changed.  Add debugging in ~Profile to track deletion of profiles.

commit 7a028bac5846cd3689e3351ab139c6f372ca173e
Author: Robert Knight <robertknight@gmail.com>
Date:   Sat Mar 22 19:41:22 2008 +0000

    Fix several signal/slot connections in ManageProfilesDialog after the SessionManager changes.

commit da7c7b4f939c17885cf0fbaa1fb93d2655021b83
Author: Robert Knight <robertknight@gmail.com>
Date:   Sat Mar 22 19:36:57 2008 +0000

    Use a helper class to pop elements from recursion guard stack when a call to loadProfile() returns rather than requiring a manual call to recursionGuard.pop()

commit 14a993d15722ec5270de708154408896fd7418b8
Author: Robert Knight <robertknight@gmail.com>
Date:   Sat Mar 22 19:12:20 2008 +0000

    Fix profiles not being loaded properly if their parent was a profile which had already been loaded.  Profile paths were not being taken off the recursion guard stack at one exit from loadProfile().

commit f946fc0cbde26cd816e3f1d172a5e5327ff3295b
Author: Robert Knight <robertknight@gmail.com>
Date:   Sat Mar 22 19:01:06 2008 +0000

    Adapt Part to the SessionManager/Profile changes.

commit d3155ba0f6dc9ec0ca34a45b5787488c055dc4bf
Author: Robert Knight <robertknight@gmail.com>
Date:   Sat Mar 22 18:55:05 2008 +0000

    Update MainWindow API documentation to reflect string key -> ref counted pointer change for profiles.

commit 5d546054c031ae6ee6915f2cc6bcf61dd4e03520
Author: Robert Knight <robertknight@gmail.com>
Date:   Sat Mar 22 18:53:16 2008 +0000

    Update SessionManager API documentation to reflect string key -> ref counted pointer change for profiles.

commit 856fdf37a5bd81711ff0db1b307b8736ef4ae34e
Author: Robert Knight <robertknight@gmail.com>
Date:   Thu Mar 20 23:43:53 2008 +0000

    Fix assert.  Fall back to current locale's codec if a null pointer is passed to Emulation::setCodec()

commit 127e894d076061b991934adf84256b651bf31724
Author: Robert Knight <robertknight@gmail.com>
Date:   Thu Mar 20 22:45:11 2008 +0000

    Replace string key for profiles with ref-counted profile pointer.

commit 53246e5bd4ffcec56ca0ff94730f9ef3946e3f4c
Author: Robert Knight <robertknight@gmail.com>
Date:   Thu Mar 20 20:50:17 2008 +0000

    First step towards removing string keys as a means to reference profiles.  Change Profile base class from QObject to QSharedData and replace all usage of Profile* with KSharedPtr<Profile>

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=788936
2008-03-22 21:06:59 +00:00
Robert Knight
087f6fc8bc Move focus proxy setting from the Part to the ViewManager. The ViewManager sets the focus proxy for its main splitter widget to the active view whenever it changes.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=785440
2008-03-14 02:01:22 +00:00
Robert Knight
c783ede701 Fix embedded terminal not gaining focus in Dolphin. Use view widget associated with active controller rather than ViewManager::activeView() may return null if the current view does not have focus.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=785435
2008-03-14 01:49:04 +00:00
Robert Knight
67c3559316 Remove Qt 4.4 version check and pre-4.4 code as qt-copy has now been updated to 4.4
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=781948
2008-03-03 23:41:38 +00:00
Robert Knight
5e5857fd6d Hide shortcut column in Manage Profiles dialog in KPart
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=758965
2008-01-09 18:13:29 +00:00
Eike Hein
5246e75c2f Add support for XComposite translucency to the Konsole KPart.
The decision to support translucent painting is made at part 
creation depending on whether the hosting application is using 
an ARGB visual and a composition manager has claimed the re-
levant X selection (via KWindowSystem).


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=758145
2008-01-07 00:35:46 +00:00