Commit graph

201 commits

Author SHA1 Message Date
Ivailo Monev
b3d2df692a kdeui: clear widgets of KDebugger when nothing is selected
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-27 07:08:52 +03:00
Ivailo Monev
bb704df5ae kdeui: clear the contents of the properties widget of KDebugger
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-27 06:54:36 +03:00
Ivailo Monev
87926d8e46 kdeui: disable widgets while updating in KDebugger
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-27 03:06:38 +03:00
Ivailo Monev
229cd9ca10 kdeui: correct property index getting in KDebugger
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-26 22:31:48 +03:00
Ivailo Monev
fa3f6619cf kdeui: track objects in KDebugger
to not dereference objects

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-27 00:32:01 +03:00
Ivailo Monev
f81209d44a kdeui: setup header of the objects widget of KDebugger
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-27 00:20:03 +03:00
Ivailo Monev
e78a460d6c kdeui: use the internal object pointer for properties changes in KDebugger
otherwise dereference may occur

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-27 00:12:16 +03:00
Ivailo Monev
3c584cfdb1 kdeui: implement properties editor for KDebugger
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-26 23:49:04 +03:00
Ivailo Monev
30a9360e5e kdeui: disable editing of read-only properties in KDebugger
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-26 23:30:20 +03:00
Ivailo Monev
01d1de126a kdeui: use the metaobject class name if not empty in KDebugger
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-26 19:57:41 +03:00
Ivailo Monev
ec7b5bd959 kdeui: new KDebugger class
I've had the idea about it in my head for years

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-26 07:43:17 +03:00
Ivailo Monev
76d8f5c423 kdeui: remove unused KAccelGen methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-26 05:01:26 +03:00
Ivailo Monev
843463c95d kdeui: drop KSortcut
missing proper configuration interface for the shortcuts, the old one
was borked anyway

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-24 10:19:03 +03:00
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