Commit Graph

84 Commits

Author SHA1 Message Date
Kurt Hindenburg
ba1dfb1014 Allow option for triple-click to select from current word to end of line.
FEATURE: 164680

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1005970
2009-08-02 18:36:54 +00:00
Robert Knight
1288f72d94 Correct tab cycling direction for consistency with other applications when using Ctrl+PageUp/PageDown. Patch by Jacob Welsh. BUG:199905
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=998432
2009-07-17 16:28:02 +00:00
Albert Astals Cid
e3f06d2beb switch to next tab and not previous on tab close like all other kde apps do
Approved by Robert Knight
BUGS: 183483

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=996026
2009-07-13 18:06:59 +00:00
Kurt Hindenburg
b35b3e04f3 Implement org.kde.konsole.Konsole methods (minus activateSession).
Thanks to Arno Töll for the big dbus patch that I'm breaking into smaller pieces.

CCBUG: 169024

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=952482
2009-04-12 00:27:19 +00:00
Eike Hein
02c0e30ef3 Disable some more actions for the KPart that have no use in
it and interfere with applications using the KPart, and add
a lengthy FIXME about why the current approach for this is
insane.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=949615
2009-04-05 14:56:39 +00:00
Robert Knight
dd9df43b44 Remove emacs mode information from the bottom of some source files.
If this information is put anywhere it should be in a single file instead
of duplicated for each file.  In fact, it shouldn't be needed at all since
we have the same rules on tabs and tab sizes as most other parts of kdebase


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=946369
2009-03-29 11:12:57 +00:00
Kurt Hindenburg
0f441a15d9 An initial commit to get a working DBus interface working.
CCBUG: 169024

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=941837
2009-03-20 14:42:59 +00:00
Kurt Hindenburg
a0f187a785 Allow the disabling of blinking text.
BUG: 182414

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=932642
2009-02-27 05:47:30 +00:00
Alexis Ménard
bb2a6dc5fa Since we had already a QPointer to guard the deletion of the ViewSplitter we have to check on deletion function if the ViewSplitter is not dead.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=907301
2009-01-07 20:37:43 +00:00
Michael Jansen
8487a9255c Use KActions with kxmlgui. Not QActions.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=869034
2008-10-07 22:40:58 +00:00
Robert Knight
ef3e43e11d Initial implementation of session management in Konsole.
Patch from Stefan Becker <stefan.becker@nokia.com>

Thank-you very much Stefan!

CCBUG: 152761


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=867323
2008-10-03 10:38:50 +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
Aaron J. Seigo
569235573d put the search bar on the correct side of the tabs .. INSIDE them ...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=860035
2008-09-11 20:03:03 +00:00
Robert Knight
8f5f805112 Add keyboard actions for switching to the Nth tab
(where N is from 1 to 10)

Shortcuts must be assigned via Settings -> Configure Shortcuts to use.

BUG:156636

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=837725
2008-07-25 15:04:51 +00:00
Robert Knight
edcc8bc97b Fix "Show 'New Tab' and 'Close Tab' buttons on tab bar" setting not being
applied correctly on startup.

Test for the tab bar being explicitly hidden with isHidden() rather than just
isVisible() which will return true if the setting is applied before the 
container widget is shown.

BUG: 162420
CCBUG: 157015


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=810949
2008-05-21 22:19:43 +00:00
Robert Knight
730281a5c8 Remove close buttons on individual tabs and replace with a single close button on the
right of the tab bar when the "Show 'New Tab' and 'Close Tab' buttons on tab bar" option
is enabled - which brings tab management back to the way it was in KDE 3.    

Several users (esp. those working with laptop trackpads) were having problems with
accidentally closing tabs.  It seems KTabBar's close buttons need some refinements before
they can be used in the terminal.

CCMAIL: wstephenson@kde.org


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=809838
2008-05-19 16:19:05 +00:00
Robert Knight
34a9e7ec42 * Add option to show new tab button with delayed popup menu on tab bar.
Go to Settings -> Edit Current Profile -> Tabs page and tick "Show 'New tab' button in tab bar"

  This was added for the benefit of users with existing habits from KDE 3 and is not
  shown by default.

* Add close buttons on tabs using the new style ppenz added to KTabBar
* Add confirmation when closing via middle-click/close button if a program other than a shell or
  nested shell is running in the foreground of that session.

BUG: 157015

Squashed commit of the following:

