![]() Registered Member ![]()
|
I'm working on a project using Qt/C++. The project requires overlay of icons for KDE filesystem.
The requirement goes like this - For any change/modification to a file/directory in the filesystem, I need to change the corresponding icon properties. I'm trying to do icons overlay similar to how Tortoise SVN adds icons over a file/directory on any change/modification to the corresponding filesystem. How do I access KDE icon overlay APIs in Qt/C++ ? Where do I start from ? Thank you. |
![]() Administrator ![]()
|
In order to do this, you'll need to plug into KDE applications i'm afraid. As i'm not certain what API is available to accomplish this in a general purpose fashion, you may want to ask it on the kde-devel@kde.org mailing list instead.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Global Moderator ![]()
|
You want to do this in every application? Or just your own? The former would probably be very hard because applications have various different ways of listing files.
I'm working on the KDevelop IDE.
|
![]() Registered Member ![]()
|
Sorry for the late reply scummos.
What I'm trying to do is to overlay an icon on the existing icon of a file/directory. For example - There is a file /home/Rahul/a.txt and I want to overlay the icon from /usr/share/icons/default.kde/16x16/actions/ok.png. I want to write a small program or a small plugin which does the same. Kindly give a small example which helps me achieve this as I'm very new to KDE/Dolphin. Thank you. ------------------------------------------------------------------------ @ bcooksley As per your suggestion, I mailed kde-devel@kde.org the same but didn't get any response. Kindly help me proceed further. Thank you. |
![]() Global Moderator ![]()
|
So you want to do this only for dolphin? Then you should get the dolphin code and look into where the icons are painted. I'm sure you can plug it in there somewhere.
I'm working on the KDevelop IDE.
|
![]() Registered Member ![]()
|
I'm developing an application for Linux using Qt/C++. And it has the requirement of overlaying icon on some of the files/directories similar to dropbox/tortoise svn.
So I have to explore all file/window managers and I started with KDE - Dolphin. |
![]() Administrator ![]()
|
Okay, if this is aimed to be Dolphin specific then I would suggest looking into Dolphin's SCM integration functionality as that allows adding overlays as well as custom actions to the menus I believe to carry out certain actions. While you're not working on a SCM integration similar code should be able to assist you here. If you have any queries specifically about this I would recommend asking them in the Dolphin forum - there may be better ways of achieving this.
Please note that you'll need to write separate code to interface with Folder View - which displays files/folders on the desktop.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]