<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
Where you need to go to add the actions depends on what exactly
you are intending. The Okular program that you use directly is a
shell, which uses a kpart, a kind of plugin, to do most of the
work. So if your action is specific to Okular, but not the plugin,
you would add it to the shell (shell.h, shell.cpp, shell.rc). If
on the other hand the action would go in the kpart (plugin) then
you would want to modify (part.cpp, part.h, part.rc).<br>
<br>
The reason you've likely been unable to add is that Okular, and
the kpart plugin use kxmlgui:<br>
<a class="moz-txt-link-freetext" href="http://techbase.kde.org/Development/Architecture/KDE4/XMLGUI_Technology">http://techbase.kde.org/Development/Architecture/KDE4/XMLGUI_Technology</a><br>
What that means is that you have to modify both the c++ file and a
second rc file that defines the menu. The techbase tutorial looks
pretty good on basic kpart usage if you're looking for somewhere
to start:<br>
<a class="moz-txt-link-freetext" href="http://techbase.kde.org/Development/Tutorials/Using_KParts">http://techbase.kde.org/Development/Tutorials/Using_KParts</a><br>
<br>
Good luck,<br>
Brian<br>
<br>
On 08/12/2012 11:59 AM, Jaydeep Solanki wrote:<br>
</div>
<blockquote
cite="mid:CALCx4843041CxCbv5BX3SoKLc_8wEyXodPHg2YHOXV19OY1RDA@mail.gmail.com"
type="cite">Hi everyone,<br>
I just wanted to know about how to add an action to a Menu.<br>
Like we have Open in the File Menu, suppose if I want to add
something to the File Menu, how to do that.<br>
I experimented with the part.cpp file but all in vain :(<br>
<br>
Thanks :),<br>
Jaydeep<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Okular-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Okular-devel@kde.org">Okular-devel@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/okular-devel">https://mail.kde.org/mailman/listinfo/okular-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>