+ColorOK::ColorOK(ColorGUI *gui, BC_WindowBase *window)
+ : BC_OKButton(window)
+{
+ this->gui = gui;
+ this->window = window;
+}
+int ColorOK::handle_event()
+{
+ gui->ok_cancel = 0;
+ gui->close_gui();
+ window->sync_display();
+ return 1;
+}
+
+ColorCancel::ColorCancel(ColorGUI *gui, BC_WindowBase *window)
+ : BC_CancelButton(window)
+{
+ this->gui = gui;
+ this->window = window;
+}
+int ColorCancel::handle_event()
+{
+ gui->ok_cancel = 1;
+ gui->close_gui();
+ window->sync_display();
+ return 1;
+}
+