]> Git trees. - libqmvoc.git/log
libqmvoc.git
18 years agoSVN_SILENT: antialias -> antialiasing
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

18 years agoAPI change:
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

18 years agomessages to console don't need to be i18n'ed; remove unneeded #include's
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

18 years agoAPI change:
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

18 years agoproperly pass the events to the right base
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

18 years agoAPI changes:
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

18 years agoAPI change: remove the old constructor as no more used
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

18 years agoAPI changes:
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

18 years agodox dox dox
Pino Toscano [Fri, 16 Feb 2007 21:04:40 +0000 (21:04 +0000)]
dox dox dox

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634315

18 years agoAPI changes:
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

18 years agoAPI change in the plot objects handling:
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

18 years agogive it a sane background color and a default size so it's a bit better within design...
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

18 years agoAPI change: deprecated the constructor with the limits, in flavour of a simple constr...
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

18 years agoSVN_SILENT QHash is needed only in the implementation
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

18 years agoAPI change: move the axis in the Private class
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

18 years agoonly look for the proper axis only once, not even 3!
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

18 years agodon't look twice in the hashmap
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

18 years agoAPI changes:
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

18 years agoAPI work on KPlotAxis:
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

18 years agoStart moving some of the KPlotWidget internal stuff to a Private class.
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

18 years agocleanup
Peter Hedlund [Tue, 13 Feb 2007 23:00:25 +0000 (23:00 +0000)]
cleanup

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=633379

18 years agomicro layout improvements, buddy for the search label
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

18 years agoimprove a check and put my name into the copyrights, as it's my code too ;)
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

18 years agochange the order of the args of GlossaryDialog constructor to be a bit more Qt4-ish
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

18 years agoput html tooltips for the items in the references section
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

18 years agoremove the clear button, already provided by klineedit
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

18 years agoPort the side tree of the glossary dialog to QTreeWidget; remove the usage of Qt3...
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

18 years agod-pointer-ize GlossaryDialog (the slots still are in the class)
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

18 years agoA better sort implementation
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

18 years agothe parser does not own the original elements, no better not delete them
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

18 years agoWarnings-- (from http://ktown.kde.org/~dirk/dashboard/4.0/i386/kdeedu.html). More... upstream/kde-kconfiggroup_port
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

18 years agoremove qt3_support
Pino Toscano [Thu, 8 Feb 2007 21:33:21 +0000 (21:33 +0000)]
remove qt3_support

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=631725

18 years agoconfig.h cleanup: kstars needs one for indi and kiten needs one for some c code which...
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

18 years agoWork on vocabulary sorting
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

18 years agoWork on vocabulary sorting
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

18 years agoStatistics are now reset from the statistics dialog
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

18 years agoone more occurence of KInstance
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

18 years agokinstance -> kcomponentdata
Pino Toscano [Tue, 30 Jan 2007 00:11:18 +0000 (00:11 +0000)]
kinstance -> kcomponentdata

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=628403

18 years agomerge the kinstance-redesign branch back to trunk.
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

18 years agomerge to rev. 628262 upstream/kde-kinstance-redesign
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

18 years agoremove some kDebug's
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

18 years agoComplete the Kalzium 3D navigation system. Fix related bugs.
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

18 years agoconvert-kinstance.pl and a lot of reverts because of ::instance() functions
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

18 years agomove the QT3_SUPPORT definitions where they really need to be
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

18 years agoless qt3support
Pino Toscano [Sun, 21 Jan 2007 11:33:09 +0000 (11:33 +0000)]
less qt3support

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=625840

18 years agomove the QT3_SUPPORT definitions only where they still need to be
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

18 years ago* Sync with latest BODR
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

18 years agoWork on appending, assigning, and deleting languages
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

18 years agoNew Kalzium 3d navigation system. Not 100% finished, and the visual
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

18 years agoWork on appending, assigning, and deleting languages
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

18 years agoWork on removing duplicates
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

18 years agoexport the classes needed in kalzium
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

18 years agoEigen's includes are needed here too
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

18 years agoSVN_SILENT unused parameters
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

18 years agouse KIcon, fewer deprecated warnings. patch by Nicolas Lécureuil
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

18 years agoMore consistent use of setModified()
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

18 years agoAnother signal/slot fix in ExtDateTimeEdit
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

18 years agoMake the arguments of the dateChanged(ExtDate) and
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

18 years agoFix "no such signal: QTimeEdit::valueChanged(int)" error.
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

18 years agoEnsure that the correct query state of an entry is displayed. Really this time.
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

18 years agoEnsure that the correct query state of an entry is displayed
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

19 years agoRead grade value correctly
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

19 years agoSeveral fixes:
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

19 years agomakeStandardCaption
Aaron J. Seigo [Mon, 4 Dec 2006 15:55:31 +0000 (15:55 +0000)]
makeStandardCaption

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=610591

19 years agocompile++
Dirk Mueller [Mon, 4 Dec 2006 15:40:08 +0000 (15:40 +0000)]
compile++

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=610583

19 years agoArrg. Now it should really compile. upstream/kde-kaction-cleanup1
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

19 years agoFix compilation for systems without OpenBabel2.1
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

19 years agoWow, this commit looks huge :)
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

