Commit Graph

41 Commits

Author SHA1 Message Date
Kurt Hindenburg
b2a291b01f Allow 'Open Folder in Tabs' to support SSH bookmarks.
Thanks to Will Angenent for patch.

BUG: 177637

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1033653
2009-10-10 17:35:15 +00:00
Fredrik Höglund
1fcde703b1 Get rid of the ARGB visual hack, and use Qt::WA_TranslucentBackground instead.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1032123
2009-10-06 22:46:01 +00:00
Harald Fernengel
db7a1edeed use the new AA_MacDontSwapCtrlAndMeta application attribute on MAC OS X to
ensure that Konsole gets the raw and unswapped meta keys.

This enables us to use CTRL-C in konsole on the mac again :)

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1029769
2009-09-30 17:38:13 +00:00
Kurt Hindenburg
df31057755 On the command line expand ./ for -e only.
CCBUG: 202302

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1028021
2009-09-25 14:26:03 +00:00
Kurt Hindenburg
d4bb1e1a68 Correct spelling using US English.
SVN_SILENT

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=989146
2009-06-29 15:16:28 +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
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
Albert Astals Cid
1222b0e15b avoid unnecessary copies by using const & in foreach
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=800783
2008-04-24 20:41:04 +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
Friedrich W. H. Kossebau
199dc3e99a set global program icon via KAboutData, not directly
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=799282
2008-04-20 23:35:54 +00:00
Jordi Polo
deb9d1e50d The inherence chain can mistakenly be cut with an empty profile.
Use default profiles instead of empty profiles.


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=795383
2008-04-10 03:45:07 +00:00
Robert Knight
eedc4eb849 If the main window size has not been manually set by the time it is shown
(which will be the case on non-first runs) then manually resize it to
its sizeHint() to work around Qt's restriction on the relative size of
top level windows compared to the desktop size.

CCBUG: 160422

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=793970
2008-04-05 19:50:02 +00:00
Robert Knight
f73cc9c754 Add an option to the profile editor to control whether new sessions start in the same directory as the current session.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=791273
2008-03-28 22:16:02 +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
815379c7aa Re-implement --noclose command-line option which prevents
first tab from closing automatically when the command running
in it is finished executing.

BUG: 158513

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=787356
2008-03-19 03:16:36 +00:00
Robert Knight
b446a2cc37 Move application icon setup to Application class constructor. Fix a missed qWarning() -> kWarning() in main.cpp
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754691
2007-12-30 15:00:01 +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
96b912e957 Fix serious bug where starting Konsole with arguments such as -e,--workdir or -p made changes to the default profile which applied to other Konsole windows and were saved on exit. Problem fixed by creating a new hidden profile which inherits from the window's default profile and applying the property changes to that. Modify SessionManager so that hidden profiles are not saved to disk.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=753735
2007-12-28 11:09:57 +00:00
Thomas Zander
d180bad6f0 BUG: 152449
This makes sure that if you create a new tab it will always inherit the
current dir, unless the profile you use (either the default using 'new tab'
or using a profile specifically) has a directory set. In which case it will
go to that dir.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=749736
2007-12-17 18:48:26 +00:00
Robert Knight
e37fe69431 * Fix problem where selection background and other text with non-standard background
colors was not readable with terminal display transparency enabled.

* Transparency works again, but requires --enable-transparency argument passed to command-line
  due to artifacts that appear otherwise.
  Re-enable the code which searches for a suitable display, visual and colormap when
  starting the application in an environment which supports compositing.  Still
  need to resolve with other developers exactly how this will be done in KDE 4.0

* Fix problem where flow control warning banner was always displayed when 
  Ctrl+S, Ctrl+Q were pressed, regardless of whether flow control was 
  actually enabled.

* Fix artifacts when scrolling whilst the flow control warning banner was 
  visible.  Scrolling optimisations in the terminal display are disabled whilst
  the warning banner is being shown.

* Fix links which wrapped over more than one line being cut-off at the end of the line
  (eg. when parsing "http://www.kd <END OF LINE> e.org" the link address would be reported
   as "http://www.kd" instead of "http://www.kde.org").  The link underlining is not yet 
   corrected, only the part of the link on the first line is highlighted.  