commit 54a5db9c31a5527e44d7358b30587c28bab965bc
Author: Robert Knight <robertknight@gmail.com>
Date:   Fri May 2 01:48:05 2008 +0100

    UI text correction: 'on tab bar' -> 'in tab bar'

commit ed8e70238e2cc4240f8334cd091fa2707785a908
Author: Robert Knight <robertknight@gmail.com>
Date:   Fri May 2 01:46:42 2008 +0100

    Do not show the confirm-on-close prompt if the foreground program is another shell.

commit 010370c12950a532d93c99d0983c74c47e26ad07
Author: Robert Knight <robertknight@gmail.com>
Date:   Fri May 2 01:40:05 2008 +0100

    Add a confirmation which is displayed when closing a tab via middle-click / close button if the program has an active program running in the session (other than the shell itself).

commit 49812e26e5fd8c44dd01f1a6a4c0e7271c6366fd
Author: Robert Knight <robertknight@gmail.com>
Date:   Fri May 2 01:25:29 2008 +0100

    Add confirmClose() method to ViewProperties which is can be re-implemented to prompt whether to close the session.  Make the presence of the close button in the ViewContainer dependent on a QuickCloseView feature being enabled.

commit ece191ad5ad550af47cd2ca0bc75a517119e7189
Author: Robert Knight <robertknight@gmail.com>
Date:   Fri May 2 01:09:17 2008 +0100

    Show 'close' button on tabs using the new close button style added to KTabBar by ppenz.

commit f975f04c993effdd2afef588c5f765192b6fab5a
Author: Robert Knight <robertknight@gmail.com>
Date:   Fri May 2 01:03:54 2008 +0100

    Better UI text for 'Show New Tab' option.

commit 642c5b1d07cd2288c78446efe395da050730decb
Author: Robert Knight <robertknight@gmail.com>
Date:   Thu May 1 21:04:47 2008 +0100

    Sync 'new tab' tab bar menu actions with profile list.

commit c6c556980e43afcb1bb5fdfaaa9dd7e12e524688
Author: Robert Knight <robertknight@gmail.com>
Date:   Wed Apr 30 23:01:34 2008 +0100

    Hook up actions in new tab popup menu so a new tab is created with the right profile when an action is chosen.

commit dece8a23ff101dda47d495ba38e57e55059c4e63
Author: Robert Knight <robertknight@gmail.com>
Date:   Wed Apr 30 22:51:28 2008 +0100

    Apply ShowNewTabButton profile property to current view container.

commit e244a95512dc535198fa69c3afe34b597402de15
Author: Robert Knight <robertknight@gmail.com>
Date:   Wed Apr 30 22:50:57 2008 +0100

    Add support for enabling/disabling a 'quick new view' widget in view containers.  Add an implementation of it (quick new tab button) in TabbedViewContainerV2

commit 9fdc2e450aefb9b602f8fb6b66d3508e6750531b
Author: Robert Knight <robertknight@gmail.com>
Date:   Wed Apr 30 22:50:22 2008 +0100

    Hook up 'Show new tab button' UI option.

commit 7326e6dccbc095f0f784fd6f4da532f250ca5437
Author: Robert Knight <robertknight@gmail.com>
Date:   Wed Apr 30 22:50:04 2008 +0100

    Add ShowNewTabButton profile property and set a default for it (false)

commit 273f85f0d21d8b755712c67c50a939400f15a169
Author: Robert Knight <robertknight@gmail.com>
Date:   Wed Apr 30 21:22:09 2008 +0100

    Add checkbox for toggling new tab menu button.

commit 200744ce620cd6bd9a9d1791e62863c618921788
Author: Robert Knight <robertknight@gmail.com>
Date:   Wed Apr 30 21:21:33 2008 +0100

    Formatting. Remove extra lines.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=803112
2008-05-02 00:59:47 +00:00
Robert Knight
204d2bcc73 SVN_SILENT - Formatting
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=803110
2008-05-02 00:59:30 +00:00
Robert Knight
f0b1f861cb More predictable application of tab bar settings in profile. Tab bar settings are taken from the first view opened in a new window (as with the menu bar) and updated only when applying different settings explicitly in the profile editor.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=802427
2008-04-29 11:16:47 +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
971a5315f9 Remove debugging messages.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=800628
2008-04-24 14:52:39 +00:00
Constantin Berzan
7c0e11f649 Re-add ability to open a new tab by double-clicking the tab bar.
I don't know why this was removed; please tell me if I'm interfering.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=799364
2008-04-21 11:13:57 +00:00
Robert Knight
e9fe2b1b11 Support drag-and-drop of tabs between windows and containers, with drop indicator
arrow and 'torn-off' tab while moving.

