start plugins transformation, SUV theme
[cinelerra_cv/mob.git] / plugins / flip / flipwindow.C
bloba55aaeb8a1a05cf94d3476775c111b3e31511a7e
1 #include "bcdisplayinfo.h"
2 #include "flipwindow.h"
4 #include <libintl.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(),
19         x,
20         y,
21         140,
22         100,
23         140,
24         100,
25         0,
26         0,
27         1)
28
29         this->client = client; 
32 FlipWindow::~FlipWindow()
36 int FlipWindow::create_objects()
38         int x = 10, y = 10;
39         add_tool(flip_vertical = new FlipToggle(client, 
40                 &(client->config.flip_vertical), 
41                 _("Vertical"),
42                 x, 
43                 y));
44         y += 30;
45         add_tool(flip_horizontal = new FlipToggle(client, 
46                 &(client->config.flip_horizontal), 
47                 _("Horizontal"),
48                 x, 
49                 y));
50         show_window();
51         flush();
54 int FlipWindow::close_event()
56         set_done(1);
57         return 1;
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();
73         return 1;