Bug 91685

Summary: new tool: color per file
Product: [Applications] kst Reporter: Nicolas Brisset <nicolas.brisset>
Component: generalAssignee: Rick Chern <rchern>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: unspecified   
OS: Solaris   
Latest Commit: Version Fixed In:

Description Nicolas Brisset 2004-10-19 15:50:31 UTC
Version:           1.0.0_devel (using KDE 3.3.0, compiled sources)
Compiler:          gcc version 3.3.2
OS:                SunOS (sun4u) release 5.8

When comparing data from two files (or more), it would be nice to be able to assign curve colors based on the file the data originates from.
This could be a simple dialog called from a "Tools"->"Assign color per file" menu, where a color selector is created for each open file, initialized with a sensible color sequence.
Once the user has chosen the colors he/she likes, the tool would iterate over the curves and change their color according to the data file Y comes from (or X or both, probably supposing they will almost always come from the same file).
Comment 1 Rick Chern 2005-05-19 19:12:51 UTC
How should curves created from slave vectors of Equations, Plugins, and Events be handled (since they could use any number of vectors from different files)?   Or should this function be limited only to curves that directly use data vectors? 
Comment 2 Nicolas Brisset 2005-05-20 09:56:54 UTC
I think it is acceptable if only curves using data vectors directly are affected by this tool. It is possibly a good idea to also apply it to slave vectors whose components all depend from the same file, but I can imagine this may be hard to determine...
Comment 3 Rick Chern 2005-05-24 19:44:41 UTC
SVN commit 416275 by rchern:

change curve colors based on data file

 A             trunk/extragear/graphics/kst/kst/choosecolordialog.ui  
 M  +20 -0     trunk/extragear/graphics/kst/kst/kst.cpp  
 M  +9 -0      trunk/extragear/graphics/kst/kst/kst.h  
 A             trunk/extragear/graphics/kst/kst/kstchoosecolordialog_i.cpp   [License: GPL (v2+)]
 A             trunk/extragear/graphics/kst/kst/kstchoosecolordialog_i.h   [License: GPL (v2+)]
 M  +1 -0      trunk/extragear/graphics/kst/kst/kstui.rc