openframeworks/openFrameworks — pull request #1764 by nariakiiwatani (2012-12-21 06:51:28+00:00)
Title: Adding ofxCustomSlider class to ofxGui

It's like ofxIntSlider but can provides more flexible control.

usage example.
```
#pragma once

#include "ofxCustomSlider.h"

// example of lookup table
class StringSlider : public ofxCustomSlider{
private:
string getValue(int i) const{
switch(i) {
default:	return "none";
case 0:	return "foo";
case 1:	return "bar";
case 2:	return "baz";
}
}
};

// example of formula
class Power2Slider : public ofxCustomSlider{
private:
int getValue(int i) const{
return i*i;
}
};

```