]>
Git trees. - libqmvoc.git/log
Pino Toscano [Sat, 17 Feb 2007 15:57:09 +0000 (15:57 +0000)]
API change:
remove label()/setLabel(), use directly the points as returned by points()
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634561
Pino Toscano [Sat, 17 Feb 2007 15:44:16 +0000 (15:44 +0000)]
API changes:
- KPlotAxis: showTickLabels() -> areTickLabelsShown()
- KPlotAxis: setShowTickLabels() -> setTickLabelsShown()
- KPlotObject: added the flags for PlotType
- KPlotObject: remove the show*() in flavour of getting directly the flags with the types
- KPlotWidget: toScreen() -> mapToWidget()
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634555
Pino Toscano [Sat, 17 Feb 2007 14:42:23 +0000 (14:42 +0000)]
dox dox dox
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634541
Pino Toscano [Sat, 17 Feb 2007 14:18:32 +0000 (14:18 +0000)]
fix typo that caused to leak th whole Private class
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634531
Pino Toscano [Sat, 17 Feb 2007 14:10:34 +0000 (14:10 +0000)]
API change:
- move all the private stuff of KPlotPoint to the Private class
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634529
Pino Toscano [Sat, 17 Feb 2007 13:39:33 +0000 (13:39 +0000)]
API changes:
- remove point(int) and count(), just use points()
- rename PStyle to PointStyle
- CamelCasing the enums
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634514
Pino Toscano [Sat, 17 Feb 2007 12:21:41 +0000 (12:21 +0000)]
API change:
- move all the private members of KPlotObject into a Private class
- make the class non-copiable
- merge the two constructors in one, made explicit
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634474
Pino Toscano [Sat, 17 Feb 2007 11:36:39 +0000 (11:36 +0000)]
remove i18n, as it's not completely needed in a test application
update the plot when starting the application
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634456
Pino Toscano [Sat, 17 Feb 2007 11:20:25 +0000 (11:20 +0000)]
typo in method name
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634452
Pino Toscano [Sat, 17 Feb 2007 10:50:13 +0000 (10:50 +0000)]
move the calculation of the data rect into a private function
save two axes lookups
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634442
Pino Toscano [Sat, 17 Feb 2007 00:41:05 +0000 (00:41 +0000)]
SVN_SILENT: move to the bottom and disable copy
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634362
Pino Toscano [Sat, 17 Feb 2007 00:29:56 +0000 (00:29 +0000)]
SVN_SILENT: antialias -> antialiasing
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634360
Pino Toscano [Sat, 17 Feb 2007 00:18:50 +0000 (00:18 +0000)]
API change:
move PixRect into the Private class
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634355
Pino Toscano [Sat, 17 Feb 2007 00:02:31 +0000 (00:02 +0000)]
messages to console don't need to be i18n'ed; remove unneeded #include's
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634354
Pino Toscano [Fri, 16 Feb 2007 23:42:02 +0000 (23:42 +0000)]
API change:
move the variables for the mask stuff and rectCost() into the Private class
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634352
Pino Toscano [Fri, 16 Feb 2007 23:29:28 +0000 (23:29 +0000)]
properly pass the events to the right base
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634350
Pino Toscano [Fri, 16 Feb 2007 23:04:51 +0000 (23:04 +0000)]
API changes:
- kill the x()/y()/x2()/y2()/dataWidth()/dataHeight() functions in flavour of a simplier dataRect() that just return the rect. (Note that x() and y() were quite ambiguous.)
- move the data rect and the secondary data rect in the Private class
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634346
Pino Toscano [Fri, 16 Feb 2007 21:48:44 +0000 (21:48 +0000)]
API change: remove the old constructor as no more used
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634328
Pino Toscano [Fri, 16 Feb 2007 21:47:20 +0000 (21:47 +0000)]
API changes:
- less contractions
- no references as return values where it makes no sense
- minimal apidox where missing
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634327
Pino Toscano [Fri, 16 Feb 2007 21:04:40 +0000 (21:04 +0000)]
dox dox dox
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634315
Pino Toscano [Fri, 16 Feb 2007 20:36:36 +0000 (20:36 +0000)]
API changes:
- improve the naming of the propert for object tooltip
- unvirtualize getters and setters for the paddings
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634304
Pino Toscano [Fri, 16 Feb 2007 20:12:31 +0000 (20:12 +0000)]
API change in the plot objects handling:
- add plotObjects() to get the list of the plot objects (thus removing objectCount() )
- add addPlotObjects() to add more objects with a single update
- add 'Plot' in the name of the other functions that work with the plot objects
- finally hide the real object list in the Private class
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634293
Pino Toscano [Fri, 16 Feb 2007 18:41:08 +0000 (18:41 +0000)]
give it a sane background color and a default size so it's a bit better within designer :)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634265
Pino Toscano [Fri, 16 Feb 2007 17:49:24 +0000 (17:49 +0000)]
API change: deprecated the constructor with the limits, in flavour of a simple constructor; setLimits() is going to be used.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634247
Pino Toscano [Fri, 16 Feb 2007 17:13:02 +0000 (17:13 +0000)]
SVN_SILENT QHash is needed only in the implementation
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634233
Pino Toscano [Fri, 16 Feb 2007 17:10:21 +0000 (17:10 +0000)]
API change: move the axis in the Private class
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634230
Pino Toscano [Fri, 16 Feb 2007 16:57:25 +0000 (16:57 +0000)]
only look for the proper axis only once, not even 3!
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634221
Pino Toscano [Fri, 16 Feb 2007 16:47:22 +0000 (16:47 +0000)]
don't look twice in the hashmap
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634220
Pino Toscano [Fri, 16 Feb 2007 16:39:17 +0000 (16:39 +0000)]
API changes:
- move the padding information to the Private class
- add a const overload for axis()
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634216
Pino Toscano [Fri, 16 Feb 2007 16:12:55 +0000 (16:12 +0000)]
API work on KPlotAxis:
- hide all the private stuff into the Private class
- disable the copy of the class
- merge the two constructors in one, explicit
- remove the 'inline' declarations
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634205
Pino Toscano [Fri, 16 Feb 2007 15:53:07 +0000 (15:53 +0000)]
Start moving some of the KPlotWidget internal stuff to a Private class.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634193
Peter Hedlund [Tue, 13 Feb 2007 23:00:25 +0000 (23:00 +0000)]
cleanup
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=633379
Pino Toscano [Tue, 13 Feb 2007 17:34:18 +0000 (17:34 +0000)]
micro layout improvements, buddy for the search label
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=633272
Pino Toscano [Tue, 13 Feb 2007 15:33:28 +0000 (15:33 +0000)]
improve a check and put my name into the copyrights, as it's my code too ;)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=633233
Pino Toscano [Tue, 13 Feb 2007 14:55:40 +0000 (14:55 +0000)]
change the order of the args of GlossaryDialog constructor to be a bit more Qt4-ish
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=633220
Pino Toscano [Tue, 13 Feb 2007 14:45:15 +0000 (14:45 +0000)]
put html tooltips for the items in the references section
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=633216
Pino Toscano [Tue, 13 Feb 2007 14:37:06 +0000 (14:37 +0000)]
remove the clear button, already provided by klineedit
header cleanup
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=633213
Pino Toscano [Tue, 13 Feb 2007 14:29:53 +0000 (14:29 +0000)]
Port the side tree of the glossary dialog to QTreeWidget; remove the usage of Qt3/KDE3 support.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=633210
Pino Toscano [Tue, 13 Feb 2007 11:59:20 +0000 (11:59 +0000)]
d-pointer-ize GlossaryDialog (the slots still are in the class)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=633160
Peter Hedlund [Mon, 12 Feb 2007 04:06:21 +0000 (04:06 +0000)]
A better sort implementation
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=632735
Pino Toscano [Sun, 11 Feb 2007 23:01:49 +0000 (23:01 +0000)]
the parser does not own the original elements, no better not delete them
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=632704
Peter Hedlund [Fri, 9 Feb 2007 17:27:15 +0000 (17:27 +0000)]
Warnings-- (from http://ktown.kde.org/~dirk/dashboard/4.0/i386/kdeedu.html). More to come.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=631983
Pino Toscano [Thu, 8 Feb 2007 21:33:21 +0000 (21:33 +0000)]
remove qt3_support
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=631725
David Faure [Wed, 7 Feb 2007 10:41:34 +0000 (10:41 +0000)]
config.h cleanup: kstars needs one for indi and kiten needs one for some c code which might be 3rd party,
but the rest of kdeedu doesn't need one.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=631182
Peter Hedlund [Tue, 6 Feb 2007 23:25:09 +0000 (23:25 +0000)]
Work on vocabulary sorting
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=631008
Peter Hedlund [Tue, 6 Feb 2007 04:55:34 +0000 (04:55 +0000)]
Work on vocabulary sorting
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=630722
Peter Hedlund [Mon, 5 Feb 2007 22:43:49 +0000 (22:43 +0000)]
Statistics are now reset from the statistics dialog
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=630645
Matthias Kretz [Tue, 30 Jan 2007 11:20:46 +0000 (11:20 +0000)]
one more occurence of KInstance
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=628558
Pino Toscano [Tue, 30 Jan 2007 00:11:18 +0000 (00:11 +0000)]
kinstance -> kcomponentdata
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=628403
Matthias Kretz [Mon, 29 Jan 2007 18:33:59 +0000 (18:33 +0000)]
merge the kinstance-redesign branch back to trunk.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=628316
Matthias Kretz [Mon, 29 Jan 2007 17:07:56 +0000 (17:07 +0000)]
merge to rev. 628262
svn path=/branches/work/kinstance-redesign/kdeedu/libkdeedu/; revision=628271
Benoît Jacob [Mon, 29 Jan 2007 16:52:52 +0000 (16:52 +0000)]
remove some kDebug's
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=628264
Benoît Jacob [Mon, 29 Jan 2007 16:40:33 +0000 (16:40 +0000)]
Complete the Kalzium 3D navigation system. Fix related bugs.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=628260
Matthias Kretz [Sun, 28 Jan 2007 13:39:33 +0000 (13:39 +0000)]
convert-kinstance.pl and a lot of reverts because of ::instance() functions
in many places
svn path=/branches/work/kinstance-redesign/kdeedu/libkdeedu/; revision=627859
Pino Toscano [Sun, 21 Jan 2007 11:33:47 +0000 (11:33 +0000)]
move the QT3_SUPPORT definitions where they really need to be
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=625841
Pino Toscano [Sun, 21 Jan 2007 11:33:09 +0000 (11:33 +0000)]
less qt3support
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=625840
Pino Toscano [Sun, 21 Jan 2007 01:15:20 +0000 (01:15 +0000)]
move the QT3_SUPPORT definitions only where they still need to be
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=625761
Carsten Niehaus [Fri, 19 Jan 2007 18:12:53 +0000 (18:12 +0000)]
* Sync with latest BODR
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=625269
Peter Hedlund [Wed, 17 Jan 2007 22:33:47 +0000 (22:33 +0000)]
Work on appending, assigning, and deleting languages
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=624739
Benoît Jacob [Sun, 14 Jan 2007 18:19:59 +0000 (18:19 +0000)]
New Kalzium 3d navigation system. Not 100% finished, and the visual
effects aren't there yet, but the idea is there.
You need to svn up eigen. Should we modify Kalzium's CMakeLists to
say that Eigen 1.0.1 isn't enough anymore ?
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=623406
Peter Hedlund [Sun, 14 Jan 2007 01:23:34 +0000 (01:23 +0000)]
Work on appending, assigning, and deleting languages
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=623103
Peter Hedlund [Thu, 11 Jan 2007 02:59:03 +0000 (02:59 +0000)]
Work on removing duplicates
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=622235
Pino Toscano [Sat, 6 Jan 2007 14:56:30 +0000 (14:56 +0000)]
export the classes needed in kalzium
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=620539
Pino Toscano [Thu, 4 Jan 2007 11:37:51 +0000 (11:37 +0000)]
Eigen's includes are needed here too
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=619769
Pino Toscano [Wed, 3 Jan 2007 11:28:31 +0000 (11:28 +0000)]
SVN_SILENT unused parameters
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=619421
Aaron J. Seigo [Sat, 30 Dec 2006 19:38:56 +0000 (19:38 +0000)]
use KIcon, fewer deprecated warnings. patch by Nicolas Lécureuil
CCMAIL:neoclust@mandriva.org
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=618013
Peter Hedlund [Thu, 21 Dec 2006 21:07:33 +0000 (21:07 +0000)]
More consistent use of setModified()
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=615524
Jason Harris [Thu, 21 Dec 2006 04:51:04 +0000 (04:51 +0000)]
Another signal/slot fix in ExtDateTimeEdit
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=615325
Jason Harris [Thu, 21 Dec 2006 04:32:17 +0000 (04:32 +0000)]
Make the arguments of the dateChanged(ExtDate) and
dateTimeChanged(ExtDateTime) signals const references.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=615324
Jason Harris [Thu, 21 Dec 2006 04:28:11 +0000 (04:28 +0000)]
Fix "no such signal: QTimeEdit::valueChanged(int)" error.
Also, modified the API of some signals:
ExtDateEdit::valueChanged(int)
--> ExtDateEdit::dateChanged(const ExtDate&)
ExtDateTimeEdit::valueChanged(int)
--> ExtDateTimeEdit::dateTimeChanged(const ExtDateTime&)
CCMAIL: kstars-devel@kde.org
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=615323
Peter Hedlund [Sun, 17 Dec 2006 18:34:40 +0000 (18:34 +0000)]
Ensure that the correct query state of an entry is displayed. Really this time.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=614427
Peter Hedlund [Sun, 17 Dec 2006 18:25:19 +0000 (18:25 +0000)]
Ensure that the correct query state of an entry is displayed
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=614423
Peter Hedlund [Wed, 13 Dec 2006 21:02:51 +0000 (21:02 +0000)]
Read grade value correctly
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=613315
Jason Harris [Mon, 11 Dec 2006 02:06:47 +0000 (02:06 +0000)]
Several fixes:
+ implement KPlotObject::label(int) and KPlotObject::setLabel(int,
QString)
+ Add KPlotWidget::pixRect() accessor, returning the QRect of the plot
area in pixel coordinates.
+ Don't draw plot objects that lie outside the PixRect.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=612364
Aaron J. Seigo [Mon, 4 Dec 2006 15:55:31 +0000 (15:55 +0000)]
makeStandardCaption
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=610591
Dirk Mueller [Mon, 4 Dec 2006 15:40:08 +0000 (15:40 +0000)]
compile++
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=610583
Carsten Niehaus [Mon, 27 Nov 2006 15:01:40 +0000 (15:01 +0000)]
Arrg. Now it should really compile.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=608426
Carsten Niehaus [Mon, 27 Nov 2006 14:55:12 +0000 (14:55 +0000)]
Fix compilation for systems without OpenBabel2.1
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=608423
Carsten Niehaus [Mon, 27 Nov 2006 14:40:54 +0000 (14:40 +0000)]
Wow, this commit looks huge :)
Technically I am just moving code from A to B. The 3D-Viewer is now
independend of Kalzium, I just need to rename the classes (from
Kalzium* to Compound* I think...). But I wanted to move the code itself
first.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=608413
Carsten Niehaus [Sun, 26 Nov 2006 12:35:19 +0000 (12:35 +0000)]
* Ok, I still see no real way to test my KPart-code but this might
work. I will move it to libkdeedu as Kalzium is not using this
code anyway. There, I will code a small mini-demo application
to test the KPart-stuff.
So eventually Konq will be able to display molecules in 3D by
using Kalziums 3D code (which is 99.999% done by Benoit Jacob)
svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglpart.cpp; revision=607947
Benoît Jacob [Sun, 26 Nov 2006 12:17:25 +0000 (12:17 +0000)]
- fix compilation against latest OpenBabel (so you need to update your
OpenBabel)
- remove abstract base class VertexArray, remove virtual stuff in
Sphere and Cylinder. That doesn't increase speed, because anyway we
use OpenGL displaylist caching, but that makes the source code easier
to read.
svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglhelperclasses.cpp; revision=607943
Andreas Nicolai [Sat, 25 Nov 2006 17:21:32 +0000 (17:21 +0000)]
Adjusted CMakeList.txt for Qt4 Only builds and builds of KTouch outside
from kdeedu.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=607760
Carsten Niehaus [Sat, 25 Nov 2006 10:36:53 +0000 (10:36 +0000)]
Forget the .moc-include. Now also include it in the CMakeLists.txt
svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglpart.cpp; revision=607599
Carsten Niehaus [Sat, 25 Nov 2006 10:26:09 +0000 (10:26 +0000)]
update on the kpart-stuff. It now compiles but doesn't link.
svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglpart.cpp; revision=607595
Carsten Niehaus [Sat, 25 Nov 2006 10:19:20 +0000 (10:19 +0000)]
* Very first version of the new KPart-based molecularviewer
svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglpart.cpp; revision=607592
Carsten Niehaus [Sun, 19 Nov 2006 09:56:50 +0000 (09:56 +0000)]
* Fix Copyright header stuff
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=606098
Benoît Jacob [Fri, 17 Nov 2006 08:42:01 +0000 (08:42 +0000)]
Twofold improvement in Kalzium's 3D viewer:
- automatically set up nice viewpoint when loading a molecule.
- draw multiple bonds with "intelligent" orientation, so that they
avoid looking like single bonds.
Both improvements rely on Eigen's linear regression feature.
svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglhelperclasses.cpp; revision=605562
Laurent Montel [Wed, 15 Nov 2006 17:52:09 +0000 (17:52 +0000)]
Fix compile under windows
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=605169
Laurent Montel [Wed, 15 Nov 2006 17:45:52 +0000 (17:45 +0000)]
Fix compile under windows
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=605168
Laurent Montel [Fri, 10 Nov 2006 16:08:06 +0000 (16:08 +0000)]
Now kde doesn't use .la file
svn path=/trunk/KDE/kdeedu/kalzium/src/widgets/CMakeLists.txt; revision=603881
Laurent Montel [Fri, 10 Nov 2006 16:08:06 +0000 (16:08 +0000)]
Now kde doesn't use .la file
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=603881
Laurent Montel [Thu, 9 Nov 2006 12:17:50 +0000 (12:17 +0000)]
Fix export
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=603546
Stephan Kulow [Mon, 6 Nov 2006 08:44:20 +0000 (08:44 +0000)]
let's say 0 is a good default
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=602591
Laurent Montel [Thu, 2 Nov 2006 16:37:54 +0000 (16:37 +0000)]
Fix compile
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=601245
Carsten Niehaus [Wed, 1 Nov 2006 15:56:41 +0000 (15:56 +0000)]
Fix the apidocs
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=600987
Dirk Mueller [Mon, 30 Oct 2006 08:08:58 +0000 (08:08 +0000)]
return at least something
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=600285
Jason Harris [Sun, 29 Oct 2006 21:31:43 +0000 (21:31 +0000)]
Draw a line from a data point to its label if the label is not
very near the point. When a line is drawn, it also draws a
rounded rectangle around the label text.
CCMAIL: kde-edu@kde.org
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=600211
Carsten Niehaus [Sun, 29 Oct 2006 11:43:21 +0000 (11:43 +0000)]
Shut up GCC 4.1.x
This "order of variables in .h files and .cpp files" is really... picky :)
CCMAIL: kstars@30doradus.org
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=599987
Carsten Niehaus [Sun, 29 Oct 2006 11:13:45 +0000 (11:13 +0000)]
Porting to QList<ChemicalDataObject> (no pointer
Porting to QSharedPointer and co, this shares implicitly.
Result:
==8109== LEAK SUMMARY:
==8109== definitely lost: 980 bytes in 17 blocks.
==8109== indirectly lost: 14,505 bytes in 245 blocks.
==8109== possibly lost: 792 bytes in 6 bloc
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=599978
Jason Harris [Sun, 29 Oct 2006 03:25:34 +0000 (03:25 +0000)]
Implementing non-colliding text labels in kdeeduplot, based on kmplot
code.
It works, but it could probably be faster. You don't need to know
anything about it to use the feature, it all happens behind the scenes.
Just add some items with labels and enjoy the magic.
However, in the interest of inspiring optimization, here's a brief
description of how it works:
KPlotWidget now has a private array of floats: PlotMask[100][100].
This is a rough division of the content of the plot into a 100x100
grid. Where the plot is empty, the array is zero, where it has content,
it is >0. When items are added to the plot (points, lines, bars, or
labels), the corresponding positions in PlotMask are incremented by an
amount that can vary for different kinds of items (for example, right
now Bars don't increment as much as points or lines).
The function KPlotWidget::placeLabel() is responsible for positioning
item labels. It attempts to place the label close to the point to
which it belongs, while minimizing the label's overlap with masked
regions of the plot. Ideally, it won't overlap with masked regions at
all. This is done in a rather brute-force way: it tests label
positions in a 40x40 grid around the position of the point, and
determines the "cost" for placing the label at each position. Higher
cost is incurred for (a) overlapping with a masked region, (b) being
further from the point position, and (c) extending beyond the bounds
of the plot. The position that has the lowest "cost" is then adopted,
and the label is drawn at that position.
You can get an idea of the CPU impact of this cost-analysis using
the test suite I added to kdeeduplot. Display the "Points, lines
and bars" plot, and then resize the window. Note the smoothness of
the redraws. Now display "Points, lines and bars with labels" and
resize the window. The redraws take much longer in this case.
CCMAIL: kde-edu@kde.org
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=599914