1 #include "bcdisplayinfo.h"
2 #include "flipwindow.h"
5 #define _(String) gettext(String)
6 #define gettext_noop(String) String
7 #define N_(String) gettext_noop (String)
10 PLUGIN_THREAD_OBJECT(FlipMain, FlipThread, FlipWindow)
17 FlipWindow::FlipWindow(FlipMain *client, int x, int y)
18 : BC_Window(client->get_gui_string(),
29 this->client = client;
32 FlipWindow::~FlipWindow()
36 int FlipWindow::create_objects()
39 add_tool(flip_vertical = new FlipToggle(client,
40 &(client->config.flip_vertical),
45 add_tool(flip_horizontal = new FlipToggle(client,
46 &(client->config.flip_horizontal),
54 int FlipWindow::close_event()
60 FlipToggle::FlipToggle(FlipMain *client, int *output, char *string, int x, int y)
61 : BC_CheckBox(x, y, *output, string)
63 this->client = client;
64 this->output = output;
66 FlipToggle::~FlipToggle()
69 int FlipToggle::handle_event()
71 *output = get_value();
72 client->send_configure_change();