Hello,
If you can help me on this one, this would better my understanding of how KDE works.
What I'm to do is get the "save playlist as..." drop-down menu action of kaffeine's playlist menu to save playlists in m3u format by default instead of the less widely used kaffeine playlist format.
I've found the file where the drop-down menu actions are stored:
/home/xxx/.kde/share/apps/kaffeine/kaffeineplaylist.rc
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui version="4" name="kaffeineplaylist" >
<MenuBar>
<Menu name="playlist" >
<text>Play&list</text>
<Action name="playlist_shuffle" />
<Action name="playlist_repeat" />
<Action name="playlist_autocover" />
<Action name="playlist_showplayer" />
<Separator/>
<Action name="playlist_clear" />
<Action name="playlist_new" />
<Action name="playlist_load" />
<Action name="playlist_save_as" />
<Action name="playlist_remove" />
</Menu>
</MenuBar>
<ActionProperties/>
</kpartgui>
|
OK this is very simple. I managed to add a separator. But if I add an action named "playlist_abcde" it does nothing, which is easily understandable, because playlist_abcde probably has no meaning for the application.
But then I'm puzzled and actually blocked for the following reasons:
I don't find where the possible actions of a KDE application are stored, if they are stored at all.
So, I ignore how kaffeine relates this action named "playlist_save_as" to an icon, a text for the menu entry which is "Save Current Playlist As...," and an action which is to open a "save as..." dialog (it's the latter that I would like to customize).
Most likely, each action in the drop-down menu calls an action of the dcop server. Is that it? But I can't seem to find how these action names in the files like the above relate to the dcop functions.
I roamed around in "dcop kaffeine (...)" but failed to locate the dcop action corresponding to "save current playlist as..."
This means I don't know what to do next.
I seem to know that you can change everything around the way you want in the drop down menus of KDE apps. I read this somewhere. I googled about it, the only thing I could find is a bunch of advice about making user-friendly drop down menus, which sadly did not go into technical explanations about drop-down menus.
Anybody can give me some hints about how to create/modify drop-down menu actions in KDE applications, or point me to a good, technical and self-sufficient documentation about this?
Thaks all by advance.