Commit graph

34 commits

Author SHA1 Message Date
Ivailo Monev
1d0d3598c7 kdeui: use KToolInvocation::startServiceForUrl() instead of spawning kde-open process in KWidgetJobTracker
kde-open does exactly the same - it calls
KToolInvocation::startServiceForUrl() with the URL as argument

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-31 05:10:06 +03:00
Ivailo Monev
28995472b7 kdeui: send job data to org.kde.plasma-windowed
the same has to be done for application notifications

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-23 08:30:03 +03:00
Ivailo Monev
1b034764ad kdeui: KPlasmaJobTracker::registerJob() optimization
by not converting the QVariant (property) to QString and then back to
QVariant (implicitly)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-23 07:31:12 +03:00
Ivailo Monev
b643c2b0da kdeui: update comment in KDynamicJobTracker::registerJob()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-23 07:22:55 +03:00
Ivailo Monev
a2209be85f kdecore: return boolean from KJobTrackerInterface::registerJob()
so that classes that inherit from it and use D-Bus interfaces can return
true if the interface is not valid as may be the case for
KPlasmaJobTracker, that way KDynamicJobTracker will not have to create
QDBusInterface object to decide which tracker to use

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-22 17:48:49 +03:00
Ivailo Monev
a32a58d0fc kdeui: remove redundant check for appIconName property
not set now

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-14 12:12:43 +03:00
Ivailo Monev
aeef583555 kdeui: unregister any registered jobs from KPlasmaJobTracker destructor
this is so that jobs are not left in the plasma applets as active when, for
example, the program that has jobs registered is interrupted by a signal
(be that ctrl+c or something nasty like SIGSEGV). KUiServerJobTracker
was just warning about it but I can do better

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-01 06:48:43 +03:00
Ivailo Monev
704967c1b7 kdeui: remove unused KPlasmaJobTracker and KNotification data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-30 06:42:36 +03:00
Ivailo Monev
c123758bc5 kdeui: remove redundant Q_UNUSED() in KPlasmaJobTracker::infoMessage()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-30 06:38:16 +03:00
Ivailo Monev
d1ade98a0a kdeui: emit the error and update internal data of KPlasmaJobTracker
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-08 13:57:59 +03:00
Ivailo Monev
b94e789264 kdeui: remove bogus TODO for KWidgetJobTracker
it does not miss a method, it misses job capabilities check

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-08 13:15:23 +03:00
Ivailo Monev
0ef3e53e20 kdeui: fix KPlasmaJobTracker progress update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-08 12:47:46 +03:00
Ivailo Monev
8293d08153 kdeui: rework job tracking
just watch me do it without a dedicated D-Bus service and dataengine

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-07 23:35:17 +03:00
Ivailo Monev
0d513a2316 kdeu: drop unused KStatusBarJobTracker class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-07 20:54:47 +03:00
Ivailo Monev
e8b3684d5f kdeui: remove unused KAbstractWidgetJobTracker methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-07 20:52:12 +03:00
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
c29db4dd9c kdeui: remove toolbar directory from appicon resource
no icons are installed there

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-27 16:53:34 +03:00
Ivailo Monev
84de49081c kdeui: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-27 08:42:33 +03:00
Ivailo Monev
720443b314 kdeui: remove unused headers inclusions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-27 08:31:16 +03:00
Ivailo Monev
10783de5e2 kdeui: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-27 07:58:16 +03:00
Ivailo Monev
0254e23e32 kdeui: virtualize KWidgetJobTracker methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-27 07:49:16 +03:00
Ivailo Monev
3923cb4dca kdeui: adjust to kuiserver changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-27 03:21:59 +03:00
Ivailo Monev
8609952af1 generic: replace use of QTime as timer with QElapsedTimer
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-07 12:21:32 +03:00
Ivailo Monev
c63f00ec2a kio: move KDynamicJobTracker to kdeui and export it as public class
to be used by kprintjobs and possibly more, also added camelcase header
for KUiServerJobTracker

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-07 03:09:21 +03:00
Ivailo Monev
4ba42b20e1 kdeui: implement hidden KUiServerJobTracker feature to override the application name and icon
also updated the D-Bus interface file

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-06 19:33:17 +03:00
Ivailo Monev
786a11eeb0 kdeui: format and indent kdialogjobuidelegate source and header files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-23 03:35:16 +02:00
Ivailo Monev
0e980c95cc kdeui: remove redundant attempts to start D-Bus services
creating QDBusInterface should start the services, in case the services
cannot be started tho delays may be experienced (such as the UI freezing
while waiting for D-Bus reply to finish) thus logging error

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-09 03:40:07 +02:00
Ivailo Monev
5b03742ff8 kdeui: remove unused KStyle methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-23 04:13:50 +03:00
Ivailo Monev
609dc64f8a kdeui: fix on-demand starting of kuiserver, knotify4 and kglobalaccel services
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-23 21:24:47 +03:00
Ivailo Monev
bacb8d64e6 kdeui: replace org.kde.JobView with org.kde.JobViewV2 interface
for reference:
a42d981176/kuiserver/progresslistmodel.cpp (L282)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-14 20:04:09 +03:00
Ivailo Monev
61333c4671 generic: namespaced Qt4/Katie build fixes
most of the changes were done trought Katie's namefsck script which
convertes forward class declarations to include directives, however
other fixes here and there were needed as well as some questionable
changes to Q_DECLARE_TYPEINFO() macro calls because they most likely
have to do the namespacing themselfs (QT_BEGIN/END_NAMESPACE, and
probably will be in Katie) meaning that some of the changes may be
temporary and reverted later.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2017-08-04 09:24:39 +00:00
Ivailo Monev
21ad0df488 generic: make changes required for building against katie 2015-08-11 05:56:07 +03:00
Ivailo Monev
82fc15f54b generic: use CMake moc instead of automoc4 by default
for compatibilty reasons automoc4 support is not removed but it
shall be in the future. automoc4 has not been maintained for a
while (last commit is from 2011) and the stable release is from
2009.

CMake version >= 2.8.6 provides the functionality for mocking so
I see no reason to not make use of it.
2015-02-27 07:40:26 +00:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00