Ivailo Monev
e23cd38582
kioslave: include the correct header for HAVE_NICE definition
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 15:51:48 +03:00
Ivailo Monev
475e688ff8
kioslave: effectively revert 119bf184de
...
see the following commit in kdelibs:
c4ae9e046090e31201dfb1c7cfd2dc406aaf45c0
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-12 00:46:07 +03:00
Ivailo Monev
e4366d3493
soliduiserver: implement feature to execute actions under certain conditions
...
can implement condition for when device changes occurs too but I have no
plans to use it for something, not yet that is. the remove condition can
(and probably will be) used to start kvkbd when there is no keyboard
plugged in altough that will require program to check when to do that
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-08 19:26:41 +03:00
Ivailo Monev
119bf184de
kioslave: create absolute lock file for the trash kioslave
...
otherwise it is affected by the current directory of the slave process
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-08 03:22:15 +03:00
Ivailo Monev
016fea783c
generic: adjust to KLocalizedString changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-18 00:36:52 +03:00
Ivailo Monev
f4acd2164c
generic: adjust to KLocalizedString changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-17 22:21:32 +03:00
Ivailo Monev
f23a2f7a7b
generic: remove useless AUTHORS files
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-11 20:12:42 +03:00
Ivailo Monev
cf6a2620c6
generic: remove dead and irrelevant links references
...
consider the mail references just as dead
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 15:44:43 +03:00
Ivailo Monev
7a3db6fd57
kioslave: enable cursorthumbnail by default
...
because cursors are technically images and the thumbnails creation is cheap
(even tho the result is not cached, cursors are small images)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 15:31:44 +03:00
Ivailo Monev
3111ee9ad8
kioslave: remove unused protocol file entries
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-31 20:30:59 +00:00
Ivailo Monev
19b46a1c46
generic: replace QVarLengthArray<T> with std::vector<T> and QVector<T>
...
std::vector<T> for when the data does not have to be shared (e.g. POD
types) and there is no Q_DECLARE_TYPEINFO() involved, QVector<T> for when
data should be shared
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 18:50:02 +00:00
Ivailo Monev
7c2d1f3bd0
kioslave: discard the data buffer and pixmap once text thumbnail is created
...
to reclaim the memory allocated
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 20:21:48 +03:00
Ivailo Monev
6fcf4e8224
kioslave: copyright imagecreator to me
...
implemented rotation (with configuration interface), updated MIME types,
etc. for reference:
fce69c3dc4
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 20:15:44 +03:00
Ivailo Monev
866ba072f1
kioslave: drop support for sequenced thumbnails
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 00:48:58 +03:00
Ivailo Monev
385845d673
generic: drop floppy support
...
yep, it's about time
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-14 06:26:25 +03:00
Ivailo Monev
ec3dc590a0
kioslave: clear the KIO::UDSEntry object before emitting the last network:/ entry
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 20:57:41 +03:00
Ivailo Monev
1ef80f8af0
kioslave: directory thumbnailer optimization
...
by collecting sub-directories to possibly propagate later listing of the
directory has to be done only once reducing the overall I/O required for
generating directory thumbnails in case no thumbnail can be created from
the files in the directory
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 19:06:58 +03:00
Ivailo Monev
c6114b45d9
generic: do not install kcfg files
...
see the following commit in kdelibs repo:
ee1aa40904077b7cae3c3575ffeaab176e42a85b
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 05:50:15 +03:00
Ivailo Monev
69524945c5
kioslave: remove trash migration code
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-27 09:10:47 +03:00
Ivailo Monev
cf6d91b6a1
kioslave: remove non-operational bits
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-27 08:57:10 +03:00
Ivailo Monev
568b377ca8
generic: adjust to KUrl changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-26 20:48:03 +03:00
Ivailo Monev
5b7845d814
generic: adjust to KUrl changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-23 16:55:47 +03:00
Ivailo Monev
24fa2781e2
kioslave: keep reference to the QByteArray object in CursorCreator::create()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-23 06:14:01 +03:00
Ivailo Monev
a1d20ef01c
generic: do not set KDE_FORK_SLAVES environment variable
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-22 03:31:21 +03:00
Ivailo Monev
3b2b21d1f7
kioslave: remove redundant desktop KIO slave
...
now the home, trash and .directory files will be copied when the desktop
is started (by kcminit) rather than when desktop:/ is accessed for the
first time, no functional change besides improvement including less
.protocol files to parse and one less KIO slave to maintain
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-22 02:14:30 +03:00
Ivailo Monev
b7bab330a0
kioslave: remove redundant comment in sftpProtocol::sftpPut()
...
someone figured exit() is not the way to go there, see the following commit
in kdelibs repo:
cf6ac06d91a0befd01361ce7a01655bcfb62d0ec
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-21 22:26:03 +03:00
Ivailo Monev
9947a16c2c
kioslave: fake the root entry for network KIO slave
...
fixes opening of network:/ via URL link in QLabel text for example
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-20 21:26:15 +03:00
Ivailo Monev
ce48bc0997
generic: preperations for kdelibs changes
...
automatically replaced via:
find -name CMakeLists.txt -exec sed -e 's|${KDE4_PLASMA_LIBS}|KDE4::plasma|g' -e 's|${KDE4_KIO_LIBS}|KDE4::kio|g' -e 's|${KDE4_SOLID_LIBS}|KDE4::solid|g' -e 's|${KDE4_KFILE_LIBS}|KDE4::kfile|g' -e 's|${KDE4_KDECORE_LIBS}|KDE4::kdecore|g' -e 's|${KDE4_KDEUI_LIBS}|KDE4::kdeui|g' -e 's|${KDE4_KCMUTILS_LIBS}|KDE4::kcmutils|g' -e 's|${KDE4_KDECLARATIVE_LIBS}|KDE4::kdeclarative|g' -e 's|${KDE4_KPTY_LIBS}|KDE4::kpty|g' -e 's|${KDE4_KEMAIL_LIBS}|KDE4::kemail|g' -e 's|${KDE4_KMEDIAPLAYER_LIBS}|KDE4::kmediaplayer|g' -e 's|${KDE4_KPARTS_LIBS}|KDE4::kparts|g' -e 's|${KDE4_KIDLETIME_LIBS}|KDE4::kidletime|g' -e 's|${KDE4_KTEXTEDITOR_LIBS}|KDE4::ktexteditor|g' -e 's|${KDE4_KPASSWDSTORE_LIBS}|KDE4::kpasswdstore|g' -e 's|${KDE4_KARCHIVE_LIBS}|KDE4::karchive|g' -e 's|${KDE4_KDNSSD_LIBS}|KDE4::kdnssd|g' -e 's|${KDE4_KNOTIFYCONFIG_LIBS}|KDE4::knotifyconfig|g' -e 's|${KDE4_KEXIV2_LIBS}|KDE4::kexiv2|g' -i {} +
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 23:27:11 +03:00
Ivailo Monev
472f24878b
generic: adjust to kdelibs changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 18:38:55 +03:00
Ivailo Monev
c8d6a1cdaa
kioslave: replace KInterProcessLock with KLockFile
...
because I made KLockFile events aware (by processing application events
when attempting to lock) it is possible to use it for that
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-14 22:04:44 +03:00
Ivailo Monev
3be2388c2f
kioslave: remove redundant qsrand() call in ThumbnailProtocol::drawSubThumbnail()
...
the pseudo-random number generator is automatically seeded per-thread now
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-10 19:52:08 +03:00
Ivailo Monev
16ab1a1ccb
kioslave: remove useless DEBUG.howto and DESIGN files
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-08 16:27:49 +03:00
Ivailo Monev
3b8083c756
kioslave: adjust to KIO slave interface changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-05 23:08:12 +03:00
Ivailo Monev
8b82a12866
kioslave: remove unused protocol descriptions
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-05 17:58:57 +03:00
Ivailo Monev
be89c3a277
generic: remove irrelevant TODO files
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-05 03:15:13 +03:00
Ivailo Monev
fc96f88886
kioslave: testing build fix
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-04 11:46:27 +03:00
Ivailo Monev
fab1ea4289
generic: adjust to KIO protocol changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-01-01 02:42:24 +02:00
Ivailo Monev
054f0cb760
generic: adjust to KIO protocol changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-01-01 01:15:54 +02:00
Ivailo Monev
57cfa00f83
kioslave: adjust to KIO::SlaveBase changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-22 23:09:37 +02:00
Ivailo Monev
c7a9f67a23
kioslave: do not convert the image from imagethumbnail
...
if the depth is required to be 32 somewhere else then it should be
converted there
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-18 22:59:12 +02:00
Ivailo Monev
17cd523fb2
kioslave: drop windowsimagecreator thumbnailer
...
it uses the ICO image format handler which can read only
image/vnd.microsoft.icon
also optimized the windowsexecreator while at it to not created
temporary file (which later wrestool would overwrite anyway) but
rather just generate output file path via KTemporaryFile::filePath()
and delete it manually when done
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-16 14:40:02 +02:00
Ivailo Monev
aabd7af209
kioslave: use QApplication instead of KApplication in the thumbnail slave
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-14 16:30:55 +02:00
Ivailo Monev
5e162c27fe
generic: sync preview defaults
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-13 14:29:20 +02:00
Ivailo Monev
c6c9a014f5
kioslave: do not paint icon if the image is too small
...
the icon is OK when painted on preview displayed in the file properties
dialog (because it is big) but not when it is painted on the previews
generated for Dolphin for example (depending on the icon size which is in
the 16x16-256x256 range)
the ratio may be tweaked in the future, have to play around with it and see
how it goes for the plasma folder applet, tooltips, etc.
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-13 12:23:46 +02:00
Ivailo Monev
d9cefe86c4
kioslave: release the format before the page from djvucreator
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-13 11:57:05 +02:00
Ivailo Monev
04fd07eec7
kioslave: scale the page size to the requested thumbnail width and height from djvucreator thumbnailer
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-13 10:54:06 +02:00
Ivailo Monev
2988a77e82
kioslave: draw blended icon for document thumbnails
...
since the document thumbnails look pretty much the same (i.e. a text page)
drawing icon not only from the generic text thumbnailer as indicator what
type of document the thumbnail is for makes sense
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-13 10:34:36 +02:00
Ivailo Monev
72e935557a
kioslave: install the djvuthumbnail.desktop conditionally
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-13 09:28:51 +02:00
Ivailo Monev
69a1de37d2
kioslave: wait for document decoding to complete in djvucreator
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-13 06:15:45 +02:00
Ivailo Monev
715b840e4a
kioslave: djvucreator rewrite to use DjVu library
...
rendering into memory block allocated for the QImage without extra process
should speed things up
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-12 17:46:44 +02:00