Commit graph

188 commits

Author SHA1 Message Date
Ivailo Monev
671d45fe1d generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-22 04:29:48 +03:00
Ivailo Monev
c31499dd07 generic: drop messages handler support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-20 20:17:56 +03:00
Ivailo Monev
db64ed4d47 kdeui: fix KKeyboardLayout translations context
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-05 19:58:00 +03:00
Ivailo Monev
2916de09fb kdecore: rework time zones translation
there were some stale zone name comments marked for translation, the
scopping script (probably purposely) did not remove such

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-05 19:00:37 +03:00
Ivailo Monev
75b9cfddd3 generic: const-ify private data pointers where copying is disabled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-23 06:49:59 +02:00
Ivailo Monev
84ea11af90 kdeui: simplify KDoubleValidator
the validation now depends entire on the locale, top and bottom values
(i.e. on how QDoubleValidator validates)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-14 19:59:38 +02:00
Ivailo Monev
7ed5ec71eb kdeui: add the program icon name to the crash data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-08 18:32:37 +03:00
Ivailo Monev
8cb49b86db kdeui: replace entities in rules from scoop-rules.py script
"< >" is a placeholder I am assuming, question is for what?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-08 04:45:38 +03:00
Ivailo Monev
189599adee kdeui: sort KKeyboardLayout table entries by description
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-05 22:55:21 +03:00
Ivailo Monev
94a7028fdb kdeui: KKeyboardLayout review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-05 18:54:44 +03:00
Ivailo Monev
ce1dcbb552 kdeui: new KKeyboardLayout class
KKeyboardLayout along with Solid::Input are to be used not only in a
reimplementation of the keyboard plasma applet but also potentially
for a software input panel (QEvent::RequestSoftwareInputPanel and
QEvent::CloseSoftwareInputPanel handler)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-05 18:15:25 +03:00
Ivailo Monev
e418ca826b kdeui: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 18:53:21 +03:00
Ivailo Monev
bdd45bac0e kdeui: filter sound files with unknown extension in KNotificationConfigWidget::setNotification()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-28 19:08:35 +03:00
Ivailo Monev
a5f571b76b kdeui: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 23:17:24 +03:00
Ivailo Monev
4a15907fbb kdeui: remove unused static g_bMacLabels variable
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 21:03:04 +03:00
Ivailo Monev
217c3c1f66 kdeui: remove unused Mod, SymVariation and SymName structs
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 21:00:39 +03:00
Ivailo Monev
f1d3035572 kdeui: initialize static variables in kkeyserver_x11
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 20:56:34 +03:00
Ivailo Monev
1efda255a2 kdeui: KKeyServer::modToString() function optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 19:56:21 +03:00
Ivailo Monev
bdcac11bc5 kdeui: initialize static variables in kkeyserver source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 19:54:22 +03:00
Ivailo Monev
8994ef1ef3 kdeui: remove unused variable in KKeyServer::stringUserToMod() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 19:53:07 +03:00
Ivailo Monev
0f6d7ebd2d kdeui: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 19:52:23 +03:00
Ivailo Monev
450120097d kdeui: reimplement KNotification
cleaning up the mess, everything but KNotificationConfigWidget is
implemented.

not only does it not require additional D-Bus service (knotify) to
function but also does not transmit pixmaps over D-Bus, the features
to execute command or log to file are dropped and will not be
implemented.

also about markup support in notifications - if the server does not
support markup then it is supposed to strip it, see the spec:
https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html#backwards-compat
meaning nothing should be done by KNotification itself because it is not
a server, it is just a proxy.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 09:01:39 +03:00
Ivailo Monev
6f106c7068 kdeui: check aliases from KImageIO::isSupported()
because MIME strings (those from shared-mime-info package for example)
tend to change and exact MIME string match is unreliable

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-23 01:14:44 +03:00
Ivailo Monev
58dfa5c884 kdeui: keep reference to the QByteArray object in x11SetCursorName() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 05:44:17 +03:00
Ivailo Monev
f6e53fdb0b kdeui: update KDoubleValidator documentation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-18 18:22:23 +03:00
Ivailo Monev
be9d8967f7 kdeui: remove redundant KGlobalSettings::desktopGeometry() methods
QDesktopWidget is Xinerama aware and it can be disabled because I
implemented option for that, see the following commit in the Katie repo:
b7e4bae65f0cae7f3029b98980f638c077ecfc22

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-09 03:58:14 +03:00
Ivailo Monev
65bedeae01 kdeui: return a single format type from KImageIO::typeForMime() and add mode argument for it
because it returns only one (definitive) format type using QStringList as
return type makes no sense, also a mode argument is very much required to
return correct result - not all image format plugins support writing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 17:57:18 +03:00
Ivailo Monev
a31aa23230 kdeui: rename variable for consistency
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 13:04:48 +03:00
Ivailo Monev
fc7f5206d2 kdeui: minor KCrash documentation review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 11:54:44 +03:00
Ivailo Monev
0f7d9f8ea3 kdecore: setup KCrash to log to the system log, update its documentation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 11:51:35 +03:00
Ivailo Monev
6bf6169caf kdecore: return QByteArray from kBacktrace()
to avoid conversion from QString to QByteArray when possible, the trace is
handled as array of latin1-encoded strings anyway

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 08:14:53 +03:00
Ivailo Monev
2647be1ab2 kdeui: KCrash rewrite
a crashed program trying to restart itself is very unreliable,
especially program that uses KUniqueApplication instance. so, instead
all the information about the crash shall be written to a file on the
disk (in the temporary directory) and read by external kcrash KDED
module that will report the crash (possibily even upload the crash
details somewhere) and restart the program as necessarry.

