[Kst] Re: Class changes

George Staikos staikos at kde.org
Tue Aug 3 19:44:43 CEST 2004

On Thursday 29 July 2004 21:04, C. Barth Netterfield wrote:
> What I am imagining is for KstDataObject is to get a virtual QString
> automaticLabel(), which can be implemented by different child classes.  For
> fits, we could "if (plugin->_isFit) ..." in KstPlugin::automaticLabel().

  That makes perfect sense to me.  We already do this sort of thing in data 
objects even, and it works well.

> Then we can refer to a data-object's automaticLabel in any label; changing
> the data object will change the label.  (Eg, change a vector in a curve,
> and the X and YLabels in the plot, if they refer to the autmaticLabel,
> automatically change)  This could be awsome for equations as well - well
> formated equation names could be exported for label use.....
>   A similar problem is wrst exported scalars - what happens when you change
> the source of an automatic scalar, or change the name of a vector which is
> generating automatic scalars.  This is a general problem which arrises from
> our refering to a label by its tagname, and it needs a general solution.

   mean(vector)  median(vector), etc......  That's my preference.  Then we 
need to consider the other scalar producers - plugins, and other data 

George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/

More information about the Kst mailing list