+
+/* BRIGHTNESS VALUES
+ brightness is stored from -100.00 to +100.00
+ brightness_slider goes from -100.00 to +100.00
+ brightness_caption goes from -1.000 to +1.000
+ brightness_text goes from -100.00 to +100.00
+*/
+
+/* CONTRAST VALUES
+ contrast is stored from -100.00 to +100.00
+ contrast_slider goes from -100.00 to +100.00
+ contrast_caption goes from 0.000 to +5.000 (clear to +1.000)
+ contrast_text goes from -100.00 to +100.00
+*/
+
+BrightnessFText::BrightnessFText(BrightnessWindow *window, BrightnessMain *client,
+ BrightnessFSlider *slider, float *output, int x, int y, float min, float max)
+ : BC_TumbleTextBox(window, *output,
+ min, max, x, y, xS(60), 2)
+{
+ this->window = window;
+ this->client = client;
+ this->output = output;
+ this->slider = slider;
+ this->min = min;
+ this->max = max;
+ set_increment(0.01);
+}
+
+BrightnessFText::~BrightnessFText()
+{
+}
+
+int BrightnessFText::handle_event()
+{
+ *output = atof(get_text());
+ if(*output > max) *output = max;
+ else if(*output < min) *output = min;
+ slider->update(*output);
+ client->send_configure_change();
+ return 1;
+}
+
+BrightnessFSlider::BrightnessFSlider(BrightnessMain *client,
+ BrightnessFText *text, float *output, int x, int y,
+ float min, float max, int w, int is_brightness)
+ : BC_FSlider(x, y, 0, w, w, min, max, *output)