Commit Graph

45 Commits

Author SHA1 Message Date
Frederik Schwarzer
ebbdfe6968 let me introduce: typo of the year "the the"
mostly seen as
"the the" -> "the"
"the the" -> "to the"
and in its best case
"a the the" -> "" :)

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=864814
2008-09-25 15:05:22 +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
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
c5bfff3db3 Fix flicker when dropping a tab onto itself. Return after ignoring the drop event.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=803111
2008-05-02 00:59:34 +00:00
Robert Knight
dbe4605110 Draw drop indicator icon disabled if the source and destination locations are the same. Fix rect arguments to border painter calls.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=801164
2008-04-25 20:20:17 +00:00
Robert Knight
aecc847c66 Draw a thin border around the pixmap of tabs used for drag-and-drop so they can be seen more clearly against window backgrounds.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=801163
2008-04-25 20:20:12 +00:00
Robert Knight
ca7c39ffb7 Check drag source when considering whether a drag-and-drop event can be accepted.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=800632
2008-04-24 14:53:49 +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
c407950161 Pick the closest drop position instead of just the one to the left of the current tab when dragging and dropping tabs.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=797293
2008-04-15 10:56:40 +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
793657eb4a Fix tab title colors not being updated when color scheme changes.
Pass an invalid QColor() rather than the palette's foreground color
to QTabBar::setTabTextColor() to change a tab to the foreground color,
otherwise the tab continues to use the previous palette's foreground
color when a palette change occurs.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=796022
2008-04-12 10:25:17 +00:00
Dirk Mueller
b8b8230806 fix assertion failure when exiting the last tab
of a window (which crashed all other konsole windows)

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=793298
2008-04-03 15:06:43 +00:00
Robert Knight
18a5c86abe Close tabs when clicked with middle mouse button.
BUG: 137938

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=788960
2008-03-22 23:41:26 +00:00
Robert Knight
c83f99bb9b Limit tab names to a maximum of 20 characters to prevent one or two tabs
from taking up the entire width of the tab bar and requiring the user to scroll
to see more.  Longer tab titles are trimmed to the right-most 20 characters
with an elide inserted at the front.

BUG: 157201

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=786861
2008-03-18 02:39:49 +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
Laurent Montel
868b7bcc0f Fix includ
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=751637
2007-12-22 13:52:12 +00:00
Adriaan de Groot
8928e03af4 __FUNCTION__ is a gcc-ism
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=746921
2007-12-10 16:25:20 +00:00
Teemu Rytilahti
563570be9a allow changing between the tabs by using a mouse wheel, approved by Robert.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=740748
2007-11-24 02:01:45 +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
Andreas Pakulat
f412e5b5aa Merge the KConfig branch. This are the 3 main modules (+kdeadmin), which are
needed now because friday is the last BC day. The rest of the modules will
follow as fast as my laptop allows.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=721704
2007-10-05 22:21:25 +00:00
Constantin Berzan
865486938b * Get rid of an unused/duplicate property in Profile.
* Make it possible to rename a session by double-clicking on (one of) its tab(s).
* Make double-clicking on the empty tabbar area launch a new session.


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=711160
2007-09-11 15:47:38 +00:00
Matthew Woehlke
9b9eab95e1 ColorScheme.cpp: don't use deprecated KColorScheme ctor; need to decide how Konsole wants to handle state effects
ViewContainer.cpp: use new KColorScheme ctor, correctly

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=709227
2007-09-06 21:49:11 +00:00
Robert Knight
d346a2ccad Trick to try and get shell program to redraw the prompt after 'Clear Scrollback and Reset' is selected from the menu. Resize the tty window slightly larger and then back to the original size again. If anyone knows of a more correct solution, please speak up.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=708825
2007-09-05 19:17:20 +00:00
Robert Knight
37304d50ab Disable tabbed navigation in the Konsole Part. Add method to ViewManager to set navigation type for newly created containers. Fix crash when deleting a StackedViewContainer. Add note about a hack that needs to be fixed.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=708735
2007-09-05 14:35:04 +00:00
Laurent Montel
53fc966203 Adapt to new KWarning/kFatal/kDebug api
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=695870
2007-08-03 06:40:12 +00:00
Robert Knight
e12174c2ff Re-implement Ctrl+Shift+Left/Right to move the current tab left or right. Fix float->int conversion warning.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=682750
2007-07-03 10:53:44 +00:00
Robert Knight
72241ef4a6 * Comment out many debugging messages
* Experimental optimization, disable kerning since this is not required
  with the mono-spaced fonts which are used in the terminal.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=682702
2007-07-03 09:14:21 +00:00
Matthew Woehlke
44962b4ea0 adapt to KPalette->KColorCollection rename and API cleanup
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=682401
2007-07-02 15:51:07 +00:00
Robert Knight
0518355b55 Translate color names in color scheme editor and make them more presentable. Shorten menu bar option text in profile editor.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=680720
2007-06-27 02:31:30 +00:00
Robert Knight
c61f622dae Replace QTabBar with KTabBar in tabbed view container. Partly to follow the KDE guideline of using KWidgetType instead of QWidgetType and to enable easier addition of some user requested features.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=679108
2007-06-23 02:40:11 +00:00
Robert Knight
063dba1c71 Use the new KColorScheme to get 'active' color to highlight tabs when activity occurs in them. Currently uses a 50/50 blend of the normal text color and the active text color.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=677283
2007-06-18 20:38:23 +00:00
Robert Knight
17d8d12249 Fix a couple of crashes. Sync configuration information in SessionManager's destructor and fix problem with scroll optimisation. Not sure about that first one, it shouldn't do any harm, but I don't think it should be necessary either.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=670398
2007-06-01 11:24:11 +00:00
Robert Knight
835f1fe300 Change tab text color for tabs when activity occurs in them, ala. Kopete. This is different to 'Monitor for Activity' which provides more dramatic notifications via the KDE notification framework.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=668549
2007-05-26 18:23:44 +00:00
Robert Knight
d61c811755 Mistake from last commit. Fix the logic that repositions the tab bar on settings change.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=667499
2007-05-22 23:46:27 +00:00
Robert Knight
2739625dce Allow the tab bar position to be specified in the profile editing dialog. Other tweaks to the profile editing dialog.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=667497
2007-05-22 23:38:16 +00:00
Robert Knight
2fd69ce1ba Add internal support for choosing the tab bar's position with respect to the terminal display. Currently now defaults to positioning the tabs at the bottom of the screen as in KDE 3, haven't decided on what the final default setting will be.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=666706
2007-05-20 16:33:03 +00:00
Dirk Mueller
9ea3227384 include cleanup
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=663054
2007-05-09 22:23:52 +00:00
Robert Knight
33c913383d EBN fixes. Mostly copyright and implementations including their own headers first.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=662726
2007-05-09 00:01:01 +00:00
Robert Knight
1ff1400940 Put the space between the tab bar and the main window in the view container (ie. the tab container) rather than the main window - so that it disappears when the tab bar is hidden.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=661690
2007-05-06 11:52:25 +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