Merge from DEFAULT f1e80d00c3099a65283f143268318e504ce6ea85

see comments in issue 1052, comment 439
This commit is contained in:
michael
2012-07-25 21:24:57 -04:00
89 changed files with 6454 additions and 4740 deletions

View File

@@ -19,15 +19,22 @@
#ifndef _COLORPROVIDER_
#define _COLORPROVIDER_
/*
* Use it to let your widget feed a colored bar or graph lines with the wanted colors
* If you don't need to dynamically feed a widget with colors (e.g. curve's graph),
* you don't need to declare the instanciator class as BEING a ColorProvider, you'll
* still be able to set gradients for e.g. ColoredBar(s)
*/
class ColorProvider {
public:
public:
double red;
double green;
double blue;
virtual void colorForValue (double valX, double valY) {}
ColorProvider() { red = green = blue = 0.0; };
virtual ~ColorProvider() {};
virtual void colorForValue (double valX, double valY) {};
};
#endif