(Drag and drop between windows is supported only for windows within the same process,
which will be all windows opened from a GUI)

Some of this functionality could be moved to kdelibs / KTabBar for the benefit of other
applications.

BUG: 75653

Squashed commit of the following:

commit 1e5b628b74f4c7182b1aed159088f0d449bf6f1f
Author: Robert Knight <robertknight@gmail.com>
Date:   Tue Apr 15 11:32:04 2008 +0100

    Set drop indicator label to same size as pixmap.

commit 59ad9200465cfb76651ce81abd3ba20e2fdd3067
Author: Robert Knight <robertknight@gmail.com>
Date:   Tue Apr 15 11:14:41 2008 +0100

    Adjust drop indicator for north and south tabs.

commit 01ba5bca9457bc19156f5a87ad6967fac7cc3c1e
Author: Robert Knight <robertknight@gmail.com>
Date:   Tue Apr 15 11:06:52 2008 +0100

    Display a drop indicator arrow at the position where the tab will be dropped.

commit 137ade01d70d75d26f3c14624ec2c096c8c50eba
Author: Robert Knight <robertknight@gmail.com>
Date:   Tue Apr 15 10:01:28 2008 +0100

    Update detach view action state when moving tabs between windows.

commit 412c2d16844afda3f0427a5583d653c2214722fb
Author: Robert Knight <robertknight@gmail.com>
Date:   Tue Apr 15 09:56:37 2008 +0100

    Move mimetype definition to ViewProperties

commit dc31499351ef564cfe75c25124c3549b5dc75e16
Author: Robert Knight <robertknight@gmail.com>
Date:   Tue Apr 15 02:26:03 2008 +0100

    Hack around crash which can occur after a drag-and-drop tab move causes a view container to be destroyed, taking the QDrag object with it.  Fix this by setting the QDrag's parent object to 0 before calling removeView().  This leaks the QDrag however.

commit df057fd06988bcd2b4c0f21e1d746543e7cfe1c5
Author: Robert Knight <robertknight@gmail.com>
Date:   Tue Apr 15 02:24:21 2008 +0100

    Fix jumps based on uninitialized variables.

commit 864bfcc2e8c63e2c8a9b6e9c96bc4d90d3dacd7e
Author: Robert Knight <robertknight@gmail.com>
Date:   Tue Apr 15 00:20:12 2008 +0100

    Make the initiator of the tab drag event remove the view.  Change newViewRequest() -> moveViewRequest().  Do not delete the view if the tab is dropped onto another application which blindly accepts it.

commit b922858420d4b61ad2727c64bc885042280d65f4
Author: Robert Knight <robertknight@gmail.com>
Date:   Mon Apr 14 23:29:18 2008 +0100

    Add support for drag-and-drop moving of tabs between any two tab bars in the same process.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=797287
2008-04-15 10:37:55 +00:00
Robert Knight
3ddffbd214 Re-implement 'Send Input to All' (now Edit -> Copy Input To...)
Improvements in the KDE 4 version:

- Input can be copied to all other sessions or only a subset of sessions,
  selection is via a filter-able list which appears when 'Copy Input To...' is clicked.
- Input can be sent from a tab in one window to a tab in another window
  (all sessions in all windows are displayed in the filter window)

BUG: 152072
BUG: 77682

Squashed commit of the following:

commit 3184e1958d3aa7e7574081df32814dbe44591c9e
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 19:24:22 2008 +0100

    Remove debugging messages.

commit 31afd9b2a3a327ca3e43deff47415de41a1ad74e
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 19:16:33 2008 +0100

    Copy input dialog.  Hide 'Number' column and header.  Show the check box in the title column.  Focus the search filter before showing the dialog.

commit 8c74e736d322e74d7af812a14500d748e748a224
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 19:03:59 2008 +0100

    Remove sessions from the internal checked/fixed sets when they are removed.  Fix crashes if sessions exited while SessionController was showing a dialog for that session.  Add QPointer<T> guards around the dialog exec() methods.

commit e4085069c2ff8cedb987639f50b73a3c679319f6
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 18:44:40 2008 +0100

    Remove sessions from the SessionGroup and SessionListModel when they terminate.

commit 29db3a3dd84f392ee333918e261bd6bcd75fd062
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 18:39:24 2008 +0100

    Use an extended rather than single selection in CopyInputDialog

commit 3f93507405053c84e09337225fa6e2a582776264
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 17:54:22 2008 +0100

    Copy Input Dialog:  Show tab text in the Title column.  Show clear button in filter line edit.

