Commit graph

29 commits

Author SHA1 Message Date
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
4e1fc45705 kio: remove unused KFileMetaInfo flags
when it comes to KFileMetaInfo its bottleneck is determening what plugin to
use for the given URL/path - determening MIME type, matching globs, etc.
and it still is quite fast to the point where the flags are simply
redundant

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-18 03:36:06 +03:00
Ivailo Monev
369cb4457c kio: remove redundant KFileMetaDataProvider::label() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-07 22:10:22 +03:00
Ivailo Monev
36813e70d1 kio: move static KFileMetaDataProvider::subDirectoriesCount() method out of the class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-27 09:21:12 +03:00
Ivailo Monev
34f0c59d46 kio: sort metadata by name
better everyday (even on sundays):
https://ibb.co/MnGq4dx

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-27 15:32:32 +03:00
Ivailo Monev
543978ccc2 kio: the meta information for multiple URLs shall be only the total size
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-27 19:42:07 +03:00
Ivailo Monev
781ed5e013 kio: clear data even if items list is empty in KFileMetaDataProvider
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-12 21:35:15 +02:00
Ivailo Monev
0e50b3e824 kio: store meta information values as string in KFileMetaDataProvider
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-11 02:05:34 +02:00
Ivailo Monev
04fddbd3bb kio: fix exclusion of disabled meta information
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-10 17:09:04 +02:00
Ivailo Monev
ab6370b41a kio: repurpose KFileMetaInfo::supportedKeys(), new public KFileMetaInfo::name() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-10 12:05:20 +02:00
Ivailo Monev
2da2c1db28 kio: fix possible crash in case no valid URL is passed to KFileMetaDataProvider::setItems()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 22:49:24 +02:00
Ivailo Monev
1091f8e521 kio: KFileMetaDataProvider review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 22:43:30 +02:00
Ivailo Monev
6a017117a8 kio: clear KFileMetaDataProvider data before reading metadata for new items
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 22:20:30 +02:00
Ivailo Monev
50e476d005 kio: remove unused KFileMetaDataProvider::Private methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 22:15:47 +02:00
Ivailo Monev
082ea4e161 kio: de-virtualize KFileMetaDataProvider methods and remove one that is not used
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 22:11:20 +02:00
Ivailo Monev
a67c74dff4 kio: store KFileMetaInfoItem as list in KFileMetaInfo, value as QString in KFileMetaInfoItem
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 16:26:00 +02:00
Ivailo Monev
f4b23e1b4e kio: avoid KUrl to QString and then implicit KUrl conversion in KFileMetaDataProvider::label()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 02:40:51 +02:00
Ivailo Monev
7bf83bb532 kio: deal with TODO related to file meta information
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-01 22:33:21 +03:00
Ivailo Monev
680335fa08 kio: set metadata MIME type from KFileItem object
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-24 19:21:13 +03:00
Ivailo Monev
95a1b9e164 kio: remove unused signals
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-18 00:18:36 +02:00
Ivailo Monev
5f595705a8 kio: use static immutable map for translated NFOs
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-07 21:37:20 +02:00
Ivailo Monev
9ee607bc7c kio: call slotDataChangeFinished() after metadata has been read
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-30 13:39:07 +00:00
Ivailo Monev
0c602fc82d kio: further simplify metadata reading
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-31 01:10:00 +00:00
Ivailo Monev
d9e49d1617 kio: simplify and speed up metadata reading
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-30 20:38:15 +00:00
Ivailo Monev
f5050913b7 kio: make good use of the translator in the metadata provider
in the original KDE implementation it was used along with Nepomuk,
but Nepomuk support was dropped yet some semantic URIs are still
used across the KDE applications (e.g. dolphin, gwenview) for
info other than size, date of modification, etc. thus keeping a
local static mini-hash for the kfileitem properties is not very
good as knfotranslator has its own hash mechanisms thus the
translator items got merged into the translator and is now fully
utilized hopefully dropping the memory usage a little bit of the
metadata provider.
2015-09-29 06:44:54 +00:00
Ivailo Monev
950cb05839 kio: minor metadata provider cleanup 2015-08-28 04:14:43 +03:00
Ivailo Monev
a22f9f73aa kio: bring back the metadata helpers (without Nepomuk) 2015-05-03 16:49:26 +00:00
Ivailo Monev
3c165c6f01 removed nepomuk support 2014-11-13 03:32:20 +02:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00