Commit Graph

36 Commits

Author SHA1 Message Date
Jekyll Wu
cf92cece2b Remove leading white spaces in blank lines to make them really empty 2011-11-05 07:29:21 +08:00
Kurt Hindenburg
05f8cc339f Add more i18nc KUIT context. 2011-10-05 09:09:00 -09:00
Kurt Hindenburg
6ac741878f Add more i18nc KUIT context. 2011-10-05 04:28:32 -09:00
Jekyll Wu
607e2d44d0 Define the default debug area and no more "kDebug(1211)". 2011-09-27 23:01:38 +08:00
Jekyll Wu
de61d40c63 Include Qt headers in the form of "#include <Module/Class>" 2011-09-06 06:42:42 +08:00
Kurt Hindenburg
087f67e4fc Allow an image to be set as the background in the terminal.
Restore the KDE3 option to have a background image in each session.

Patch by Alexandre Becoulet <diaxen@free.fr>
BUG: 157882
FIXED-IN: 4.8
2011-08-07 18:44:16 -04:00
Kurt Hindenburg
c3c643c5bf s/Warning/Debug - no reason to display this message as a warning. 2011-05-08 20:56:18 -04:00
Kurt Hindenburg
6b2440e2c2 comment out kDebugs - change some to kWarnings
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1148447
2010-07-10 17:22:28 +00:00
Kurt Hindenburg
5543703daa Revert this until I figure how to handle translagedColorNameForIndex returns
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1086529
2010-02-07 15:41:30 +00:00
Kurt Hindenburg
f0312db1cf Add i18n context to strings
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1086507
2010-02-07 14:29:48 +00:00
Friedrich W. H. Kossebau
1cf6ef9365 changed: made static const data symbols really static const
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1080302
2010-01-26 02:57:09 +00:00
Kurt Hindenburg
8aa7acde0b Use QLatin1String instread of const char *
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=952497
2009-04-12 02:02:20 +00:00
Andrew Coles
f12350c064 Simple minor change: replace
QString foo;

foo.replace("bar", QString());

with:

foo.remove("bar");

Is identical (the API docs note this too) but eliminates a redundant QString construction.


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=930634
2009-02-23 22:45:09 +00:00
Robert Knight
28b84379b2 Make the 'bold' property for each color entry in the current terminal palette a tri-state which allows text drawn in that color to be forced to bold, non-bold (normal) or to use the current formatting specified by the terminal application.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=863401
2008-09-22 01:44:06 +00:00
Robert Knight
ea624b4598 Fix assert failure if a KDE 3 color scheme called ".schema" is found. Print a warning instead.
CCBUG: 162154


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=808593
2008-05-17 00:21:59 +00:00
Robert Knight
33ccc17c86 Fix assert failure when handling invalid KDE 3 color scheme data files.
Just report a warning instead.

CCBUG: 162154


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=808591
2008-05-17 00:16:29 +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
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
8171d4872f * Do not remove color schemes / key bindings from list if the
call to delete the file fails.
* Make deletion of color schemes, key bindings and profiles
  atomic operations from the point of view of outside classes.
* Fix various warning produced by the -Woverloaded-virtual flag.


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=746168
2007-12-08 01:51:37 +00:00
Robert Knight
9863b5508b Bug fixes for the Appearance and Key Bindings tabs in the
Edit Profile dialog:

* Fix selection of color schemes and key bindings not being
  remembered after the color scheme/key binding list is changed
  (eg. due to adding a new color scheme or editing an existing one).

  This also fixes the preview not being updated when mousing outside 
  the list after adding a new color scheme.

  -> After updates to the color scheme / key bindings list the model
     was being deleted and a new model was created.  This caused the
     selection model to be changed without the signal-slot connections
     from the selection model to the dialog being re-established.

     This commit changes that so that the model is not replaced but
     simply cleared when the color scheme / key binding list is updated.

* Disable the Edit, Remove buttons on the Appearance and 
  Key Bindings tabs when there is no selection.
* Fix crash when clicking 'New' button on the Appearance tab
  if the color scheme list is empty.
* Fix crash when loading the Appearance tab if the color scheme
  associated with the profile does not exist
* Fix crash when loading the Key Bindings tab if the key binding
  associated with the profile does not exist
* Fix crash when attempting to load a color scheme with no name, 
  instead the color scheme is simply not loaded.
* Fix all colors except one being set to black when making changes 
  to a color scheme which was based on the default fallback color scheme.

  -> When creating a new array inside the ColorScheme class to hold color
     entries, initialize its elements with values from the default color
     array.

* Use qWarning() instead of qDebug() to print out error message if attempting
  to delete a color scheme fails.

* Minor formatting changes in Session.cpp,SessionController.h


Known bugs introduced by this commit:
    
* Attempting to create a new keyboard translator when no existing translator
  is selected will crash because KeyboardTranslator::defaultTranslator() has
  not been implemented yet.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=746071
2007-12-07 18:42:36 +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
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
554d6bb83a Add a simple one-check box option to the color scheme editor to vary the background color randomly for each tab. The results are not great yet because the algorithm which randomizes the colors needs work.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=698080
2007-08-09 02:17:09 +00:00
Robert Knight
75c7d9919e Begin work on an accessible color scheme which uses the system-wide colors provided by KColorScheme. Changed the default color scheme to 'Linux' because (a) it was the most popular amongst users in the survey and (b) having used it for a couple of months in KDE 4 it is much more comfortable to use for long periods of use than the glare of a white background. Updated TODOs with a few bugs that need fixing.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=690421
2007-07-21 01:33:30 +00:00
Robert Knight
808d9ed686 Set the COLORFGBG environment variable in new sessions to indicate to terminal programs whether the terminal has a light or dark background. This allows programs such as Vim to automatically pick appropriate colors when a Konsole session has a light or dark background. The value of 'COLORFGBG' is not strictly accurate, instead it approximates the current color scheme as 'black on white' or 'white on black' - but this covers the most important need'
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=686658
2007-07-11 22:33:43 +00:00
Robert Knight
8ac498d34c i18n fixes from Stefan Asserhall.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=685630
2007-07-09 10:54: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
Robert Knight
50fb0ef4c6 Support for per-session randomized color schemes. Mainly useful to allow each new session (from a particular profile) to have a different background color to make them easier to identify at a glance. Randomization is specified in the color scheme as the maximum amount of difference in hue, saturation and value which a color is allowed to be randomly changed by. No GUI controls for this yet. Added a 'Black on Random Light' color scheme to make use of this facility out of the box.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=682403
2007-07-02 15:58:19 +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
726c106f58 Move Character class to its own header.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=677276
2007-06-18 20:15:26 +00:00
Robert Knight
44a93fd291 Fix color scheme loader saving a copy of existing, unmodified KDE 4 color schemes to disk. Fix field name in provided Linux color scheme.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=676106
2007-06-16 01:25:32 +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
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