Commit Graph

104 Commits (dba312132e8a2e0cbcbb157876b8c135130880fa)

Author SHA1 Message Date
Michele Calgaro dba312132e
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro ebce9b5386
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 7fc1f5e515
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 90fc7da542
Replace Q_OBJECT with TQ_OBJECT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
2 years ago
Mavridis Philippe bc71670331
KWeather: improve icon loading and other fixes
- Fix pixelated icons (issue #19)
- Fix "network offline" state
- Add helper `bool weatherDataAvailable(TQString stationID)` DCOP function
- Fix compatibility with old DCOP function signatures
- Prevent double "Network is offline" strings in weather data.

This commit introduces some new and renamed DCOP calls. Old function signatures
are kept for compatibility, but are mraked as deprecated.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
2 years ago
Mavridis Philippe aaa7f2013f
WeatherLib: initialize correct icon setting
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe c9be50cc8d
KWeather: Try another icon for Service settings
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 3ab50ccac5
Sidebar: enforce icon update after settings change
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 621ec8bf1d
KWeather: Place Service section before Stations
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 46095a9766
Code style improvements.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 56e84d9ab2
Move useIconTheme DCOP call into kcmweatherservice.
This is where it belongs, and thus it can be used by both
the applet and sidebar.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe b1d0b204e1
KWeather: Split Display module in two sumbodules
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 257301adc0
Force all stations to update.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe c0d50863df
WeatherService: Added forceUpdateAll() function.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 2dc62c135e
prefdialogfdata.ui: wording changes
according to recommendations.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 6a9693ddcd
Refine kdDebug() calls according to recommendations.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 432bc8184c
Rename getIcon(...) to saveIconNamePath(...)
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 2eeaa5f49b
Preference dialog fixes.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 6668b34bc5
Implemented icon theme option.
Changes in this commit include:
 * The option itself;
 * A method of updating the option right after Apply or Ok is pressed
   in the settings dialog;
 * A new WeatherIconPrivate class to store the methods previously
   in WeatherIcons, as well as the settings;
 * Improved icon name helper function in METAR parser;
 * A few cleanups to the WeatherIcon class.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 67e995b6fc
KWeather: Added fallbacks to "weather-snow"
For themes missing the (specified by XDG) weather-snow-scattered
icon.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 037b7019e8
KWeather: Use TDEIconLoader with absolute path to load icons.
This provides us with free built-in SVG support.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe d2b868dfa4
KWeather: improved fallback mechanism.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 0256788f8e
KWeather: remove clouds < 0 case.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 6e43236a75
KWeather: Use brackets block for better readability
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe d14d3ab2fd
KWeather: Fixed comments
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe df744f540c
KWeather: Better icon name string handling.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe a21cf7acf6
KWeather: Fixed fallback to default icons
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe bee2b453da
KWeather: support for weather icons from icon theme.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 76aebc5aa6
KWeather: updated icon name in DockWidget class
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 0e7033dd09
KWeather: updated icon handling.
The newly added class abstracts away icon names from the main code
and has the ability to fall back to "safer" icon choices so as to
ensure (if possible) icon theme consistency.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe 5fea80f569
KWeather: use glob to find and install weather icons
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Mavridis Philippe fb148c218f
Renamed KWeather icons to adhere to icon theme standards.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
3 years ago
Michele Calgaro 1a7cc700b1
Replaced 'includehints' with 'includes' in *.ui files.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
3 years ago
Michele Calgaro 949893d7e4
kweather sidebar: correctly initialize variables. This fixes issue #15.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
3 years ago
Slávek Banko 93f97fe140
Remove unwanted end spaces in kweather-stations.desktop.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
3 years ago
Mavridis Philippe 47ea2b84cd
KWeather Sidebar: timer fixes
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
4 years ago
Mavridis Philippe 07171bc7a7
KWeather Konqueror sidebar revival
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
4 years ago
Alexander Golubev d949147662 cmake: a couple of small fixes
* Fix project name
* Add explicit dependencies for a custom command in kweather

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
4 years ago
Slávek Banko 3a63db1399
Do not list files that are part of the source code as DEPENDS.
This resolves FTBS, which may occur due to commit 07d616b7e2.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
4 years ago
Emanoil Kotsev 21e74c70c6
Resolve ambiguous station names
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
4 years ago
Slávek Banko 07d616b7e2
Generate kweather station information files during the build phase
instead of the configuration phase.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
4 years ago
Emanoil Kotsev f48efce561
kweather: Improve station list processing
+ Add a README file with information about the processing stations
+ Automatically generate stations.dat and weather_stations.desktop
  from data/nsd_cccc.txt before cmake checks
+ File downloaded from https://tgftp.nws.noaa.gov/data/nsd_cccc.txt
+ Clean up weather_stations.desktop.in and moved relevant information
  to data/station_names.txt
+ Added GG to EU and NU, PE to Canada
+ Mapped most of African countries to AF region
+ Mapped few other countries to their regions
+ Algeria is not in the ME region
+ Christmas Islands code is CX
+ Added Greenland to Atlantic
+ Added some more states to Oceania
+ Added some more states to Cenetral and South Americas
+ Antarctica as new region
+ Renamed Australiasia to Australia and Oceania
+ Region abbreviations in alphabetic order
+ Removed Atlantic and Mexico regions and added North America
+ Mapped most of the outstanding stations in Canada and elsewhere
+ J Leslie Turriff provided information on the stations in Canada

Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>

Modify the generation of weather_stations.desktop so that it is possible
to merge translations into a generated file.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
4 years ago
Michele Calgaro dfde73733d
Removed code formatting modelines.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
4 years ago
Slávek Banko 3da95bc474
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko 094853ca31
Desktop file translations:
+ Creation of POT template for desktop files added to CMakeL10n rules.
+ Added creation of translated desktop files during build.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko fdabfa4682
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 617593fd18
Add includes to UI files to resolve FTBFS
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Michele Calgaro 2446775247
LIB_QT -> LIB_TQT conversion to align to updated admin module
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Slávek Banko 8aedce54f4 KWeather: Add current date to the log entries
This relates to bug 2728

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
8 years ago
Timothy Pearson eb7b432f04 Update METAR URL 9 years ago