Commit Graph

997 Commits

Author SHA1 Message Date
Robert Knight
6771f6943d Remove classes from the KPart build which are not used by the part. Remove an #ifndef KONSOLE_PART test from the MainWindow class which is not compiled into the part.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=757280
2008-01-04 16:27:31 +00:00
Stephan Binner
534aa58660 i18n style guide fixes
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=757261
2008-01-04 15:26:42 +00:00
Stephan Binner
dfac4ca329 i18n style guide fixes, the capitalization rules are explained at
http://developer.kde.org/documentation/standards/kde/style/basics/labels.html

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=757238
2008-01-04 14:51:24 +00:00
Robert Knight
d1373c6df8 Fix bug where '%w' expansion in tab title format was not updated when the shell changed the window title until user input occurred.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756966
2008-01-03 23:05:58 +00:00
Robert Knight
a21df78248 Add a TODO about implementing support for 'Open Folder in Tabs' with SSH bookmarks.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756953
2008-01-03 22:55:21 +00:00
Robert Knight
d33c750983 Fix 'Open Folder in Tabs' action on bookmark menu.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756949
2008-01-03 22:52:16 +00:00
Robert Knight
35556fdbdd Update profile shortcuts in the menus immediately when they are changed in the 'Manage Profiles' dialog. Previously the changes did not take effect until a new window was created.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756866
2008-01-03 21:21:20 +00:00
Robert Knight
74397fa4e9 Correct API comment.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756853
2008-01-03 20:57:55 +00:00
Robert Knight
33905c6d0b Close session automatically when last view is removed.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756842
2008-01-03 20:44:16 +00:00
Robert Knight
e861ff4b06 Bump version to 2.0 for the release.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756785
2008-01-03 19:07:34 +00:00
Robert Knight
bdd94779e3 Remove Ok, Cancel buttons and replace with a single Cancel button in the 'Manage Profiles' dialog - since the changes here take effect immediately.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756709
2008-01-03 16:20:30 +00:00
Robert Knight
5f2f814443 Fix a performance problem with the email address matching filter. The email address regular expression was very general and could match very long pieces of text which were not actually email addresses. Adding word boundary markers improves this significantly. See the python xample code here for a test case: http://bugzilla.gnome.org/show_bug.cgi?id=350015
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756554
2008-01-03 12:19:27 +00:00
Robert Knight
eb3bf43968 Optimize updates when changing the search text or scrolling with the search bar active. Compute the area covered by hotspots before and after the filter processing and then update the union of those two regions.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756109
2008-01-02 19:27:44 +00:00
Robert Knight
7fe743af04 Add comments to explain one of the changes in the previous commit. Add a TODO for a warning dialog to add about deleting profiles with children when the string freeze is over.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756105
2008-01-02 19:06:10 +00:00
Robert Knight
2a090c41f4 Fix bug where search result highlights in the terminal display did not move when the display was scrolled. When the search bar is active, update the filters and the view whenever it is scrolled or the output otherwise changes. This has a perceptible (but in future fixable) performance impact when scrolling with the search bar active.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756104
2008-01-02 19:01:55 +00:00
Robert Knight
35e004fb80 Prevent profiles inheriting the Path property from their parent. Fixes bug with a new profile being automatically given the same shorctut as its parent since SessionManager::shortcut() does a lookup based on path or key match.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756061
2008-01-02 17:33:17 +00:00
Robert Knight
af3204839f Make 'New Profile' button in Manage Profiles dialog create the new profile based on the selected profile if there is a selection or the default profile otherwise.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756040
2008-01-02 17:02:26 +00:00
Robert Knight
d9cc96208f Fix Cancel button in 'Select Font' dialog having no effect. A side-effect of this commit is that the 'Select Font' dialog becomes modal. Ensure that the font preview label's text stays in sync with its font by listening for FontChange events and setting the text in response.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=755898
2008-01-02 11:17:09 +00:00
Robert Knight
2a1ca1d303 Fix bug where bold fonts applied to the terminal were drawn as regular fonts. Take the TerminalDisplay widget's font weight and underline state into consideration when deciding whether to render a particular piece of text as bold or underline.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=755882
2008-01-02 09:53:12 +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
7ba1fa2816 Fix some problems with double width characters. A while() loop was re-written in a way which introduced a dependancy on a variable (cuX) without taking into account that it was modified just before entering the loop. Introduce a temporary and move the variable assignment to after the loop.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=755308
2008-01-01 01:25:46 +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
5279d4ba4b Sync the state of the 'Show Menu Bar' action with the visibility of the menu bar when it is changed as a result of applying a profile setting.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754736
2007-12-30 16:50:58 +00:00
Robert Knight
845a29f66f Fix unexpected behaviour when changing 'Show menu bar in new window' property. This property is now only applied once to a Konsole window. Subsequent changes to the setting have no effect until new windows are created.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754731
2007-12-30 16:44:46 +00:00
Robert Knight
7d9e26be3f Temporary fix for missing icons when an activity or silence notification occurs. Use 'dialog-information' icon for both for the time being. Remove out-of-date TODO and add TODO to update icons later on and FIXME to change the notification text once the freeze is over.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754697
2007-12-30 15:42:42 +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
Pino Toscano
c26063f9c4 use the correct utilities-terminal icon
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754657
2007-12-30 13:23:51 +00:00
Robert Knight
75ac16607a Replace qWarning() with kWarning(), which provides additional information about the context of the warnings.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754559
2007-12-30 08:32:50 +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
26b549175d Apply convention of default value of 0 for parent argument to a QWidget constructor.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754313
2007-12-29 14:53:33 +00:00
Jakob Petsovits
114015c5c8 Icon naming spec compliance (code changes - KDE/):
network -> network-workgroup, or whatever fits best.
Plus some other icon name fixes.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754310
2007-12-29 14:44:22 +00:00
Robert Knight
aa4d0f1276 Hide the 'Allow programs to resize terminal window' check box in the profile editor since the feature is not implemented yet.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754304
2007-12-29 14:26:42 +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
ed54c709f8 Fix bug where Part::sendText() sent the text to every session in all terminal KParts within an application. Send the text instead only to the active session.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754208
2007-12-29 10:32:22 +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
Robert Knight
e7a91beccb The 'Send Input to All' feature is not in good enough shape at this point to include in the release. This commit disables the code which creates the menu item for it.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754011
2007-12-28 22:29:33 +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
Jakob Petsovits
f41f10913a Icon naming spec compliance (code changes - KDE/):
* edit-find-next -> go-down-search
* edit-find-previous -> go-up-search

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=753922
2007-12-28 19:10:48 +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
Robert Knight
38f170c448 Fix assert failure when splitting the view when there are tabs with no history or a very short history.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=753519
2007-12-27 18:22:59 +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
Laurent Montel
868b7bcc0f Fix includ
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=751637
2007-12-22 13:52:12 +00:00
Robert Knight
cee0ce539b Remove dead code, including the non-functional scroll lock code. Scroll lock support will be re-implemented in the terminal display widget post KDE 4.0 if there is a demand for it.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=750314
2007-12-19 06:44:43 +00:00
Robert Knight
132f9752d7 When a key combination corresponding to the 'Erase' command is pressed, append the emulation's erase character to the text sent to the terminal.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=750293
2007-12-19 02:57:32 +00:00
Robert Knight
2d532398b6 Add methods to Pty to get the erase character for the terminal. Avoid trying to set the erase character in Pty::start() if setErase() has not been called previously.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=750289
2007-12-19 02:44:51 +00:00
Robert Knight
c0b14ce83e Add support for 'Erase' command in .keytab files which echos the OS/terminal type appropriate erase character to the terminal, previously always '\b' in Konsole.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=750287
2007-12-19 02:43:41 +00:00