KCalendarSystemChinese - calendar for Chinese in KDE 4
winter at kde.org
Wed Oct 29 13:28:05 GMT 2008
On Thursday 20 December 2007 8:01:29 am Liang Qi wrote:
> Hi, all,
> There is no code for Chinese calendar, which is mostly used by people
> in or from East Asia, China, Korean, Japan and so on.
I was just reminded about this from a discussion we are having about
a new calendar system for Hindu holidays.
So... whatever happened to this code?
Are all the issues from the original discussion fixed?
I see that John Layt has this as a TODO item on the 4.2 Feature Plan,
so we could conceivably have this included with KDE 4.2 .
> I just based on the code of ccal and create KCalendarSystemChinese.
> And I read some docs on line:
> http://thunder.cwru.edu/ccal/rule.htm (in Chinese)
> My code is in:
> cp kde4/kcalendarsystemchinese.h kde/src/KDE/kdelibs/kdecore/date
> cp kde4/kcalendarsystemchinese.cpp kde/src/KDE/kdelibs/kdecore/date
> cp kde4/kcalendarsystem.cpp kde/src/KDE/kdelibs/kdecore/date
> cp kde4/CMakeList.txt kde/src/KDE/kdelibs/kdecore
> And then build your kdelibs.
> You can try two examples in example/test, example/guitest.
> Some known issue or problem which you can help me:
> 1. for virtual bool setDate( QDate &date, int year, int month, int day
> ), what's it for? what's the difference between it with setYMD? Is it
> my understanding(in my current code) right or not?
> 2. for epoch(), what's it?
> 3. in my example/test, if I call weekStartDay(), it will crash, do you
> have any hints?
> 4. Just because ccal has its own calculation function, a little slow,
> especially when using it with KDatePicker, then I choose to like ccal,
> embed a data table for 1950-2050 in it, now speed is ok. Maybe some
> one can optimize the code of ccal, or just for my case.
More information about the kde-core-devel