Commit Graph

65 Commits

Author SHA1 Message Date
Alex Richardson
a83db71590 Port to KF5/Qt5
TerminalDisplayAccessible is disabled for Qt5 currently since I don't
have any experience with accessible stuff and it is more complicated
than just changing a few includes

REVIEW: 111937
2013-08-20 23:34:35 +02:00
Alex Richardson
ab5e15b1b7 Revert "Port to KF5/Qt5"
This reverts commit 4adfbe84bd.

This work will go into a new branch instead
2013-08-13 23:26:19 +02:00
Alex Richardson
4adfbe84bd Port to KF5/Qt5
To build for KF5 pass the option -DQT5_BUILD=ON to CMake

TerminalDisplayAccessible is disabled for Qt5 currently since I don't
have any experience with accessible stuff and it is more complicated
than just changing a few includes

REVIEW: 111937
2013-08-13 21:26:59 +02:00
Kurt Hindenburg
61a8fd147d Remove old colorscheme Bold key
Since the early KDE 4.x, konsole has allowed each color entry to have
a "Bold=true|false" entry to specify whether the color should be drawn
in bold or not (there was never an UI).

The per-profile 'Draw intense colors in bold font' should be enough.
See bko 168300 for more info
2013-04-06 13:29:45 -04:00
Kurt Hindenburg
cdf2b2bc78 Switch from c-style casting to c++ casting via static_cast 2012-12-19 21:20:18 -05:00
Jekyll Wu
d8f22c821a Move class AccessibleColorScheme into its own files
Note: this special colorscheme has never been exposed and put into use,
so the new files are not involved in the building process.

Maybe that special colorscheme should just be removed, if no one now
really understands its design purpose.
2012-11-20 01:57:20 +08:00
Kurt Hindenburg
69dcbd3406 astyle fixes - spaces/{ 2012-09-02 17:28:43 -04:00
Jekyll Wu
65614265c8 Delete the useless 'Transparency=' entries when saving colorscheme 2012-06-13 17:54:59 +08:00
Jekyll Wu
001a353a46 Remove code for per-color transparency
That per-color transparency looks like a heritage of the pesudo
transparency in the KDE3 era. It is basically not used in current code.
2012-05-21 14:47:10 +08:00
Jekyll Wu
0aa98a4f97 Prefer operator= to the attach() method 2012-04-06 12:59:23 +08:00
Jekyll Wu
cc4564c311 Move related code closer 2012-04-06 12:59:23 +08:00
Kurt Hindenburg
5b083640ce whitespace and style fixes
Use 'git diff -w --ignore-all-space' to see non-whitespace changes
2012-04-05 11:08:53 -04:00
Kurt Hindenburg
397e92a9a7 -Wshadow fixes 2012-03-25 11:00:27 -04:00
Jekyll Wu
25b8b5353c Trivial style change: remove extra blank lines 2012-03-17 19:53:21 +08:00
Jekyll Wu
f4fb943132 Most of time we only need <KLocalizedString> instead of <KLocale> 2012-03-07 06:48:26 +08:00
Jekyll Wu
328aeac8a8 ColorScheme should read and write the same "Transparent" entry consistenly
It is a little surprising this inconsistency of reading "Transparent"
and writing "Transparency" has been there for a few years. That fact
implies that entry might by totally useless in current code.

Need furthur investigation.
2012-03-02 14:14:12 +08:00
Jekyll Wu
2f7a0965f5 Move class ColorSchemeMananger into its own file
class KDE3ColorSchemeReader is also moved since it is supposed to an
compatibility helpr of which class ColorScheme does not need to know,
and eventualy it should be removed
2012-02-29 22:31:56 +08:00
Jekyll Wu
328dcabe06 More consistency and more constness 2012-02-23 04:39:57 +08:00
Jekyll Wu
5a4fdd2f58 More constness 2012-02-23 04:14:51 +08:00
Jekyll Wu
846c321ebb Simplify the interface of ColorScheme::writeColorEntry()
This basically make it more like its counterpart ColorScheme::readColorEntry().
2012-02-23 02:41:47 +08:00
Jekyll Wu
9e2740db6e Trivial readability fix 2012-02-23 02:21:32 +08:00
Jekyll Wu
41d2f5f261 Move code around 2012-02-23 01:52:38 +08:00
Jekyll Wu
6f2496a980 Less magic number 2012-02-23 01:47:26 +08:00
Jekyll Wu
0331f97b60 Another try of cleaning up of #includes 2012-02-21 05:18:31 +08:00
Jekyll Wu
6b6a5944f6 Prefer foreach(...) over while(...) for simplicity and readability 2012-01-22 10:21:45 +08:00
Kurt Hindenburg
f94c82e6b0 Apply astyle-kdelibs
Over the years, the coding style is all over the place.

Use 'git diff -w --ignore-all-space' to see non-whitespace changes.
2011-12-24 01:25:10 -05:00
Kurt Hindenburg
4e5586f5c0 Revert "Add more i18nc KUIT context."
This reverts commit 05f8cc339f.

The issue is that some of the color schemes are in the KDE3 format
and some in KDE4.  This close to 4.8, I'll revert and fix later.

BUG: 286205
2011-11-12 10:37:16 -05:00
Jekyll Wu
80ec2d216b Delete some kDebug messages 2011-11-06 03:47:14 +08:00
Jekyll Wu
330de6c6f4 Fix some spelling problems 2011-11-06 03:41:20 +08:00
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