Jason Harris [Thu, 19 Aug 2004 04:09:41 +0000 (04:09 +0000)]
Fix highlighting of the selected date in the ExtDatePicker widget
for years < 2000. The highlighted date was off by one week because of a
bug in ExtDate::dayOfWeek().
Also, make ExtDate::addMonths() more robust.
This time I actually committed to the correct branch...
Jason Harris [Tue, 1 Jun 2004 01:33:18 +0000 (01:33 +0000)]
Fixing crash condition in ExtDateWidget. If initialized without a date
argument, it was initialized to an invalid date, which caused a crash in the
function ExtDate::daysInMonth(). Two fixes make the widget much more robust:
+ ExtDate::daysInMonth() and ExtDate::leapYear() now check the validity of the
date first, and return sensible default values if the date is invalid.
+ the default ctor ExtDateWidget() now initializes to the current date, rather
than an invalid date.
Jason Harris [Thu, 13 May 2004 07:07:35 +0000 (07:07 +0000)]
Fixing some problems in ExtDate and friends:
Fixed ExtDate::setJD() (did not set calendar date)
Fixed ExtDateTime::addSecs() (bad conversion from int to uint; simplified code)
(added author comment to extdatetbl.cpp)
Jason Harris [Wed, 28 Apr 2004 05:44:59 +0000 (05:44 +0000)]
ExtDate now stores the date internally as the actual Julian Day number, rather than the count of days since 1 Jan 0001. Added function ExtDate::jd() to return the Julian Day and ExtDate::setJD(long int) to set it. Some other code cleanups as well.
Jason Harris [Sun, 18 Apr 2004 07:58:44 +0000 (07:58 +0000)]
Adding ExtDate library to libkdeedu. ExtDate is a replacement for
QDate that eliminates its arbitrary date-range limits (QDate cannot
accept dates prior to year 1752 or after year 8000). There is no
theoretical limit to the range of dates that ExtDate can accept, but
I have imposed a range of -50000 to +50000 for now.
The ExtDate library is based on the initial work of Michel Guitel, who
wrote the original ExtDate class. I have added the following classes:
Most of the work was simply pasting in the class to be replaced, and
global-replacing QDate with ExtDate. However, there are some
remaining issues:
+ currently, only the Gregorian calendar is supported
+ using KLocale to set the date string format does not work
+ API docs are needed
Once the issues have been worked out, I would like to propose to
kde-core-devel that these classes be added to kdelibs for KDE4.
However, I am not sure if any other apps besides KStars really need
very remote dates.
The library includes two test-programs for verifying the performance
of ExtDate. The first (test_extdate) is a command-line program that
simply outputs the results of 9 tests comparing the performance of
ExtDate and QDate. If ExtDate is working correctly, then the only
differences will be for dates outside of QDate's valid range. The
second (test_extdatepicker) is a GUI app showing a KDatePicker and an
ExtDatePicker side-by-side (there is a slight rendering difference
between ExtDatePicker and KDatePicker on my system; I don't know
why this is happening).
The other way to test it is to run kstars; I am going to commit the
ExtDate code in kstars shortly...
Jason Harris [Mon, 15 Sep 2003 21:23:59 +0000 (21:23 +0000)]
when drawing KPlotObject::LABEL items, the position of the label is now
centered on the data point's X-coordinate, and slightly below the data
point in Y. This is useful for (and in fact assumes that one is) plotting
the labels next to KPlotObject::POINT items that have the same
coordinates. (This change was implemented in order to add planet labels
to the solar system plotter in KStars).
TODO: make the vertical offset adjustable. Should be zero by default.
(have to wait for after 3.2)
Jason Harris [Sun, 20 Jul 2003 04:52:06 +0000 (04:52 +0000)]
Added ability to add axis labels to the plot
(setXAxisLabel(QString)/setYAxisLabel(QString)).
The "padding" space around the plot area is no longer hard-coded.
The amount of padding can be set explicitly with setXXXPadding(int),
where XXX={Left, Right, Top, Bottom}. If not explicitly set, the code
will automatically choose a good amount of padding, depending on whether
there are Axis Labels and/or Tick Mark Labels present.
Also, the placement of Tick Mark Labels is a bit smarter now; the labels
should be better centered on the corresponding tick.
Jason Harris [Fri, 11 Jul 2003 13:11:18 +0000 (13:11 +0000)]
Adding files for libkdeeduplot...sorry for the confusion; I had trouble
adding these initially, but I thought I had finally committed them. Hope
it works this time.
Scott Wheeler [Sat, 12 Oct 2002 18:03:00 +0000 (18:03 +0000)]
Don't install the headers for libkdeedu. We don't really want this to have
to be binary compatible with future releases.
Also, I removed the "libkdeedu/kdeeduui" from the Makefile.am since it's
not currently being used for anything (and there hasn't been a commit since
June).
Scott Wheeler [Fri, 7 Jun 2002 15:08:07 +0000 (15:08 +0000)]
Removed the old sources for libkdeedu -- they confused me, as there were
two versions. I also updated the Makefile.am and FlashKard to reflect
the new location.
Scott Wheeler [Wed, 29 May 2002 23:59:11 +0000 (23:59 +0000)]
Added the beginnings of a kde-edu library, libkdeedu, which at the moment
just contains a simple kvtml parser. I also made changes to FlashKard to
have it make use of this lib.