[Kmymoney-devel] Tags

Cristian Oneț onet.cristian at gmail.com
Mon Oct 8 12:15:58 UTC 2012


2012/10/7 Alessandro <axela74 at yahoo.it>:
> Hi,

Hi,

> I'm trying to add 'tags' functionality to KMyMoney and I've some questions
> to the developers.
>
> I'm creating a new subclass of KMyMoneyMVCCombo: MyMoneyTagCombo, in a
> similar way as the class KMyMoneyPayeeCombo
>
> I created also a new subclass of MyMoneyObject: MyMoneyTag.
>
> The MyMoneyTag have a valid_from and valid_to date fields (or maybe it's
> better call them visible_from and visible_to, they are optional but if
> filled in the transaction editor widget will appear only tags that have the
> date of the transaction between valid_from and valid_to. At this time the
> transaction date is filled after the filling of Category field, and I
> thought to put the Tag field just after the Category one. Do you think that
> the date field can be put just after the Payee field or there is a good
> reason to put it where it's now?

Good luck with the transaction editor :) it's pretty hard to change
something there as far as I remember. Make sure that you test your
changes with the transaction form and without it (in line editing).
I'm kind of used to the date field being where it is but I couldn't
tell you a reason why it's there.

>
> I think that allowing tags to be hierarchical is good idea (just a little
> example: the user may want to put all tags like: Paris-2010, Rome-2011 under
> a parent tag named Travel) do you think that it can be made by following the
> KMyMoneyCategory class (i.e. by making a subclass of KMyMoneyCombo) or
> should I subclass KMyMoneyMVCCombo as I'm doing now?

KMyMoneyMVCCombo should be the direction towards which we are heading.
KMyMoneyCombo is still present because at the time when we ported
KMyMoney to Qt4 we didn't manage to implement it's functionality with
QCompleter (maybe because of this [1] bug). Mainly we were not able to
filter the displayed completion tree like KMyMoneyCombo does.

But when this will be possible (and someone will have the will to do
it) we intend to remove KMyMoneyCombo and rename KMyMoneyMVCCombo to
KMyMoneyCombo.

Currently I don't have much time to think about KMyMoney so I don't
really have an opinion on this feature at the moment.

Regards,
Cristian

P.S: [2] tracks this feature and [3] is the documentation that we have
on what this feature should look like

>
> Ciao,
>  Alessandro

[1] https://bugreports.qt-project.org/browse/QTBUG-7830
[2] https://bugs.kde.org/show_bug.cgi?id=207761
[3] http://techbase.kde.org/Projects/KMyMoney/Features/Tags


More information about the KMyMoney-devel mailing list