commit 0619f7ad72a1a346118a0174e5aee01ce94ddc52
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 17:40:07 2008 +0100

    Copy Input Dialog:  Add buttons to select and deselect all visible sessions.

commit 126afb3d394894a0325c5772fb32a25380932c44
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 17:23:07 2008 +0100

    Show the master session as checked and disabled.

commit c559bd5f5bcc59adecc3f29ee5b16200adb37b09
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 17:20:40 2008 +0100

    Create a SessionGroup in the SessionController when copyInputToAll() is called and use the CopyInputDialog to allow the user to choose which sessions the current one copies to.

commit 64c12e58a582a17b5cdeddcc8f9df7a89885f9e5
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 17:19:47 2008 +0100

    Display session list with check boxes and filter to select sessions to copy input to.  Show master session as a disabled, checked item.

commit 43eb5ccdfc768b42c5e650b6e56d1e1120ab5c5b
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 17:19:06 2008 +0100

    Add header data and Session* pointer to items in SessionListModel.

commit a8236a6658e1540a924aa6467dc90aeed346a0be
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 17:18:28 2008 +0100

    Remove connection to removed slot.

commit 03990fa244159b50152cc721a0fe4e403551d47c
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 17:17:54 2008 +0100

    Make SessionGroup take a QObject* parent argument in the constructor.

commit e2f91001c09a8422fb44ad58cf95f8dcba22c063
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 15:25:26 2008 +0100

    Add CopyInputDialog to build.

commit 3b33e1d6abdde56bbafd2bbd64c89c008a41d096
Author: Robert Knight <robertknight@gmail.com>
Date:   Sun Apr 13 14:32:36 2008 +0100

    Add header and implementation files for 'Copy Input To' dialog.

commit 9ebc36e3f09865f29702768cbb17279054e8cb4c
Author: Robert Knight <robertknight@gmail.com>
Date:   Thu Apr 10 07:04:48 2008 +0100

    Add a dialog for selecting sessions to copy input to.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=796545
2008-04-13 18:49:20 +00:00
Diego Iastrubni
60f0a0a59e New backport (??) from KDE3: now each profile can enable/disable BiDi rendering in the display. We need this since many console based application (vim, emacs, fribidi etc)
implement their own BiDi algorithm. There is also another reason: comatibility. All terminals are *not* aware of the BiDi issue and do not re-order the chars
(gnome-terminal, xterm, konsole, etc). It is possible to enable the BiDi rendering on each profile, so this is not a huge lost. I am still missing the keyboard shortcut to
quickly enable/disable it (alt+control+b in konsole3), but I am not sure what is the best way for doing it.

A quick note about the implementation:
In QPainter3, there was an option to draw a text and tell the painter "please do not implement BiDi". In QPainter4 (up to 4.4) there is no such option. I am forcing it by
drawing  "painter.drawText(rect,0,QChar(0x202D)+text)" (that is &LRO;), and it does seem to work, but I find it kinda "hackish". I will open a task in Trolltech and
request that new feature. Hopefully by Qt4.5/KDE4.2 I will be able to change the implementation.


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=791374
2008-03-29 10:35:29 +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
d0cdefff44 Disable another action not relevant to the KPart.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=787503
2008-03-19 12:03:44 +00:00
Eike Hein
c97f29715c Disable some more actions not relevant to the KPart.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=787302
2008-03-18 22:29:39 +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
cffea28032 Remove debugging text.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=781733
2008-03-03 17:00:30 +00:00
Robert Knight
08ec730013 Reduce code duplication. Change Profile::property(property).value<T>() to Profile::property<T>(), introduce helper ShouldApplyProperty class to simplify SessionManager::applyProfile()
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=781009
2008-03-01 20:43:07 +00:00
Eike Hein
04d9dc5b32 Disable some (unused) actions for the KPart to avoid shortcut clashes
between it and KPart users. Qt 4.4 appears to be more vigilant when it
comes to balking at ambiguous shortcut overloads than 4.3 was. 

