Commit graph

35 commits

Author SHA1 Message Date
Ivailo Monev
e471b90dfb kdeplasma-addons: adjust default plasmaweather visibility unit
the new unit conversion class (KLength, replaced KUnitConversion some time
ago) does not accept "ml"

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-15 16:59:21 +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
f1b2130343 generic: adjust to KLocale changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-26 09:56:25 +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
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
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
a4017a3a68 generic: preperations for kde-workspace changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-18 03:49:28 +03:00
Ivailo Monev
93e394f1ca generic: preperations for kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 23:28:51 +03:00
Ivailo Monev
05397d9ddf generic: adjust to kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 18:39:16 +03:00
Ivailo Monev
6ccf553d1e generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-14 16:21:09 +03:00
Ivailo Monev
4433e55536 generic: generate export headers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-28 14:58:10 +03:00
Ivailo Monev
f6e923b335 plasma: port weather library and applets to new conversion classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-17 02:34:23 +03:00
Ivailo Monev
49ba7dba8f kdeplasma-addons: do not mangle KUnitConversion into anonymous namespace
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-15 23:10:10 +03:00
Ivailo Monev
2d2fcdf696 kdeplasma-addons: use existing ION provider for weather location validation
fixes Plasma weather related features in general

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-06-06 19:06:24 +03:00
Ivailo Monev
fb7d607058 kdeplasma-addons: remove GHNS leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-06-06 18:44:26 +03:00
Ivailo Monev
e2387fff2a generic: remove KNewStuff leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2020-11-26 03:22:22 +00:00
Ivailo Monev
59190d3194 generic: replace installation paths with KDE4_ prefixed
see commit in kdelibs repository

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 20:12:24 +00:00
Ivailo Monev
e9a067897a generic: build system cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-09 17:24:49 +00:00
Ivailo Monev
c270d80ec8 generic: misc cleanups 2015-09-02 08:54:43 +03:00
Ivailo Monev
f58a4c5452 generic: major build system cleanup 2015-09-02 02:13:50 +03:00
Ivailo Monev
c135cfa6bf generic: adjust for CMake moc 2015-02-27 11:02:43 +00:00
Ivailo Monev
9b44397baf kdeplasma-addons: adust for use in katana (raw) 2015-01-15 17:08:40 +00:00
Ivailo Monev
9ffe5327b4 initial import of kde-plasma-addons (4.14.3) 2015-01-15 17:07:43 +00:00