* Implement code to load and use a built-in keyboard translator for fallback purposes
  in case no .keytab files exist.  The actual translator text (in DefaultTranslatorText.h)
  is currently incomplete. 

* Replace hard-coded colors for flow control warning label with colors from
  KColorScheme

* Replace hard-coded colors in incremental search line edit when a match is not found
  with colors from KColorScheme

* Remove un-used variables in TerminalDisplay class, rename enums to match
  CamelCase naming style used elsewhere.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=748936
2007-12-15 23:07:20 +00:00
Robert Knight
fc94b88311 Change the 'workdir' argument to set a property on the default profile rather than changing the directory argument for the first new session in the new window or tab. Refactor the command-line argument processing, split the processing of groups of commands into their own functions.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=733659
2007-11-07 01:32:33 +00:00
Laurent Montel
8292c89d21 Readd workdir to allow to use konsole servicemenu
but I don't know why "setWorkingDirectory" doesn't work

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=733608
2007-11-06 20:56:59 +00:00
Robert Knight
ec72a6d51d Add --new-tab command line option which starts new instance in a new tab rather than creating a new window.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=700656
2007-08-16 05:48:46 +00:00
Robert Knight
95d479b601 Support for -e command line argument to specify a custom command to run when starting Konsole. Also added a -p command line argument which can be used to change almost any other option for that Konsole instance using the same syntax as the konsoleprofile tool. Update TODO.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=700451
2007-08-15 15:29:19 +00:00
Laurent Montel
5be4ac86c7 Compile
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=684818
2007-07-07 09:32:58 +00:00
Alexander Rodin
3a6c0d6410 svn path=/trunk/KDE/kdebase/apps/konsole/; revision=684802 2007-07-07 08:33:07 +00:00
Robert Knight
573f763624 * konsoleprofile now only affects an individual session rather than modifying
all sessions using the same profile as the current tab.

* Re-implement support for underlined text

* Use a sensible size for the Manage Profiles dialog by default

* Tidy up SearchHistoryTask 
    - Remove unnecessary setMatchCase(), matchCase(), setRegExp(), regExp() methods.
    - Implement highlighting the search box to indicate search success correctly.
      (Previously did not work with 'highlight matches' turned off)

* start.cpp -> main.cpp for consistancy

* Remove old startup-notes

* #ifdef out the transparency setup code on startup, relevant code is now in 
  qt-copy instead.

* API documentation improvements in SessionController

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=682279
2007-07-02 10:17:14 +00:00
Robert Knight
5872b79ef1 Replace old key translator with new key translator. Lightly tested. Fix some bugs in the new translator's decoding.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=676512
2007-06-17 01:01:53 +00:00
Robert Knight
df7ecb99bb Disable translucent windows temporarily (again) while I work on other things.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=675338
2007-06-14 01:59:46 +00:00
Benjamin Reed
9b393e6ba2 fix build on non-x11
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=671173
2007-06-04 00:14:52 +00:00
Robert Knight
942ecb745c Make new sessions start in the same directory as the previously active session. Does not apply when creating a new tab from a specific profile.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=670566
2007-06-02 02:17:14 +00:00
Robert Knight
3f1f8cac41 Add command line options to list available profiles and specify default profile for a particular Konsole instance.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=670562
2007-06-02 01:19:57 +00:00
Robert Knight
ffa03ca138 Make profile shortcuts work for favorite profiles (others are currently ignored).
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=667504
2007-05-23 00:08:03 +00:00
Robert Knight
8e72dd41ce Fix primary/alternate shortcuts for next/previous tab (they were the wrong way round). More appropriate close icon in search bar. Make Quit menu item close only the current window, not all Konsole instances. Change the default shortcut for the Quit menu item to Ctrl+Shift+Q. The standard Ctrl+Q is reserved for use by terminal applications. Remove references to Application in MainWindow class.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=666372
2007-05-19 17:08:56 +00:00
Robert Knight
794e57b9a4 Make use of window transparency setting in the color scheme when compositing support is available.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=663884
2007-05-12 15:35:39 +00:00
Robert Knight
33e1a53cf8 Fix crash when changing color scheme if none in the list were previously checked. Add API documentation.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=663366
2007-05-11 00:22:53 +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
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