CCBUG:157667
CCMAIL:riccardo@kde.org

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=779983
2008-02-27 18:07:29 +00:00
Robert Knight
65f2047957 Remove accelerators from tabs
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=765849
2008-01-24 19:27:30 +00:00
Robert Knight
31ac6bac16 Fix crash on exit in embedded terminal if a session exits after the main widget has been destroyed.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=761904
2008-01-15 16:30:51 +00:00
Robert Knight
0e206c9fb9 Show terminal size on resize. Change default bell mode to 'System Notification' so that 'Configure Notifications' works.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=760957
2008-01-13 19:41:22 +00:00
Robert Knight
f71385da7d Update 'Detach View' menu item enabled state correctly after detaching the last view in a container.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=757342
2008-01-04 18:57:28 +00:00
Jakob Petsovits
c5f7f51420 Icon naming spec (code changes - KDE/):
* view-left-right -> view-split-left-right
* view-top-bottom -> view-split-top-bottom

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=755418
2008-01-01 14:52:38 +00:00
Robert Knight
0d87b3132b Fix bug where KPart did not emit setWindowCaption() signal until it gained focus. Call controllerChanged() in ViewManager::createController() so that an activeViewChanged() signal is emitted when the first controller in the view manager is created. Fix ViewManager::controllerChanged() to only emit an activeViewChanged() signal if the new and previous controllers are different. Remove the checks for this from the MainWindow and Part slots connected to this signal.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=755284
2007-12-31 23:17:37 +00:00
Robert Knight
46cfc108d3 * Replace all usage of qDebug() with kDebug(), since kDebug() provides information about
which part of the code the message came from and allows filtering of output
  using kdebugdialog
* Remove explicit creation of singleton classes SessionManager,ColorSchemeManager and
  KeyboardTranslatorManager and automate it with K_GLOBAL_STATIC.
  This ensures that the singleton destructors are called appropriately by KPart clients
  when they unload the libkonsolepart library.


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754334
2007-12-29 16:07:31 +00:00
Robert Knight
619f44dd8d Fix crash when attempting to start the program in the Konsole part before the widget is shown and given focus. Check SessionController* pointer in the KPart before using it. When creating a controller in the ViewManager, set it as the active controller if there is no active controller at present.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754203
2007-12-29 10:26:23 +00:00
Robert Knight
ccaeea481a Fix bug where multiple Konsole KParts within one application would not work. Part::activeSession() was always returning the first session from the shared SessionManager. In the second KPart, activeSession()->isRunning() would always return true even when the session for that part was not actually running, so the session was never started.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754194
2007-12-29 10:12:48 +00:00
Harald Fernengel
b5c91a6658 Make anti-aliasing of fonts configurable. Anti-Aliased fonts just look bad on konsole on OS X with the default font, so I want to have a possibility to switch it off. No new user-visible strings were introduced, to switch off anti-aliasing, write "AntiAliasFonts=false" into your $KDEHOME/share/apps/konsole/Shell.profile, in the "Appearance" section.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=752393
2007-12-24 10:22:17 +00:00
Robert Knight
e7d9da81bd Enable 'Detach View' action when there is more than one container OR more than one view in the current container.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=748993
2007-12-16 06:17:00 +00:00
Robert Knight
4b29319792 Change default triple click behaviour to select the whole line, rather than just that forwards of the cursor. This is in line with KDE 3. Replaced the API which controls this behaviour in the TerminalDisplay class with a clearer one.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=748979
2007-12-16 03:55:21 +00:00
Pino Toscano
d60abcd5f5 icon renamings:
- view-remove -> view-close

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=734965
2007-11-10 15:47:47 +00:00
Robert Knight
88c681d05d Attempted fix for when changing the profile of a tab after making use of the split-view feature. Dangling pointers were being left in ViewManager::_sessionMap (even though _sessionMap previously stored QPointer guarted ptrs rather than raw pointers). Call removeContainer() to remove views cleanly from the _sessionMap hash when the 'Close Other Views' action is triggered rather than simply deleting the view container directly. Store raw pointers in _sessionMap variable since QPointer<> does not work here.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=734008
2007-11-07 20:25:19 +00:00
Hamish Rodda
5183376f1e Remove associateWidget that was too effective (obviously not working before, the patched version prevented the actions from being invoked)
Commit results of setShortcut() audit

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=730686
2007-10-29 10:46:55 +00:00
Pino Toscano
e9751c4ea2 icon renamings:
- tab-breakoff -> tab-detach
- tab-remove -> tab-close

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=727874
2007-10-22 00:11:17 +00:00
Thomas Reitelbach
7b965c4ca1 some i18n clarifications
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=726707
2007-10-18 17:02:41 +00:00
Anders Lund
e7d5f41ec1 Handle focus better by setting a focus proxy. This way setFocus() and hasFocus() etc works in a meaningful way ;)
Approved by Robert Knight.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=721467
2007-10-05 09:54:55 +00:00