]> Git trees. - libqmvoc.git/log
libqmvoc.git
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

19 years agoFix two memleaks, port half of the class to pure Qt4
Carsten Niehaus [Thu, 19 Oct 2006 15:17:24 +0000 (15:17 +0000)]
Fix two memleaks, port half of the class to pure Qt4

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

19 years agoFix 2 warnings
Benoît Jacob [Thu, 19 Oct 2006 08:16:36 +0000 (08:16 +0000)]
Fix 2 warnings

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

19 years agore-enable opengl selection
Benoît Jacob [Wed, 18 Oct 2006 19:32:37 +0000 (19:32 +0000)]
re-enable opengl selection

M    kalzium/src/kalziumglwidget.cpp

svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglwidget.cpp; revision=596866

19 years agoI forgot about this file, sorry
Carsten Niehaus [Wed, 18 Oct 2006 15:54:17 +0000 (15:54 +0000)]
I forgot about this file, sorry

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

19 years agoRemove useless ctor and improve the order of the other
Carsten Niehaus [Wed, 18 Oct 2006 15:44:06 +0000 (15:44 +0000)]
Remove useless ctor and improve the order of the other

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

19 years agoGive Benoit more credit and remove kDebug
Carsten Niehaus [Wed, 18 Oct 2006 08:21:38 +0000 (08:21 +0000)]
Give Benoit more credit and remove kDebug

svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglwidget.cpp; revision=596699

19 years agoRemove Color::operator=
Benoît Jacob [Wed, 18 Oct 2006 06:33:35 +0000 (06:33 +0000)]
Remove Color::operator=
Spare a reinterpret_cast in Color::apply()

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

19 years agoRemove MolStyle::operator=, the default operator= does just fine.
Benoît Jacob [Wed, 18 Oct 2006 06:30:17 +0000 (06:30 +0000)]
Remove MolStyle::operator=, the default operator= does just fine.

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

19 years agoOnly make methods 'virtual' when it's needed.
Benoît Jacob [Wed, 18 Oct 2006 06:26:00 +0000 (06:26 +0000)]
Only make methods 'virtual' when it's needed.

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

19 years agoAdd e-mail address (problem found by EBN)
Benoît Jacob [Wed, 18 Oct 2006 06:19:23 +0000 (06:19 +0000)]
Add e-mail address (problem found by EBN)

Disable FPS counter for now, it puts a 99% CPU load so I'll
only enable it when I need to test performance.

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

19 years agoI needed to introduce this new ctor because I am using a KPlotWidget in a .ui file...
Carsten Niehaus [Tue, 17 Oct 2006 16:14:32 +0000 (16:14 +0000)]
I needed to introduce this new ctor because I am using a KPlotWidget in a .ui file in Kalzium (see Revision 596474). The uic always uses Foo(QWidget*) and you cannot change this. Therefor I need a KPlotWidget(QWidget*)-ctor. Another solution would be to change the order of the arguements so that the QWidget = 0 would be at the first position. I would of course prefere that solution as it would remove this stupid second ctor.

Jason, Pino, what do you think?

CCMAIL:kde-edu@kde.org

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

19 years agofix logic here, I was doing it the wrong way around
Carsten Niehaus [Tue, 17 Oct 2006 13:55:41 +0000 (13:55 +0000)]
fix logic here, I was doing it the wrong way around

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

19 years agoNecessary to change KDE4_AUTOMOC macro to support
Laurent Montel [Fri, 13 Oct 2006 07:58:31 +0000 (07:58 +0000)]
Necessary to change KDE4_AUTOMOC macro to support
enable-final argument

(there was not a dependancy between <name>_final.cpp file and
moc generated files => moc files were never created)

Not necessary to rebuild all kdelibs just cp kdelibs/cmake/modules/KDE4Macros.cmake <path_kde4>/share/apps/cmake/modules

I ported and tested all kde module (without enable-final argument, it compiles fines (test and program))
Don't try to use enable-final argument for the moment it doesn't compile (but dependancy works)

Regards

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

19 years agoon second thought - EBN should just ignore C concats
Stephan Kulow [Sun, 1 Oct 2006 10:53:08 +0000 (10:53 +0000)]
on second thought - EBN should just ignore C concats

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

19 years agocompiles
Stephan Kulow [Sun, 1 Oct 2006 10:52:29 +0000 (10:52 +0000)]
compiles

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

19 years agofixed spelling (EBN)
Thomas Häber [Sun, 1 Oct 2006 03:05:16 +0000 (03:05 +0000)]
fixed spelling (EBN)
pronounciation -> pronunciation
in const, vars, functions etc. pp

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

19 years agoSVN_SILENT:
Thomas Häber [Sun, 1 Oct 2006 02:11:40 +0000 (02:11 +0000)]
SVN_SILENT:
adding a single character as char/QChar to a string/QString is always faster than a single character as string/QString (EBN)

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