this also opens up possibility for per-application configuration for
things such as the automatic restart feature but that shall be done by the
kcrash KDED module instead (parsing a config from a crashed program is
not a good idea)

KCrash::NoRestart will be unused but kept for future expansion

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-03 11:21:41 +03:00
Ivailo Monev
1a45508306 kdecore: reimplement KLocale
by using QLocale in KLocale and separating the date, time and numbers
conversion from translation KLocale actually gets extended locale
support from QLocale (which uses CLDR data v43 currently). translation
remains unaffected. for comparison here is the result of two function
calls the result of which should explain the whole change:
KLocale::allLanguagesList().size() = 669
KLocale::installedLanguages().size() = 68

the first number is locales Katie supports, the second being the
number of languages Katana is translated into

KSwitchLanguageDialog needs a rewrite but that is on the TODO

also copyrighting KCatalog to me because I rewrote it, for reference:
881b47b8ea

KCalendarSystem gets the middle finger - batteries not included for date
and time. extra calendar systems can, but are unlikely to be, supported
in the future

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-26 23:50:18 +03:00
Ivailo Monev
673a5e02bd kdeui: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-29 01:09:29 +03:00
Ivailo Monev
f2badd9016 kdeui: do not pass KIconLoader pointer to KIcon in KGuiItem::icon()
same as not passing one

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-19 00:15:40 +03:00
Ivailo Monev
6a84ebfe95 kdeui: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-19 00:11:37 +03:00
Ivailo Monev
81dea86d7c kdeui: KPassivePopup::defaultArea() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-19 00:00:49 +03:00
Ivailo Monev
ecb617b9c8 kdeui: minor KPixmapSequence optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-18 23:53:48 +03:00
Ivailo Monev
d24e1c1437 kdeui: replace private KPassivePopupMessageHandler methods with their body
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-18 23:44:53 +03:00
Ivailo Monev
502164e5be kdeui: remove redundant KeyRelease undef
the inclusion of fixx11h fixes the clashes, KeyRelease is not used in the
source file too

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-16 18:36:12 +03:00
Ivailo Monev
e978590acd generic: define KDE_DEFAULT_DEBUG_AREA in the main build file for each library
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-09 23:43:20 +03:00
Ivailo Monev
669c8caa3b generic: format kimageio and krecentdirs source/header files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-05 02:47:05 +03:00
Ivailo Monev
ccb168fe34 generic: consistent headers inclusion
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-02 23:59:34 +03:00
Ivailo Monev
58279dcba2 kdeui: remove unused KPixmapSequenceOverlayPainter::Private class member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-02 23:59:01 +03:00
Ivailo Monev
dbb1f533e0 kdeui: KPixmapSequenceOverlayPainter optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-02 23:54:16 +03:00
Ivailo Monev
6e549c55ff kimgio: drop TIFF write support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-22 17:27:52 +03:00
Ivailo Monev
b3e9998d8c kimgio: fix TIFF images reading and implement write
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-22 07:54:18 +03:00
Ivailo Monev
7cfcbc3775 kdeui: new KCrash::Backtrace to log backtraces
for programs that cannot call drkonqi to show backtrace (such as
ksmserver or any non-GUI D-Bus service)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-09 12:28:21 +02:00
Ivailo Monev
bdff3fa4e7 kdeui: log backtrace when no KCrash flags are set
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-09 12:17:48 +02:00
Ivailo Monev
717fd59dc8 kdeui: send only SIGTERM before killing the selection owner via XKillClient()
XKillClient() is the same as sending SIGKILL

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-09 09:24:33 +02:00