Commit graph

319 commits

Author SHA1 Message Date
Ivailo Monev
52cb8a6df0 generic: adjust to KDateTime removal
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-14 23:15:36 +03:00
Ivailo Monev
7ddfeb4410 kdeplasma-addons: unload the data engines from WeatherPopupApplet destructor
because the data engines are not parented to anything the destruction
happens too late otherwise and triggers fatal message in
Plasma::DataEngineManager that it is accessed after destruction

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-14 15:41:37 +03:00
Ivailo Monev
1197c31614 kdeplasma-addons: sync BackgroundListModel copy
copy of:
kde-workspace/plasma/wallpapers/image/backgroundlistmodel.cpp

with minor changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-12 15:10:52 +03:00
Ivailo Monev
e98da706cb kdeplasma-addons: correct potd wallpaper library name
incorrect since before the fork

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-12 00:22:59 +03:00
Ivailo Monev
ac5f71539a generic: remove useless AUTHORS files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-11 20:13:07 +03:00
Ivailo Monev
4ee4066a24 kdeplasma-addons: adjust to KAboutData changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 20:12:06 +03:00
Ivailo Monev
7af8047900 generic: remove dead and irrelevant links references
svn repository reference? good luck getting source code from there..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 16:01:25 +03:00
Ivailo Monev
ae086cf0b8 kdeplasma-addons: use the package metadata to get the package name in qmlwallpapers plugin
much more reliable than chopping the path into pieces to figure out the
package name. also because KGlobal::dirs()->findDirs() returns paths with
trailing slash the previous method was returning empty string

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 15:12:00 +03:00
Ivailo Monev
b9106628cd kdeplasma-addons: create kolourpicket applet icon without QIconEngine reimplementation
functionally the same except that it is not bound to the QIconEngine class
and if QIconEngine changes it does not have to be adjusted

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 12:20:50 +03:00
Ivailo Monev
6ccb85540b kdeplasma-addons: match the untranslated terms as fallback in runners
see the following commit in kde-workspace repo:
9c2fb0b928746ec94fb56022a473de2cf81f9945

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 06:20:29 +03:00
Ivailo Monev
f4ba650074 kdeplasma-addons: set the minimum time to 1sec for timer and frame applet
where zero time timers do not make sense, e.g. when the frame applet
slideshow should be updated (never updating the slideshow automatically
could be a feature because the frame shows arrows to switch between images
but zero time for the slideshow is not handled by the frame applet)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-03 07:39:54 +03:00
Ivailo Monev
e4722c9617 kdeplasma-addons: port to the new KTimeEdit class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-02 13:18:15 +03:00
Ivailo Monev
e423875071 kdeplasma-addons: adjust to Katie changes
includes seconds handling for frame applet auto-update feature

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-02 11:45:04 +03:00
Ivailo Monev
052d7bb86e kdeplasma-addons: fix regression since 87247ceaca
KImageIO::pattern() returns pattern for use in QFileDialog (glob and MIME
comment included) which is not valid filter for QDirIterator

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-02 04:01:44 +03:00
Ivailo Monev
f1b2130343 generic: adjust to KLocale changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-26 09:56:25 +03:00
Ivailo Monev
81d53fe5a3 kdeplasma-addons: adjust to time zone classes changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-22 04:41:11 +03:00
Ivailo Monev
cb04718ceb generic: adjust to KDateTime changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-21 07:50:30 +03:00
Ivailo Monev
1663b4a7a5 kdeplasma-addons: set the icon of the weather configuration search button
in case the button text is not shown for some reason, also visually
indicating what the button will do

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-17 20:46:11 +03:00
Ivailo Monev
b76f1024c1 kdeplasma-addons: expand the kolourpicker applet color button
to use most of the applet area and make it a bigger drag-n-drop target

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-17 20:39:12 +03:00
Ivailo Monev
8bc68f81c9 kdeplasma-addons: implement drag for kolourpicker applet
now with color dragging!

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-17 20:23:46 +03:00
Ivailo Monev
a7d2cad4a8 kdeplasma-addons: adjust the size of the kolourpicker color button icon based on the button size
otherwise if the applet is resized to, say, 100x100 the icon would be still
16x16 - very small for applet with a 100x100 size

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-17 08:30:43 +03:00
Ivailo Monev
ac1690f9d0 kdeplasma-addons: implement drop for kolourpicker applet
color can be now drag-n-dropped from kcolorchooser for example, dragging
the color that kolourpicker has picked may be implemented in the future

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-17 08:09:15 +03:00
Ivailo Monev
7ca60a87c1 kdeplasma-addons: remove redundant X11 check
side note: X11 library contains the implementation of functions declared
in the Xutil header

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-17 05:52:57 +03:00
Ivailo Monev
6a60591ff2 kdeplasma-addons: use KMessageWidget instead of KMessageBox for the weather configuration error
also not emitting the configValueChanged() signal while searching to not
trigger changes on the weather applet side while that is happening (after
search the source will be changed after selecting location item)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-17 03:33:04 +03:00
Ivailo Monev
38b89a77ad kdeplasma-addons: rework location widget behaviour
by not using the location widget to display error and by not setting the
line edit widget text behind the back of KComboBox a lot of quirks are
fixed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-17 02:43:48 +03:00
Ivailo Monev
9eb152aae6 kdeplasma-addons: change the weather location widget index only if the pre-location index is found
when a source is set is not added as item to the location widget (see
WeatherConfig::setSource())

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-16 19:34:58 +03:00
Ivailo Monev
8558ee30fe kdeplasma-addons: use the plasma theme wallpaper as default for weather wallpaper
none of the referenced wallpapers is installed or maintained by Katana

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-16 04:04:25 +03:00
Ivailo Monev
6a6038b3f5 kdeplasma-addons: adjust weather wallpaper to recent changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-16 03:34:54 +03:00
Ivailo Monev
e4b67f8165 kdeplasma-addons: add the default and validated sources to the weather location widget
for reference:
https://github.com/fluxer/katana/issues/26

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-16 03:13:25 +03:00
Ivailo Monev
d42137e272 kdeplasma-addons: emit all valid sources from WeatherLocation
so that all default and validated sources can (potentially, eventually) be
shown in the configuration location widget

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-16 02:26:21 +03:00
Ivailo Monev
573b7e2fa8 kdeplasma-addons: rework weather configuration to validate via specifiec ion
because different applets use data that is provided by different ion, for
example wettercom provides forecast while noaa provides wind conditions.

