Bug 95031 - Edit scalars function lacking
Summary: Edit scalars function lacking
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-12 23:14 UTC by Nicolas Brisset
Modified: 2005-03-10 23:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Brisset 2004-12-12 23:14:41 UTC
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 :-) ?
Comment 1 Andrew Walker 2004-12-16 23:50:28 UTC
Some scalars are generated automatically from vectors, and should not be editable. 
Scalars created by the user probably should be editable.
Comment 2 George Staikos 2004-12-17 00:28:44 UTC
 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.

Comment 3 Nicolas Brisset 2005-01-04 15:08:16 UTC
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...
Comment 4 Andrew Walker 2005-03-10 23:46:18 UTC
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