Commit graph

436 commits

Author SHA1 Message Date
Ivailo Monev
29aac779a2 kcontrol: drop browser support of componentchooser
see 387bdaa93fd6adb0cd8a930454e3be578fa5fdc0 in the kdelibs repo, how a
link will be opened depends on a few things now - the MIME type and what
method is used for opening the URL. if KRun is used the MIME type will
be detetermined and the prefered service for it will be launched, if
KToolInvocation is used first the preferred service for "text/html" will
be attempted with fallback to kde-open and xdg-open which solidifies the
behaviour of "mimetype-determination-in-calling-application" (see
kdelibs/kdecore/sycoca/kprotocolinfo.cpp)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 21:31:09 +03:00
Ivailo Monev
d2181fd762 kcontrol: update key schemes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 17:42:17 +03:00
Ivailo Monev
66f6104da4 generic: replace QLabel with the new KPixmapWidget class
or how to optimize painting of pixmaps and icons

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 05:10:09 +03:00
Ivailo Monev
5800089d10 kcontrol: queue the randr KCM tray actions
so that events can be processed and the modal dialog about accepting the
changes does not block the event queue

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-28 18:11:31 +03:00
Ivailo Monev
fe7f483647 generic: replace globs with MIME types in KFileDialog method calls
see the previous commit

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-27 00:40:03 +03:00
Ivailo Monev
1fb3e430d4 kcontrol: add *.ogg and *.oga to the access KCM pattern
no idea what "artsd" is but figuring out in what format standard sounds are
is easy - just look into /usr/share/sounds. also, the sound files shipped
by Katana are in OGG format

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 06:50:12 +03:00
Ivailo Monev
f47177f876 generic: adjust to KNotification changes
some notification files, such as the style KCM one, were not even used

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 08:07:58 +03:00
Ivailo Monev
10e08246ca kcontrol: keep reference to the QByteArray object in ThemePage::applyTheme()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 05:57:52 +03:00
Ivailo Monev
186a7702e8 generic: adjust to KGlobalSettings changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 04:29:13 +03:00
Ivailo Monev
42cf4cacf8 kcontrol: fallback to KDE_DEFAULT_CURSOR_THEME in the cursor setup function, ignore X11 defaults
as is done by krdb for example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 12:16:19 +07:00
Ivailo Monev
d62ee58181 kcontrol: required the theme argument of kapplymousetheme to be non-empty
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 12:14:02 +07:00
Ivailo Monev
7189f4783e kcontrol: keep reference to the QByteArray object in KeySymHelper::getKeySymbol()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 09:21:12 +07:00
Ivailo Monev
e4dfd5c4a5 generic: apply effect settings from the platform plugin instead of writing to the Katie config
the idea being to not write anything into the Katie config and possibly
even drop support for overriding Katie settings from config.

on a side note font and palette settings are wrapped via classes
(KGlobalSettings and KColorScheme) and hard-wired to configs rather than
being a runtime thing (e.g. getting the font to use for menus via
QApplication::font("QMenu") instead of KGlobalSettings::menuFont()) so lots
to do on that, as for how it will benefit Katana and Katie - less config
parsing possibly, QPalette objects are shared data for example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-21 22:21:25 +03:00
Ivailo Monev
133a1e3e9b kcontrol: remove now unused applyQtColors() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-21 21:40:24 +03:00
Ivailo Monev
f298066b23 kcontrol: do not write palette to the Katie config from krdb
palette is to be set by the platform plugin

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-21 20:37:49 +03:00
Ivailo Monev
f00420a34a generic: preperations for kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-19 19:47:34 +03:00
Ivailo Monev
b4498d8f43 kcontrol: ensure that the resolution numbers are not localized in OutputGraphicsItem::configUpdated()
otherwise it looks as if it is currency or something like that (e.g.
"1,920x1,080") and does not match the number that is shown in the combo box
with available resolutions

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-17 20:06:07 +03:00
Ivailo Monev
b634d6fd41 kcontrol: remove unused variable in ThemeDelegate::paint()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-16 16:31:44 +03:00
Ivailo Monev
144299f453 kcontrol: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-16 16:24:16 +03:00
Ivailo Monev
7497f771bc kcontrol: remove now unused kautostart header inclusions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-16 16:01:22 +03:00
Ivailo Monev
7b8bc6b8ef generic: use the new public KTimerDialog
see the following commit in kdelibs repo:
e0d476372cd6a39a01cb8b70f31192e4d2d540c8

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-16 15:42:35 +03:00
Ivailo Monev
27845ee910 kcontrol: simply override settings based on form factor from workspaceoptions KCM
it is done for the window placement and "borderless maximized windows"
options, the form factor feature shall be like a profile - instead of
overriding config options with fallback from this and that config it shall
override all relevant options from hardcoded values and even act as reset