on a side note noaa uses mostly station names rather than city names so
expect applects that default to noaa ion to require configuration by
default in most cases

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-16 01:44:44 +03:00
Ivailo Monev
c6604da779 kdeplasma-addons: search for location when return is pressed while the weather location widget has focus
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 20:56:10 +03:00
Ivailo Monev
173699edc7 kdeplasma-addons: fill the weather configuration locations widgets with default (valid) locations
for reference:
https://github.com/fluxer/katana/issues/26

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 20:38:39 +03:00
Ivailo Monev
c52c3b15a8 kdeplasma-addons: sort the geo data by accuracy in WeatherLocation::dataUpdated()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 12:21:53 +03:00
Ivailo Monev
002bf61331 kdeplasma-addons: stop emitting the finished signal of WeatherLocation once a valid source is found
how valid the source is is entirely different thing, more than one
weather source can match a given location (look for "multiple" in the ions
and think why it is a thing)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 11:18:37 +03:00
Ivailo Monev
7bb0c86cf6 kdeplasma-addons: parent the weather validator to the weather location finder
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 11:07:37 +03:00
Ivailo Monev
7f129d6c3e kdeplasma-addons: attempt to validate all locations
out of 4 geolocation data engine providers 3 provide data for the city,
requires the following commit from kde-workspace:
d28608da5bb8b874cad1c6a9b50a5b9bfb358317

for reference:
https://github.com/fluxer/katana/issues/26

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 09:34:45 +03:00
Ivailo Monev
3edb2cc356 kdeplasma-addons: fix plasmaweather busy timer races
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 12:42:53 +03:00
Ivailo Monev
cd3321bf6f kdeplasma-addons: remove unused WeatherConfig::getNewStuff() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 12:40:36 +03:00
Ivailo Monev
d68c32f163 kdeplasma-addons: remove unused dict applet bits
because the previous dict data engine source became not a thing the dict
data engine was reimplemented and now supports only english (en)
dictionary, also qstardict is not a valid data engine

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 06:51:21 +03:00
Ivailo Monev
353a6dbf0c kdeplasma-addons: drop broken dictionary runner
and the fix is that easy

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 06:37:14 +03:00
Ivailo Monev
9b90a8609f kdeplasma-addons: rework the dictionary runner
requires the following commit from kde-workspace:
6cfe505af4ede2843d7faa3d302e09cb171d823d

and because the runner is running in its own thread it is still not
thread-safe, that's something to fix

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 04:51:30 +03:00
Ivailo Monev
d834d633d5 kdeplasma-addons: LCD::Private::checkIfDirty() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-08 03:20:41 +03:00
Ivailo Monev
2e0739b8f6 kdeplasma-addons: QPainter runtime warning fix
if the LCD widget size is null (QSize(0,0)) then nothing will be painted
even if it is dirty, so it shall remain dirty until the LCD widget size
is not null

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-08 03:17:18 +03:00
Ivailo Monev
4e802a2250 kdeplasma: remove redundant dict applet style sheet override
Plasma::TextBrowser palette is already set and updated internally, the
dictionary data engine does not add links too (unless the example or
definition itself contains such)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-08 01:58:30 +03:00
Ivailo Monev
e9f147de3d kdeplasma-addons: fix dict applet theme synchronization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-08 01:43:11 +03:00
Ivailo Monev
703868eb38 kdeplasma-addons: remove bogus tooltip widget style sheet override
see the following commit in kdelibs:
f83e176dcf43e0307b8b20a5e7e5574a60d47618

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-07 21:28:57 +03:00
Ivailo Monev
527b3d0a86 generic: remove redundant styleSheet properties in UI files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-07 20:31:48 +03:00
Ivailo Monev
44a349b97d generic: adjust to kfile changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 03:12:02 +03:00
Ivailo Monev
602730bac1 generic: adjust to KUrl changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-26 20:57:07 +03:00