plugin development help
allan
agander93 at gmail.com
Tue Mar 22 08:15:55 UTC 2016
There may be more than that required. There was some discussion here a while back. You'll need to search the list.Allan
Sent from my Samsung device
-------- Original message --------
From: Przemek Kamiński <cgenie at gmail.com>
Date: 22/03/2016 05:32 (GMT+00:00)
To: For KMyMoney development <kmymoney-devel at kde.org>
Cc: kmymoney-devel at kde.org
Subject: Re: plugin development help
This is what my question was about. I do have the rc file (see the repo I linked to). Problem is that I don't want to install it into system directory when developing. I tried to run it with
KDEBASE=/tmp ./kmymoney
but with no success.
P.
Sent using CloudMagic Email
On Mon, Mar 21, 2016 at 11:48 PM, aga <agander93 at gmail.com> wrote:
On 21/03/16 19:47, Przemysław Kamiński wrote:
> Hello,
>
> I would like to add Lua scripting support to KMyMoney as a plugin. This
> is what I have as a draft:
>
> https://github.com/CGenie/kmymoney/tree/4.7-lua-plugin/kmymoney/plugins/lua
>
> One question -- when I compile KMyMoney and install it into some /tmp
> directory -- does the kmymoney bin have to be executed in some special
> way? I mean I add an .rc file to add 'Lua...' to the Tools menu, I guess
> it has to find that .rc file somehow. If I just run
> /tmp/usr/bin/kmymoney the menu entry is not there.
>
> Regards,
> Przemek
Where .rc files get installed is specified in the CMakeLists.txt file.
Generally, /usr/share/kde4/apps/<yourpluginname>/.
What is needed is something on the lines of
kmymoney/kmymoney/plugins/csvimport/kmm_csvimport.rc.
"<!DOCTYPE kpartgui>
<kpartgui name="kmymoneyplugin-csvimporter" version="0">
<MenuBar>
<Menu name="file">
<Menu name="import" append="import_merge">
<Action name="file_import_csv" />
</Menu>
</Menu>
</MenuBar>
</kpartgui>
", which you'd need to adjust.
There are some tutorials like
"https://techbase.kde.org/Development/Tutorials/Services/Plugins".
I haven't tried this for some while so cannot guarantee all is OK, but
it should give you a start.
Also, have a look at the csvimporter plugin, which I cobbled together
from various sources.
Read them thoroughly to get an understanding. You know where we are.
Allan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20160322/5b889d65/attachment-0001.html>
More information about the KMyMoney-devel
mailing list