Version: 1.1.0_devel (using KDE 3.2 BRANCH >= 20040204, Mandrake Linux Cooker i586 - Cooker) Compiler: gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) OS: Linux (i686) release 2.6.3-7mdk We recently used pretty complex equations, which used scalars to be easier to read and above all to modify. Bad luck: scalar values can be read, but not modified !! Of course, editing the .kst in an editor did the trick, but is it really end-user friendly enough :-) ?
Some scalars are generated automatically from vectors, and should not be editable. Scalars created by the user probably should be editable.
Exactly. Before we implement this, we need to figure out what we "want" though. This applies to strings also. Part of my update work makes scalars into first-class objects, which means they get updated, etc. Strings probably need the same. As a temporary workaround, you can edit scalars with dcop.
I think there are actually two kinds of scalars: those representing statistics about the vectors (which should obviously be updated when the vector changes) and other scalars representing either user-defined or default constants. It only makes sense to edit the latter. Whether that should be an extra property of the scalar class or two classes derived from a base one, I don't know...
CVS commit by arwalker: Make it possible to edit scalars. CCMAIL: 95031-done@bugs.kde.org M +18 -14 kstiface_impl.cpp 1.63 M +17 -3 kstscalar.cpp 1.35 M +8 -3 kstscalar.h 1.28 M +38 -23 scalarselector.ui 1.10 M +96 -31 scalarselector.ui.h 1.11 M +8 -8 vectorselector.ui.h 1.14