Commit Graph

28 Commits

Author SHA1 Message Date
Eike Hein
7e0561d096 Expose activity/silence monitoring in the KPart via signals & slots. 2011-08-06 17:20:43 +02: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
Trever Fischer
57aa709a5f Fix Konsole part to work with apps that use the old v1 TerminalInterface.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=947307
2009-03-31 12:21:10 +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
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
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
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
Robert Knight
fde7b8b4f5 KPart documentation clarifications.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=837722
2008-07-25 15:03:55 +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
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
Robert Knight
9cb9a23616 Make 'Manage Profiles' dialog and Scrollback menu available in the Konsole part. Use a separate xmlgui file for the KPart's menus.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754294
2007-12-29 14:00:42 +00:00
Robert Knight
12950c4109 Add a slot which sends a profile change command to the active session. This can be used to change any setting of the active session, using the same property=value semi-colon separated list format used by the konsoleprofile tool. This is experimental API and not guaranteed to be present in future KDE 4 releases.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754238
2007-12-29 11:40:31 +00:00
Robert Knight
0a6186cead Add slots to the Konsole part which can be called to show the 'Manage Profiles' or 'Edit Current Profile' dialogs. They will be non-modal and are deleted automatically when closed. This is experimental API for the benefit of Yakuake and other clients which is not guaranteed to be present in later KDE 4 releases.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754231
2007-12-29 11:13:04 +00:00
Robert Knight
1a23585d21 Make Konsole KPart emit a setWindowCaption() signal with the window caption as it is displayed in the standalone Konsole whenever it changes.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754216
2007-12-29 10:48:53 +00:00
Robert Knight
09a6a5975d Disable tabbed navigation inside the Konsole part itself. This is something which I would like to add after KDE 4.0, but it does not work well enough to be used at the moment and causes problems for applications such as Yakuake and KDevelop which provide their own tabs.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754004
2007-12-28 22:11:58 +00:00
Rafael Fernández López
78cbb7faae Now the konsole part is autodestructed when no tabs do exist. This makes the desired effect on dolphin when typing "exit" on the terminal, the dock will be hidden.
BUG: 153648

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=750276
2007-12-19 01:35:09 +00:00
Adam Treat
7dcf89b61e * Enable new tab action in konsolepart :)
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=742261
2007-11-27 17:26:56 +00:00
Arto Hytönen
d98ac69310 a lot of i18n tags and other small krazy issues fixed, nothing major
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=702784
2007-08-21 07:02:04 +00:00
Robert Knight
c4de70b6c2 Ensure that there is always at least one session running by creating a single new session when the last one is closed.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=673745
2007-06-11 00:11:13 +00:00
Robert Knight
790822f1bf Use correct parent widget for part. Update TODO.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=673742
2007-06-10 22:53:55 +00:00
Robert Knight
e9c4c9cca0 Cleanup the Session class's API. Remove redundant and unused methods, give better names to others, reorganise the order in the header file. Add checks in the view to behave properly when it is not attached to a session. Make the Konsole part's behaviour compliant with the TerminalInterface API documentation.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=663705
2007-05-12 04:55:02 +00:00
Laurent Montel
aa73943705 Add Q_INTERFACE to fix warning
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=662463
2007-05-08 08:37:52 +00:00
Stephan Binner
f9ef188694 fix pedantic compilation
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=661619
2007-05-06 05:30:26 +00:00
Robert Knight
19a29d182a Rename directories for clarity. konsole -> src , other -> data.
svn path=/branches/work/konsole-split-view/; revision=661562
2007-05-05 23:33:05 +00:00