on a side note what the form factor option does is setup other options
via single combo box, individual config options can be tuned from other
KCM (such as kwincompositing)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-16 14:42:26 +03:00
Ivailo Monev
789d354b81 kcontrol: use BorderlessMaximizedWindows config key to decide the workspace form factor
disabling plasma-desktop should never be done for Katana session even tho
it can be done because it is started from XDG autostart file

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-16 14:21:07 +03:00
Ivailo Monev
5d34b9cfcb generic: make use of the new KDE_DEFAULT_CURSOR_THEME definition
requires d278c3c63c26aa0b0f63d630d27c210213015f1a from kdelibs

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-15 02:43:30 +03:00
Ivailo Monev
f23a2f7a7b generic: remove useless AUTHORS files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-11 20:12:42 +03:00
Ivailo Monev
9a10c6c95e generic: adjust to KAboutData changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 17:48:01 +03:00
Ivailo Monev
ef33eaf427 kcontrol: remove bogus icons KCM bits
animating icons was never a KIconLoader thing, animated icons however (such
as "process-working", which is many icons packed into one) are supported.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 13:20:44 +03:00
Ivailo Monev
0f0e886656 kcontrol: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 13:07:37 +03:00
Ivailo Monev
dbfb4586ec generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-07 01:33:34 +03:00
Ivailo Monev
f415017e21 kcontrol: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-06 07:54:24 +03:00
Ivailo Monev
332a0287b6 kcontrol: format and indent
there is a copy of the table and the function at:
kde-extraapps/kvkbd/src/keysymconvert.cpp

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-06 07:02:27 +03:00
Ivailo Monev
8930bbdf67 kcontrol: fix setup of primary display
regression since 609a72aa84, brought to my
attention via:
https://github.com/fluxer/katana/issues/41

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-05 14:54:43 +03:00
Ivailo Monev
f3924d3849 kcontrol: remove unused KRandRSystemTray::configChanged() method
not only unused but next to useless - it is about a configuration change
and the common way for that to happen is doing it from the randr KCM
which is a "I know what I am doing, I don't need popup for that" kind of
situtation

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 12:35:12 +03:00
Ivailo Monev
2d4a5db5d8 kcontrol: update comment in randr KCM related to startup
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 12:14:47 +03:00
Ivailo Monev
0dd7a6a674 kcontrol: remove unused D-Bus interface reference
krunner is no longer responsible for ASN, for reference:
a5fa8348e3

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-03 04:33:47 +03:00
Ivailo Monev
d366c90af0 kcontrol: set the locale of dateandtime KCM time widget to match the global KLocale instance
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-02 13:45:31 +03:00
Ivailo Monev
ba855fc4d2 generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-02 11:45:37 +03:00
Ivailo Monev
06d3f2cbf7 kcontrol: remove unused input KCM files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 08:04:48 +03:00
Ivailo Monev
f1bf8ab528 kcontrol: remove display KCM
it is essentially container for other modules and all but the randr
module are not valid (not maintained as part of Katana)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 07:26:09 +03:00
Ivailo Monev
59cf40558d kcontrol: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 05:08:18 +03:00
Ivailo Monev
82b381e634 kcontrol: implement basic format validator for locale KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 04:08:50 +03:00
Ivailo Monev
c9f049c347 kcontrol: do not write default values to the config from locale KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 03:04:48 +03:00
Ivailo Monev
8cd1d22c06 kcontrol: remove unused kcfg files
note that the config group name in the kcfg files was "DesktopIcons"
while in kcontrol/kio/netpref.cpp it is empty string

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 20:35:26 +03:00
Ivailo Monev
2257e947be kcontrol: point to the QDateTime documentation from locale KCM
and it is that simple - RTFM!

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 00:52:57 +03:00
Ivailo Monev
1812b1f247 kcontrol: do not use assignment for KConfig object in locale KCM
triggers delete of KConfig object

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 00:08:23 +03:00
Ivailo Monev
ace8a4c9bf kcontrol: filter "C" language in locale KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-27 08:02:56 +03:00
Ivailo Monev
a52c4fabb6 kcontrol: sort languages by the displayed text in locale KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-27 07:58:13 +03:00
Ivailo Monev
cde2b2536f kcontrol: add TODO for locale KCM
one of the things the previous implemented was not doing, can be done
via QValidator-derived class

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-27 03:09:46 +03:00
Ivailo Monev
b715650a29 kcontrol: align locale KCM date and time labels such that the width matches
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-27 02:57:02 +03:00
Ivailo Monev
5e688ed432 kcontrol: change the measurement system on locale KCM language change
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-27 01:07:39 +03:00