1 #include "invertwindow.h"
9 InvertWindow::InvertWindow(InvertMain *client)
10 : BC_Window("", MEGREY, client->gui_string, 100, 60, 100, 60, 0, !client->show_initially)
11 { this->client = client; }
13 InvertWindow::~InvertWindow()
18 int InvertWindow::create_objects()
21 add_tool(new BC_Title(x, y, _("Invert")));
23 add_tool(invert = new InvertToggle(client, &(client->invert), x, y));
26 WINDOW_CLOSE_EVENT(InvertWindow)
28 InvertToggle::InvertToggle(InvertMain *client, int *output, int x, int y)
29 : BC_CheckBox(x, y, 16, 16, *output)
31 this->client = client;
32 this->output = output;
34 InvertToggle::~InvertToggle()
37 int InvertToggle::handle_event()
39 *output = get_value();
40 client->send_configure_change();