19 years ago* Ok, I still see no real way to test my KPart-code but this might
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

19 years ago- fix compilation against latest OpenBabel (so you need to update your
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

19 years agoAdjusted CMakeList.txt for Qt4 Only builds and builds of KTouch outside
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

19 years agoForget the .moc-include. Now also include it in the CMakeLists.txt
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

19 years agoupdate on the kpart-stuff. It now compiles but doesn't link.
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

19 years ago* Very first version of the new KPart-based molecularviewer
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

19 years ago* Fix Copyright header stuff
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

19 years agoTwofold improvement in Kalzium's 3D viewer:
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

19 years agoFix compile under windows
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

19 years agoFix compile under windows
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

19 years agoNow kde doesn't use .la file
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

19 years agoNow kde doesn't use .la file
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

19 years agoFix export
Laurent Montel [Thu, 9 Nov 2006 12:17:50 +0000 (12:17 +0000)]
Fix export

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=603546

19 years agolet's say 0 is a good default
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

19 years agoFix compile
Laurent Montel [Thu, 2 Nov 2006 16:37:54 +0000 (16:37 +0000)]
Fix compile

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=601245

19 years agoFix the apidocs
Carsten Niehaus [Wed, 1 Nov 2006 15:56:41 +0000 (15:56 +0000)]
Fix the apidocs

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=600987

19 years agoreturn at least something
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

19 years agoDraw a line from a data point to its label if the label is not
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

19 years agoShut up GCC 4.1.x
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

19 years agoPorting to QList<ChemicalDataObject> (no pointer
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

19 years agoImplementing non-colliding text labels in kdeeduplot, based on kmplot
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

19 years agoInternal changes to libkdeeduplot in preparation for implementing
Jason Harris [Sat, 28 Oct 2006 00:04:44 +0000 (00:04 +0000)]
Internal changes to libkdeeduplot in preparation for implementing
non-colliding labels.  Basically, I was looking at the code and
saw several things that needed to be improved.

+ Added a "BARS" type for KPlotObject, and removed the "POLYGON"
type.  "CURVES" type is now called "LINES".

+ A single KPlotObject can now be any combination of POINTS,
LINES, and BARS.  These enum items have bitmask values (1,2,4),
so you should be able to OR them together in the ctor, but I
haven't gotten that to work yet.  Instead you can set it to one
type in the ctor, and use the
setShowPoints(bool)/setShowLines(bool)/setShowBars(bool)
convenience functions.

+ There are many more point shapes available now: CIRCLE, LETTER,
TRIANGLE, SQUARE, PENTAGON, HEXAGON, ASTERISK, and STAR

+ Plot objects no longer have a Name property.  It's unnecessary with
the new labeling scheme.

+ There is no longer a LABEL object type.  Instead, you can
define a label for any data point by adding a string argument to
addPoint(), like so:

  KPlotWidget *pw = new KPlotWidget( parent );
  pw->setLimits( -0.1, 4.1, -0.1, 6.1 );

  KPlotObject *po = new KPlotObject( Qt::white, KPlotObject::POINTS, 5.0, KPlotObject::ASTERISK );
  po->addPoint( 1.0, 2.5, "Point A" );
  po->addPoint( 2.0, 4.7, "Point B" );
  po->addPoint( 3.0, 5.5, "Point C" );

  pw->addObject( po );
  pw->update();

+ There is no longer an enum for specifying line styles.
Instead, you can now define QPens and QBrushes for drawing
points, lines and bars.  This is much more flexible.

+ renamed mapToPoint() to toScreen()

+ I added a "tests" subdirectory which demonstrates the library.
Please have a look.

TODO: It looks like drawing an axis using secondary data limits
is not working.  The "Lines" demo in the tests directory should
show the angle in degrees along the top axis (the angle is shown
in radians on the bottom axis).

As I said, I haven't gotten the KPlotObject ctor to accept multiple PlotType values.  i.e., this works:

  KPlotObject( Qt::white, KPlotObject::POINTS, 2.0, KPlotObject::TRIANGLE )

but this doesn't:

  KPlotObject( Qt::white, KPlotObject::POINTS|KPlotObject::LINES, 2.0, KPlotObject::TRIANGLE )

I checked to see that the kdeedu module compiles with these changes
(other than kstars changes, I only had to make a few modifications to
kalzium/src/elementdataviewer.cpp and ktouch/src/ktouchstatistics.cpp;
check it out, I think you'll like the new API)

Comments?  Problems?  Suggestions?

CCMAIL: kde-edu@kde.org

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=599640

19 years agoConvert plotting data to floating-point variants (QPoint-->QPointF, v3.80.2
Jason Harris [Wed, 25 Oct 2006 01:17:21 +0000 (01:17 +0000)]
Convert plotting data to floating-point variants (QPoint-->QPointF,
QPolygon-->QPolygonF, etc).  Moved mapToPoint() definition from
kplotwidget.h to kplotwidget.cpp.

CCMAIL: kde-edu@kde.org

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=598923

19 years agoApply Alex patch (now we can use enable-final argument
Laurent Montel [Mon, 23 Oct 2006 08:12:44 +0000 (08:12 +0000)]
Apply Alex patch (now we can use enable-final argument
some module compiles with enable-final now)
As discussed with Alex it's not necessary to have program name
into automoc macro

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=598308

19 years agocomplete the port of kalzium to eigen
Benoît Jacob [Sat, 21 Oct 2006 12:27:04 +0000 (12:27 +0000)]
complete the port of kalzium to eigen
(i had forgotten to port m_rotationMatrix to use Eigen::Matrix4d)

svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglwidget.h; revision=597713

19 years agoPort the Kalzium 3D code to the Eigen math template library.
Benoît Jacob [Sat, 21 Oct 2006 12:15:17 +0000 (12:15 +0000)]
Port the Kalzium 3D code to the Eigen math template library.
Now the Kalzium 3D code has a dependency on trunk/kdesupport/eigen.

svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglhelperclasses.cpp; revision=597706

19 years agoThere is still a huge memleak but I cannot find it... This commit removes 4 objects...
Carsten Niehaus [Sat, 21 Oct 2006 11:40:44 +0000 (11:40 +0000)]
There is still a huge memleak but I cannot find it... This commit removes 4 objects, reindents a bit and removes some kDebug

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=597681

19 years agolayout and two memleaks in the test.
Carsten Niehaus [Sat, 21 Oct 2006 11:08:30 +0000 (11:08 +0000)]
layout and two memleaks in the test.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=597676

19 years agoAdd debug code counting the constructor/destructor calls
Benoît Jacob [Fri, 20 Oct 2006 10:14:43 +0000 (10:14 +0000)]
Add debug code counting the constructor/destructor calls
for ChemicalDataObject

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=597419

19 years agoAdd a missing destructor in ElementSaxParser::Private
Benoît Jacob [Fri, 20 Oct 2006 09:07:45 +0000 (09:07 +0000)]
Add a missing destructor in ElementSaxParser::Private

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=597403

19 years ago* Remove strange code and Qt4-ify it
Carsten Niehaus [Thu, 19 Oct 2006 17:09:45 +0000 (17:09 +0000)]
* Remove strange code and Qt4-ify it
* One leak less (in the parser)
* one more qDebugAll

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=597227

19 years agoPluggin memleaks and now using qDeleteAll
Carsten Niehaus [Thu, 19 Oct 2006 16:28:45 +0000 (16:28 +0000)]
Pluggin memleaks and now using qDeleteAll

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=597220