[Okular-devel] Need help adding an action to Menubar - New to KDE libs
Jaydeep Solanki
jaydp17 at gmail.com
Sun Aug 12 18:23:39 UTC 2012
Thanks man,
Got what I was asking,
http://techbase.kde.org/Development/Architecture/KDE4/XMLGUI_Technology did
the work :)
On Sun, Aug 12, 2012 at 11:22 PM, Brian K <bri.kor.21 at gmail.com> wrote:
> Hi,
> 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).
>
> The reason you've likely been unable to add is that Okular, and the kpart
> plugin use kxmlgui:
> http://techbase.kde.org/Development/Architecture/KDE4/XMLGUI_Technology
> 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:
> http://techbase.kde.org/Development/Tutorials/Using_KParts
>
> Good luck,
> Brian
>
>
> On 08/12/2012 11:59 AM, Jaydeep Solanki wrote:
>
> Hi everyone,
> I just wanted to know about how to add an action to a Menu.
> Like we have Open in the File Menu, suppose if I want to add something to
> the File Menu, how to do that.
> I experimented with the part.cpp file but all in vain :(
>
> Thanks :),
> Jaydeep
>
>
>
>
> _______________________________________________
> Okular-devel mailing listOkular-devel at kde.orghttps://mail.kde.org/mailman/listinfo/okular-devel
>
>
>
> _______________________________________________
> Okular-devel mailing list
> Okular-devel at kde.org
> https://mail.kde.org/mailman/listinfo/okular-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20120812/6b507aa2/attachment.html>
More information about the Okular-devel
mailing list