+Color3WaySliderClrSection::Color3WaySliderClrSection(Color3WayMain *plugin,
+ Color3WayWindow *gui,
+ int x,
+ int y,
+ int w,
+ int clear,
+ int section)
+ : BC_Button(x, y, w, plugin->get_theme()->get_image_set("reset_button"))
+{
+ this->plugin = plugin;
+ this->gui = gui;
+ this->clear = clear;
+ this->section = section;
+}
+Color3WaySliderClrSection::~Color3WaySliderClrSection()
+{
+}
+int Color3WaySliderClrSection::handle_event()
+{
+ switch(clear) {
+ case RESET_POINT :
+ plugin->config.hue_x[section] = 0;
+ plugin->config.hue_y[section] = 0;
+ break;
+ case RESET_VALUE : plugin->config.value[section] = 0;
+ break;
+ case RESET_SATURATION : plugin->config.saturation[section] = 0;
+ break;
+ }
+ if(plugin->copy_to_all[section]) plugin->config.copy_to_all(section);
+ plugin->send_configure_change();
+ gui->update();
+ return 1;
+}
+
+
+
+
+